SlideShare a Scribd company logo
1 of 29
Using R to Feed
Google Analytics Data
into BigQuery
Slides: https://bit.ly/3SNmp2y
@DannySmAnalysis @Semetrical
Danny Smith
Semetrical
1. The Google Analytics API
2. Why use R?
3. Accessing your GA data with R
4. Uploading your GA data to Big Query
5. Additional use cases
What we’ll cover…
#BrightonSEO @Semetrical
The Google
Analytics API
#BrightonSEO @Semetrical
• Automate reporting processes
• Avoid sampling
• Granular analysis
• Send measurement protocol hits – not in reporting / data
• Change configurations – not in reporting / data
Some of the key uses of the APIs:
#BrightonSEO @Semetrical
#BrightonSEO @Semetrical
• Free
• Quick analysis
• No sampling
• Avoids having to use SQL
Why use the GA4 API?
Why
Use R?
#BrightonSEO @Semetrical
10
11
12
13
14
•
•
•
•
•
Statistics, data
visualization and user-
friendly interface
The Benefits of R
#BrightonSEO @Semetrical
Accessing your Google
Analytics data with R
#BrightonSEO @Semetrical
17
18
Setting your 4 key conditions following the API
schema. Filter between UA and GA4 accordingly.
19
1. GA ID
2. Date range
3. Metrics
4. Dimensions
5. Dimension filters – optional
6. Segments - optional
Uploading data to
BigQuery with R
#BrightonSEO @Semetrical
Uploading data to
BigQuery with R
#BrightonSEO @Semetrical
3 variables required
for uploading data
into BigQuery:
• Project name
• Dataset name
• Table name
Locate your destination & upload to
BigQuery
Summary &
Additional Use Cases
#BrightonSEO @Semetrical
Overlay your Google
Analytics data with
additional data points i.e.
use Google Trends API
www.semetrical.com/using-ga-google-trends-api-with-r/
• Statistical packages
• Create visuals using Shiny
or ggplot (i.e. boxplots)
Automate reporting of
Google Analytics data using
cronR
Pull data from BigQuery with SQL
Download the deck from our blog
& grab your free R code cheat sheet to
start having a play today:
https://bit.ly/3SNmp2y
ds@Semetrical.com
@DannySmAnalysis
Thank you!
#BrightonSEO @Semetrical

More Related Content

Similar to Using R to Feed Google Analytics Data into BigQuery

Similar to Using R to Feed Google Analytics Data into BigQuery (20)

Do Agile Data in Just 5 Shocking Steps!
Do Agile Data in Just 5 Shocking Steps!Do Agile Data in Just 5 Shocking Steps!
Do Agile Data in Just 5 Shocking Steps!
 
[Webinar] Getting Started with BigQuery: Basics, Its Appilcations & Use Cases
[Webinar] Getting Started with BigQuery: Basics, Its Appilcations & Use Cases[Webinar] Getting Started with BigQuery: Basics, Its Appilcations & Use Cases
[Webinar] Getting Started with BigQuery: Basics, Its Appilcations & Use Cases
 
Analytics tool vendors comparison study 2017
Analytics tool vendors comparison study 2017Analytics tool vendors comparison study 2017
Analytics tool vendors comparison study 2017
 
Survey Add-on Showcase: Cloud Transformation
Survey Add-on Showcase: Cloud TransformationSurvey Add-on Showcase: Cloud Transformation
Survey Add-on Showcase: Cloud Transformation
 
Why Data Science Projects Fail?
Why Data Science Projects Fail?Why Data Science Projects Fail?
Why Data Science Projects Fail?
 
vodQA Pune (2019) - Testing AI,ML applications
vodQA Pune (2019) - Testing AI,ML applicationsvodQA Pune (2019) - Testing AI,ML applications
vodQA Pune (2019) - Testing AI,ML applications
 
Washington DC DataOps Meetup -- Nov 2019
Washington DC DataOps Meetup   -- Nov 2019Washington DC DataOps Meetup   -- Nov 2019
Washington DC DataOps Meetup -- Nov 2019
 
Gimel at Dataworks Summit San Jose 2018
Gimel at Dataworks Summit San Jose 2018Gimel at Dataworks Summit San Jose 2018
Gimel at Dataworks Summit San Jose 2018
 
Dataworks | 2018-06-20 | Gimel data platform
Dataworks | 2018-06-20 | Gimel data platformDataworks | 2018-06-20 | Gimel data platform
Dataworks | 2018-06-20 | Gimel data platform
 
GAUC 2017 Workshop Datastudio: Martin Frotzler (e-dialog) & Lili Pajer (Google)
GAUC 2017 Workshop Datastudio: Martin Frotzler (e-dialog) & Lili Pajer (Google)GAUC 2017 Workshop Datastudio: Martin Frotzler (e-dialog) & Lili Pajer (Google)
GAUC 2017 Workshop Datastudio: Martin Frotzler (e-dialog) & Lili Pajer (Google)
 
"Taming Advanced Analytics Implementations at EA Scale" - Electronic Arts, Di...
"Taming Advanced Analytics Implementations at EA Scale" - Electronic Arts, Di..."Taming Advanced Analytics Implementations at EA Scale" - Electronic Arts, Di...
"Taming Advanced Analytics Implementations at EA Scale" - Electronic Arts, Di...
 
seven steps to dataops @ dataops.rocks conference Oct 2019
seven steps to dataops @ dataops.rocks conference Oct 2019seven steps to dataops @ dataops.rocks conference Oct 2019
seven steps to dataops @ dataops.rocks conference Oct 2019
 
Google analytics 301 - architecture, processing, configuration, extending and...
Google analytics 301 - architecture, processing, configuration, extending and...Google analytics 301 - architecture, processing, configuration, extending and...
Google analytics 301 - architecture, processing, configuration, extending and...
 
[Webinar] Interacting with BigQuery and Working with Advanced Queries
[Webinar] Interacting with BigQuery and Working with Advanced Queries[Webinar] Interacting with BigQuery and Working with Advanced Queries
[Webinar] Interacting with BigQuery and Working with Advanced Queries
 
Shifting Left Using Sauce Analytics
Shifting Left Using Sauce AnalyticsShifting Left Using Sauce Analytics
Shifting Left Using Sauce Analytics
 
Dashboards that Set Your App Apart: The Complete Predictive Analytics Lifecyc...
Dashboards that Set Your App Apart: The Complete Predictive Analytics Lifecyc...Dashboards that Set Your App Apart: The Complete Predictive Analytics Lifecyc...
Dashboards that Set Your App Apart: The Complete Predictive Analytics Lifecyc...
 
Dashboards that Set Your App Apart: The Complete Predictive Analytics Lifecyc...
Dashboards that Set Your App Apart: The Complete Predictive Analytics Lifecyc...Dashboards that Set Your App Apart: The Complete Predictive Analytics Lifecyc...
Dashboards that Set Your App Apart: The Complete Predictive Analytics Lifecyc...
 
Usage Trend Reporting
Usage Trend Reporting Usage Trend Reporting
Usage Trend Reporting
 
Google Analytics Powerups and Smartcuts
Google Analytics Powerups and Smartcuts Google Analytics Powerups and Smartcuts
Google Analytics Powerups and Smartcuts
 
How to Avoid Sampling in Google Analytics
How to Avoid Sampling in Google AnalyticsHow to Avoid Sampling in Google Analytics
How to Avoid Sampling in Google Analytics
 

More from Semetrical

More from Semetrical (6)

How To Integrate Social Behavioural Data Into Your SEO Keyword Strategy
How To Integrate Social Behavioural Data Into Your SEO Keyword StrategyHow To Integrate Social Behavioural Data Into Your SEO Keyword Strategy
How To Integrate Social Behavioural Data Into Your SEO Keyword Strategy
 
KPI Myopia - Why Do Marketers Focus On Conversions And Ignore Revenue
KPI Myopia - Why Do Marketers Focus On Conversions And Ignore RevenueKPI Myopia - Why Do Marketers Focus On Conversions And Ignore Revenue
KPI Myopia - Why Do Marketers Focus On Conversions And Ignore Revenue
 
The 3 Keys To Success in SEO
The 3 Keys To Success in SEOThe 3 Keys To Success in SEO
The 3 Keys To Success in SEO
 
3 Keys To Success In Performance Marketing
3 Keys To Success In Performance Marketing3 Keys To Success In Performance Marketing
3 Keys To Success In Performance Marketing
 
How to Improve Performance with Audience-first SEO & Content Marketing
How to Improve Performance with Audience-first SEO & Content MarketingHow to Improve Performance with Audience-first SEO & Content Marketing
How to Improve Performance with Audience-first SEO & Content Marketing
 
Improving Lead Generation With Effective SEO
Improving Lead Generation With Effective SEOImproving Lead Generation With Effective SEO
Improving Lead Generation With Effective SEO
 

Recently uploaded

Recently uploaded (20)

Unlocking the Mystery of the Voynich Manuscript
Unlocking the Mystery of the Voynich ManuscriptUnlocking the Mystery of the Voynich Manuscript
Unlocking the Mystery of the Voynich Manuscript
 
Press Release Distribution Evolving with Digital Trends.pdf
Press Release Distribution Evolving with Digital Trends.pdfPress Release Distribution Evolving with Digital Trends.pdf
Press Release Distribution Evolving with Digital Trends.pdf
 
W.H.Bender Quote 61 -Influential restaurant and food service industry network...
W.H.Bender Quote 61 -Influential restaurant and food service industry network...W.H.Bender Quote 61 -Influential restaurant and food service industry network...
W.H.Bender Quote 61 -Influential restaurant and food service industry network...
 
personal branding kit for music business
personal branding kit for music businesspersonal branding kit for music business
personal branding kit for music business
 
Elevating Your Digital Presence by Evitha.pdf
Elevating Your Digital Presence by Evitha.pdfElevating Your Digital Presence by Evitha.pdf
Elevating Your Digital Presence by Evitha.pdf
 
SP Search Term Data Optimization Template.pdf
SP Search Term Data Optimization Template.pdfSP Search Term Data Optimization Template.pdf
SP Search Term Data Optimization Template.pdf
 
Martal Group - B2B Lead Gen Agency - Onboarding Overview
Martal Group - B2B Lead Gen Agency - Onboarding OverviewMartal Group - B2B Lead Gen Agency - Onboarding Overview
Martal Group - B2B Lead Gen Agency - Onboarding Overview
 
Choosing the Right White Label SEO Services to Boost Your Agency's Growth.pdf
Choosing the Right White Label SEO Services to Boost Your Agency's Growth.pdfChoosing the Right White Label SEO Services to Boost Your Agency's Growth.pdf
Choosing the Right White Label SEO Services to Boost Your Agency's Growth.pdf
 
The Science of Landing Page Messaging.pdf
The Science of Landing Page Messaging.pdfThe Science of Landing Page Messaging.pdf
The Science of Landing Page Messaging.pdf
 
Rise and fall of Kulula.com, an airline won consumers by different marketing ...
Rise and fall of Kulula.com, an airline won consumers by different marketing ...Rise and fall of Kulula.com, an airline won consumers by different marketing ...
Rise and fall of Kulula.com, an airline won consumers by different marketing ...
 
20180928 Hofstede Insights Conference Milan The Power of Culture Led Brands.pptx
20180928 Hofstede Insights Conference Milan The Power of Culture Led Brands.pptx20180928 Hofstede Insights Conference Milan The Power of Culture Led Brands.pptx
20180928 Hofstede Insights Conference Milan The Power of Culture Led Brands.pptx
 
Elevate Your Advertising Game: Introducing Billion Broadcaster Lift Advertising
Elevate Your Advertising Game: Introducing Billion Broadcaster Lift AdvertisingElevate Your Advertising Game: Introducing Billion Broadcaster Lift Advertising
Elevate Your Advertising Game: Introducing Billion Broadcaster Lift Advertising
 
Best 5 Graphics Designing Course In Chandigarh
Best 5 Graphics Designing Course In ChandigarhBest 5 Graphics Designing Course In Chandigarh
Best 5 Graphics Designing Course In Chandigarh
 
TAM_AdEx-Cross_Media_Report-Banking_Finance_Investment_(BFSI)_2023.pdf
TAM_AdEx-Cross_Media_Report-Banking_Finance_Investment_(BFSI)_2023.pdfTAM_AdEx-Cross_Media_Report-Banking_Finance_Investment_(BFSI)_2023.pdf
TAM_AdEx-Cross_Media_Report-Banking_Finance_Investment_(BFSI)_2023.pdf
 
Alpha Media March 2024 Buyers Guide.pptx
Alpha Media March 2024 Buyers Guide.pptxAlpha Media March 2024 Buyers Guide.pptx
Alpha Media March 2024 Buyers Guide.pptx
 
VIP Call Girls Dongri WhatsApp +91-9833363713, Full Night Service
VIP Call Girls Dongri WhatsApp +91-9833363713, Full Night ServiceVIP Call Girls Dongri WhatsApp +91-9833363713, Full Night Service
VIP Call Girls Dongri WhatsApp +91-9833363713, Full Night Service
 
Micro-Choices, Max Impact Personalizing Your Journey, One Moment at a Time.pdf
Micro-Choices, Max Impact Personalizing Your Journey, One Moment at a Time.pdfMicro-Choices, Max Impact Personalizing Your Journey, One Moment at a Time.pdf
Micro-Choices, Max Impact Personalizing Your Journey, One Moment at a Time.pdf
 
Digital-Marketing-Into-by-Zoraiz-Ahmad.pptx
Digital-Marketing-Into-by-Zoraiz-Ahmad.pptxDigital-Marketing-Into-by-Zoraiz-Ahmad.pptx
Digital-Marketing-Into-by-Zoraiz-Ahmad.pptx
 
Welcome to DataMetricks Consulting (1).pptx
Welcome to DataMetricks Consulting (1).pptxWelcome to DataMetricks Consulting (1).pptx
Welcome to DataMetricks Consulting (1).pptx
 
10 Email Marketing Best Practices to Increase Engagements, CTR, And ROI
10 Email Marketing Best Practices to Increase Engagements, CTR, And ROI10 Email Marketing Best Practices to Increase Engagements, CTR, And ROI
10 Email Marketing Best Practices to Increase Engagements, CTR, And ROI
 

Using R to Feed Google Analytics Data into BigQuery