Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Google Trends Automation with Shiny

Matt Dancho
January 22, 2020

Google Trends Automation with Shiny

Google Trends is a FREE tool to gain insights about Google Search Terms your organization cares about. This helps identify potential AdWords & generate Blog Ideas based on search interest. 

What if you could streamline the process by accessing historical keyword search interest in 3-4 seconds?

In Lab 27, we use R Shiny, Gmail API, and Google Trends API to streamline an entire Google Trends Analysis Workflow by assessing trends and efficiently emailing reports to those in your organization that need them.

Matt Dancho

January 22, 2020
Tweet

More Decks by Matt Dancho

Other Decks in Business

Transcript

  1. Using Google Trends, Gmail & R Shiny Matt Dancho &

    David Curry Business Science Learning Lab
  2. • Lab 24 - A/B Testing ◦ Business Science’s Website

    ◦ Infer - Bootstrap & Permutation • Lab 25 - Multi-Channel Attribution (Part 1) ◦ Google Analytics Data ◦ ChannelAttribution • Lab 26 - ML for Customer Journey (Part 2) ◦ Path Splitting ◦ Applied ML for Conversion Probabilities • Lab 27 - Automated Prediction & Tracking Google Trends ◦ Google Trend Automation ◦ Shiny App
  3. Every 2-Weeks 1-Hour Course Recordings + Code + Slack $19/month

    university.business-science.io Lab 26 - Marketing Series Customer Journey with Machine Learning Lab 25 - Marketing Series Attribution with ChannelAttribution Lab 24 - Marketing Series A/B Testing with Infer Lab 23 - SQL Series SQL with BigQuery & Conversion Funnel Lab 22 - SQL Series SQL for Time Series Lab 21 - SQL Series SQL for Data Science Lab 20 - Machine Learning Explainable Machine Learning Lab 19 - Network Analysis Using Customer Credit Card History for Networks Analysis
  4. • Demo ◦ Shiny App that Emails Reports to Coworkers

    • Why Automation? ◦ How I got 20 hours/week of my life back • Automation Workflow • 30-Min Demo ◦ gtrendsR ◦ gmailr ◦ rmarkdown ◦ shiny • Pro-Tips & Learning Guide
  5. Start Finish 1 2 3 Analysis Script Connect to GTrends

    API Wrangle & Visualize Data Report Template & Automation Script Generate PDF Report Send with Gmail Shiny App Automate with a Shiny App
  6. Give businesses apps Rather than send a report Let your

    audience interact with data using your analysis
  7. Advanced Visualization Advanced Data Wrangling Advanced Functional Programming & Modeling

    Advanced Data Science Visualization Data Cleaning & Manipulation Functional Programming & Modeling Business Reporting Business Analysis with R (DS4B 101-R) Data Science For Business with R (DS4B 201-R) Web Apps & Shiny Developer (DS4B 102-R + DS4B 202A-R) Web Apps Data Science Foundations 7 Weeks Machine Learning & Business Consulting 10 Weeks Web Application Development 12 Weeks Business Science University R-Track
  8. - Fundamentals - Weeks 1-5 (25 hours of Video Lessons)

    - Data Manipulation (dplyr) - Time series (lubridate) - Text (stringr) - Categorical (forcats) - Visualization (ggplot2) - Programming & Iteration (purrr) - 3 Challenges - Machine Learning - Week 6 (8 hours of Video Lessons) - Clustering (3 hours) - Regression (5 hours) - 2 Challenges - Learn Business Reporting - Week 7 - RMarkdown & plotly - 2 Project Reports: 1. Product Pricing Algo 2. Customer Segmentation Visualization Data Cleaning & Manipulation Functional Programming & Modeling Business Reporting Business Analysis with R (DS4B 101-R) Data Science Foundations 7 Weeks
  9. Understanding the Problem & Preparing Data - Weeks 1-4 -

    Project Setup & Framework - Business Understanding / Sizing Problem - Tidy Evaluation - rlang - EDA - Exploring Data -GGally, skimr - Data Preparation - recipes - Correlation Analysis - 3 Challenges Machine Learning - Weeks 5, 6, 7 - H2O AutoML - Modeling Churn - ML Performance - LIME Feature Explanation Return-On-Investment - Weeks 7, 8, 9 - Expected Value Framework - Threshold Optimization - Sensitivity Analysis - Recommendation Algorithm Data Science For Business (DS4B 201-R) Machine Learning & Business Consulting 10 Weeks Advanced Visualization Advanced Data Wrangling Advanced Functional Programming & Modeling Advanced Data Science End-to-End Churn Project
  10. Learn Shiny & Flexdashboard - Build Applications - Learn Reactive

    Programming - Integrate Machine Learning App #1: Predictive Pricing App - Model Product Portfolio - XGBoost Pricing Prediction - Generate new products instantly App #2: Sales Dashboard with Demand Forecasting - Model Demand History - Segment Forecasts by Product & Customer - XGBoost Time Series Forecast - Generate new forecasts instantly Shiny Apps for Business (DS4B 102-R) Web Application Development 4 Weeks Web Apps Machine Learning
  11. Frontend + Backend + Production Deployment Frontend for Shiny -

    Bootstrap Backend for Shiny - MongoDB - Dynamic UI - User Authentication - Store & Write User Data Production Deployment - AWS - EC2 Server - VPC Connection - URL Routing Shiny Apps for Business (DS4B 202A-R) Web Application Development 6 Weeks