SlideShare a Scribd company logo
1 of 31
AMP’lifying Your
Google Analytics
HELLO
I’m Ben Johnston
❑ SEO & Data Analytics Director For ESV Digital
❑ 13 years experience, 11 agency side
❑ Spend a lot of time making Google Analytics work
❑ Always looking to try new technologies
❑ I love what I do
2
• https://www.linkedin.com/in/ben-johnston-seo/
https://twitter.com/ben_johnston80
• https://www.ben-johnston.co.uk/
• https://www.esvdigital.co.uk
What We’ll Cover
❑ What is AMP?
❑ What are PWA’s?
❑ How are they different?
❑ How to track AMP in Google
Analytics
❑ How to track PWA’s in Google
Analytics
❑ Best practices
❑ Questions
What Is AMP?
❑ Stands for Accelerated Mobile Pages
(PLEASE don’t call them AMP pages!)
❑ Stripped-down pages with minimal
HTML, CSS & JS
❑ It’s a Google initiative, using their
CDN
❑ Loads very fast on mobile and is
generally easier to read
❑ It’s great for publishers, but there are
other uses
4
How Does AMP Work?
❑ It creates AMP versions of your
content
❑ This leads to secondary URLs for
mobile
❑ It’s vital that your canonical tags
are set properly
❑ It also means you need to
update your Google Analytics
setup to track them effectively
5
What Are PWA’s?
❑ Stands for Progressive Web Apps
❑ Allows your website to exhibit app-
like behaviour on mobile
❑ They have to be fast and reliable
❑ Can send push notifications, pin to
home screen and download for
offline browsing
❑ They work better on Android at the
moment, but iOS support is
improving
6
Installing Tracking For PWA’s
❑ Setting this up is usually a pain
❑ If your PWA is built through JavaScript frameworks like React or
Angular, regular pageview tracking won’t work (although some
WordPress plugins deal with it better)
❑ Sadly, there’s no one-size-fits-all solution for this
❑ You need to use the History Change triggers in GTM to manage
navigational elements and push through virtual pageviews
❑ More on that later
7
What’s The Difference?
❑ AMP is using the same content over Google’s CDN and
providing a different experience for mobile users
❑ The idea is that AMP will provide users on 2g or poor signals
with a fast experience. Ideal for content sites
❑ PWA’s are about providing an app-like experience for mobile
users
❑ They allow sites to be installed on a device, browse offline and
use push notifications
8
Setting Up GA For AMP
❑ Since this is largely consistent, there are some hard and fast rules for this:
❏ Do not mess with your master view
❏ DO NOT MESS WITH YOUR MASTER VIEW
❏ Use a filter to unify your content
❏ Use content groupings to isolate AMP and non-AMP URLs
❏ Create segments for AMP and non-AMP content
❏ Create an AMP-specific view & a non-AMP specific view
❏ More details at https://www.ben-johnston.co.uk/amp-google-analytics/ (it’s
on AMP, too!)
9
Setting Up GA For AMP
❑ Since we’re dealing with the same content with
different URLs for different devices, we want to make
our Google Analytics nice and simple
❑ Your master view should remain unchanged in terms of
filters – this is your data’s history, you need to be able to
look back at this. Use regex in search if needs be
❑ First, we’ll create a Unified Content view
10
Creating A Unified Content View
❑ We’re going to assume that all URLs
contain /amp/
❑ Create a new view in Google
Analytics and apply the following
filter
❑ This view will rewrite all URLs to unify
your pages, whether they have /amp/
or not
❑ You’ll have a top-line view of all your
content
11
Creating AMP & Non-AMP Views
❑ Ideal for isolating
performance with maximum
accuracy (for GA, at least)
❑ Create filtered views based
on your AMP parameters
❑ Remember to create one for
AMP and one for non-AMP
12
Content Groupings
❑ No one uses these
enough
❑ You can add these to
your master view
❑ They will let you isolate
AMP and non-AMP
traffic for ad-hoc
analyses
13
Using Content Groupings
❑ Once you’ve created
your content groupings
(one for AMP and one
for non-AMP), you can
use them within the
Site Content section of
GA like so
14
Segments For AMP & Non-AMP
❑ Nothing beats a segment for a
quick overview
❑ They’re not always the most
accurate, due to sampling, but
for a quick look, they’re ideal
❑ Here’s how to create them
❑ Remember to do one for AMP
and one for non-AMP
15
Your Final AMP Google Analytics Setup
❑ You should end up with the following:
❏ A unified view: A Google Analytics view that lets you see overall performance of your
pages at a glance, making no distinction between AMP and non-AMP content
❏ AMP and non-AMP content groupings in your Master View: By using content
groupings, you’re able to compare the performance of the two different platforms in
your main reporting view
❏ AMP and non-AMP segments: These will let you compare the performance of the two
at a glance, but should only be used for a quick look rather than for in-depth analysis
due to accuracy
❏ A separate AMP view: A view only for your AMP traffic, which you can set up to track
your key goals accordingly, especially if your mobile goals differ from your main site
goals
16
Tracking PWA’s Using Google
Tag Manager
❑ As alluded to earlier, this can be a pain
❑ Today, we’re just going to focus on PWAs that are not single page
❑ This means Google Tag Manager Preview Mode stays when you change page and
the URL switches when you do
❑ If this happens, great – we have fairly consistent GTM elements which we can focus
on
❑ If you have one where the above conditions don’t occur, talk to me later
17
Tracking Pageviews In PWA’s
❑ The History Listener trigger identifies when
something has changed in your PWA, be it
a new page or a new event
❑ Run a preview using All History Changes
❑ If you get numerous changes when
moving between pages, you need to chat
to your developer
❑ Again, there is no hard and fast solution
here – it depends how your PWA is built,
but there are a number of filters which can
be applied based on URL strings
18
Tracking The Cool Stuff
19
Tracking The Cool Stuff
❑ PWA’s bring a lot of extra functionality, which is really
quite exciting:
❏ Push notifications
❏ Offline usage
20
A Note On The Measurement Protocol
❑ The Measurement Protocol is an advanced Google Analytics area that
lets you make direct requests to the system and push raw data into
Google Analytics
❑ You can use it in a number of ways, including editing previous hits
❑ It can be used to measure activity in alternative environments
❑ It can tie online and offline behaviour together
❑ It can push and pull data between your site and GA
❑ It’s the perfect platform to track the additional functionality of
Progressive Web Apps
21
Service Workers
❑ Service Workers are the key element which distinguishes PWAs
❑ They are JavaScript files which run outside of the main browser
thread, caching resources and sending pushes if required
❑ We’re assuming your service worker is registering rather than having
to use Window events
❑ Yes, I know, we’re making a lot of assumptions here
❑ A correctly-configured service worker makes it easier to track PWA
functionality
22
Tracking Offline Usage
❑ There’s no one-size solution here
❑ You need to configure your service
worker to engage with the
Measurement Protocol
❑ https://medium.com/dev-
channel/tracking-pwa-events-with-
google-analytics-3b50030d8922 has
great resources around this
❑ You will need to create custom
dimensions to track this in Google
Analytics
23
Custom Dimensions In Google
Analytics
❑ The easiest way to push these
through is with Google Tag
Manager
❑ Ensure that your service worker
pushes through a URL
parameter for offline users, such
as #offline
❑ Create a GTM variable to capture
those page values
24
Custom Dimensions In Google
Tag Manager
❑ In Tag Manager, click Variables
❑ Under User-Defined Variables, click New
❑ Click Variable Configuration and select URL
as the variable type
❑ On the Variable Configuration page, set the
Component Type to Fragment
❑ Name the variable, e.g. "URL Fragment
Variable"
❑ Click Save
25
Custom Dimensions In Google
Tag Manager
❑ Click Variables and then select your Google
Analytics Settings variable
❑ Open the tag for editing and navigate to More
settings and then Custom Dimensions
❑ Click +Add Custom Dimension
❑ Enter the Index value that you captured in step
1
❑ For Dimension Value, use the variable selector
icon variable selector icon to select the name of
the variable that you created in step 2
❑ Click Save
26
Best Practices
27
Best Practices For AMP
❑ Create separate views for AMP and non-AMP traffic
❑ Create content groupings within your master view
❑ Create segments for AMP and non-AMP (don’t rely on
them)
❑ Create a unified view
❑ Read this for overall best practices for Google Analytics
28
Best Practices For PWA’s
❑ Be nice to your devs!
❑ Understand that there’s no one-size-fits-all
❑ Use # or similar in your URLs for offline or push
elements
❑ Be consistent around how you do that
❑ Create separate views for these
29
Questions
30
Thank You
31

More Related Content

What's hot

AMP - Accelerated Mobile Pages
AMP - Accelerated Mobile PagesAMP - Accelerated Mobile Pages
AMP - Accelerated Mobile PagesIdo Green
 
Google's AMP project for web users
Google's AMP project for web usersGoogle's AMP project for web users
Google's AMP project for web usersPeter Knight
 
Accelerated Mobile Pages (AMP) The Next Revolution in Mobile Web Development
Accelerated Mobile Pages (AMP) The Next Revolution in Mobile Web DevelopmentAccelerated Mobile Pages (AMP) The Next Revolution in Mobile Web Development
Accelerated Mobile Pages (AMP) The Next Revolution in Mobile Web DevelopmentNotifyVisitors
 
Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016
Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016
Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016Jesse Semchuck
 
Amp it UP! Using Google Accelerated Mobile Pages with WordPress - WordCamp An...
Amp it UP! Using Google Accelerated Mobile Pages with WordPress - WordCamp An...Amp it UP! Using Google Accelerated Mobile Pages with WordPress - WordCamp An...
Amp it UP! Using Google Accelerated Mobile Pages with WordPress - WordCamp An...Mike Hale
 
Amp your site: An intro to accelerated mobile pages
Amp your site: An intro to accelerated mobile pagesAmp your site: An intro to accelerated mobile pages
Amp your site: An intro to accelerated mobile pagesRobert McFrazier
 
Accelerated Mobile Pages - WordCamp Kansas City
Accelerated Mobile Pages - WordCamp Kansas CityAccelerated Mobile Pages - WordCamp Kansas City
Accelerated Mobile Pages - WordCamp Kansas CityJeremy Green
 
Google AMP (Accelerated Mobile Pages)
Google AMP (Accelerated Mobile Pages)Google AMP (Accelerated Mobile Pages)
Google AMP (Accelerated Mobile Pages)Chitpong Wuttanan
 
Integrating Accelerated Mobile Pages (AMP) In Drupal Websites
Integrating Accelerated Mobile Pages (AMP) In Drupal WebsitesIntegrating Accelerated Mobile Pages (AMP) In Drupal Websites
Integrating Accelerated Mobile Pages (AMP) In Drupal WebsitesExcellent Webworld
 
AMP and PWA
AMP and PWAAMP and PWA
AMP and PWAEun Cho
 
Stop That: Common Technical SEO Problems & How to Fix Them
Stop That: Common Technical SEO Problems & How to Fix ThemStop That: Common Technical SEO Problems & How to Fix Them
Stop That: Common Technical SEO Problems & How to Fix ThemDana DiTomaso
 
Rate limiting of google crawler
Rate limiting of google crawlerRate limiting of google crawler
Rate limiting of google crawlerShrey Jairath
 
Getting Started with Progressive Web Apps
Getting Started with Progressive Web AppsGetting Started with Progressive Web Apps
Getting Started with Progressive Web AppsBill Stavroulakis
 
How To Speed Up Your WordPress Website To Improve Search Engine Rankings
How To Speed Up Your WordPress Website To Improve Search Engine RankingsHow To Speed Up Your WordPress Website To Improve Search Engine Rankings
How To Speed Up Your WordPress Website To Improve Search Engine RankingsCharles McKeever
 
What a search engine(1)
What a search engine(1)What a search engine(1)
What a search engine(1)Krensky1
 

What's hot (17)

AMP - Accelerated Mobile Pages
AMP - Accelerated Mobile PagesAMP - Accelerated Mobile Pages
AMP - Accelerated Mobile Pages
 
Google's AMP project for web users
Google's AMP project for web usersGoogle's AMP project for web users
Google's AMP project for web users
 
Accelerated Mobile Pages (AMP) The Next Revolution in Mobile Web Development
Accelerated Mobile Pages (AMP) The Next Revolution in Mobile Web DevelopmentAccelerated Mobile Pages (AMP) The Next Revolution in Mobile Web Development
Accelerated Mobile Pages (AMP) The Next Revolution in Mobile Web Development
 
Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016
Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016
Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016
 
Amp it UP! Using Google Accelerated Mobile Pages with WordPress - WordCamp An...
Amp it UP! Using Google Accelerated Mobile Pages with WordPress - WordCamp An...Amp it UP! Using Google Accelerated Mobile Pages with WordPress - WordCamp An...
Amp it UP! Using Google Accelerated Mobile Pages with WordPress - WordCamp An...
 
Amp your site: An intro to accelerated mobile pages
Amp your site: An intro to accelerated mobile pagesAmp your site: An intro to accelerated mobile pages
Amp your site: An intro to accelerated mobile pages
 
Accelerated Mobile Pages - WordCamp Kansas City
Accelerated Mobile Pages - WordCamp Kansas CityAccelerated Mobile Pages - WordCamp Kansas City
Accelerated Mobile Pages - WordCamp Kansas City
 
Google AMP (Accelerated Mobile Pages)
Google AMP (Accelerated Mobile Pages)Google AMP (Accelerated Mobile Pages)
Google AMP (Accelerated Mobile Pages)
 
Integrating Accelerated Mobile Pages (AMP) In Drupal Websites
Integrating Accelerated Mobile Pages (AMP) In Drupal WebsitesIntegrating Accelerated Mobile Pages (AMP) In Drupal Websites
Integrating Accelerated Mobile Pages (AMP) In Drupal Websites
 
WP Accessibility
WP AccessibilityWP Accessibility
WP Accessibility
 
AMP and PWA
AMP and PWAAMP and PWA
AMP and PWA
 
Stop That: Common Technical SEO Problems & How to Fix Them
Stop That: Common Technical SEO Problems & How to Fix ThemStop That: Common Technical SEO Problems & How to Fix Them
Stop That: Common Technical SEO Problems & How to Fix Them
 
Rate limiting of google crawler
Rate limiting of google crawlerRate limiting of google crawler
Rate limiting of google crawler
 
Getting Started with Progressive Web Apps
Getting Started with Progressive Web AppsGetting Started with Progressive Web Apps
Getting Started with Progressive Web Apps
 
How To Speed Up Your WordPress Website To Improve Search Engine Rankings
How To Speed Up Your WordPress Website To Improve Search Engine RankingsHow To Speed Up Your WordPress Website To Improve Search Engine Rankings
How To Speed Up Your WordPress Website To Improve Search Engine Rankings
 
What a search engine(1)
What a search engine(1)What a search engine(1)
What a search engine(1)
 
Testing
TestingTesting
Testing
 

Similar to Amp'lifying your google analytics ben johnston

Google AMP: High-Speed Pages in Higher Ed
Google AMP: High-Speed Pages in Higher EdGoogle AMP: High-Speed Pages in Higher Ed
Google AMP: High-Speed Pages in Higher EdCaroline Roberts
 
Technical SEO, AMP and boost up page speed
Technical SEO, AMP and boost up page speedTechnical SEO, AMP and boost up page speed
Technical SEO, AMP and boost up page speedivan so
 
Boosting your conversion rate through web performance improvements
Boosting your conversion rate through web performance improvementsBoosting your conversion rate through web performance improvements
Boosting your conversion rate through web performance improvementsAlyss Noland
 
How to Enhance Your SEO When Redesigning an Ecommerce Website - Tarun Gehani,...
How to Enhance Your SEO When Redesigning an Ecommerce Website - Tarun Gehani,...How to Enhance Your SEO When Redesigning an Ecommerce Website - Tarun Gehani,...
How to Enhance Your SEO When Redesigning an Ecommerce Website - Tarun Gehani,...Tarun Gehani
 
Drupal Effect on High Performance Websites
Drupal Effect on High Performance Websites Drupal Effect on High Performance Websites
Drupal Effect on High Performance Websites OpenSense Labs
 
Javascript & SEO 2019
Javascript & SEO 2019Javascript & SEO 2019
Javascript & SEO 2019Edd Wilson
 
Website speed optimization guide for technically advanced webmasters
Website speed optimization guide for technically advanced webmastersWebsite speed optimization guide for technically advanced webmasters
Website speed optimization guide for technically advanced webmastersAditya Singh
 
googletagmanager-230602072244-9b17e12b (1).pptx
googletagmanager-230602072244-9b17e12b (1).pptxgoogletagmanager-230602072244-9b17e12b (1).pptx
googletagmanager-230602072244-9b17e12b (1).pptxarthiravi92
 
Client-Side Performance Testing
Client-Side Performance TestingClient-Side Performance Testing
Client-Side Performance TestingAnand Bagmar
 
Beyond the Primary KPI: Leveraging Bad Test Results | Masters of Conversion b...
Beyond the Primary KPI: Leveraging Bad Test Results | Masters of Conversion b...Beyond the Primary KPI: Leveraging Bad Test Results | Masters of Conversion b...
Beyond the Primary KPI: Leveraging Bad Test Results | Masters of Conversion b...VWO
 
Core web vitals is the thing you should focus on if you own a website in 2021
Core web vitals is the thing you should focus on if you own a website in 2021Core web vitals is the thing you should focus on if you own a website in 2021
Core web vitals is the thing you should focus on if you own a website in 2021World Web Technology Pvt Ltd
 
Get AMP’ed for AMP!
Get AMP’ed for AMP!Get AMP’ed for AMP!
Get AMP’ed for AMP!Greenlane
 
How to prepare for Google's page experience update
How to prepare for Google's page experience updateHow to prepare for Google's page experience update
How to prepare for Google's page experience updateBuiltvisible
 
Web Performance & Search Engines - A look beyond rankings
Web Performance & Search Engines - A look beyond rankingsWeb Performance & Search Engines - A look beyond rankings
Web Performance & Search Engines - A look beyond rankingsGiacomo Zecchini
 
o2script(UK) - Top Site Execution_ Compelling Devices and Systems.pdf
o2script(UK) - Top Site Execution_  Compelling Devices and Systems.pdfo2script(UK) - Top Site Execution_  Compelling Devices and Systems.pdf
o2script(UK) - Top Site Execution_ Compelling Devices and Systems.pdfO2scriptWebSolutions
 
How To Increase Your Website's Visibility - SEO Best Practices - LA2M Presena...
How To Increase Your Website's Visibility - SEO Best Practices - LA2M Presena...How To Increase Your Website's Visibility - SEO Best Practices - LA2M Presena...
How To Increase Your Website's Visibility - SEO Best Practices - LA2M Presena...Tarun Gehani
 
Need for Speed: Website Edition – Website Optimization Tools and Techniques P...
Need for Speed: Website Edition – Website Optimization Tools and Techniques P...Need for Speed: Website Edition – Website Optimization Tools and Techniques P...
Need for Speed: Website Edition – Website Optimization Tools and Techniques P...Devin Walker
 
Webinar: Common Mistakes in A/B Testing
Webinar: Common Mistakes in A/B TestingWebinar: Common Mistakes in A/B Testing
Webinar: Common Mistakes in A/B TestingOptimizely
 
How to Fix a Slow WordPress Site (and get A+ scores)
How to Fix a Slow WordPress Site (and get A+ scores)How to Fix a Slow WordPress Site (and get A+ scores)
How to Fix a Slow WordPress Site (and get A+ scores)Lewis Ogden
 

Similar to Amp'lifying your google analytics ben johnston (20)

Google AMP: High-Speed Pages in Higher Ed
Google AMP: High-Speed Pages in Higher EdGoogle AMP: High-Speed Pages in Higher Ed
Google AMP: High-Speed Pages in Higher Ed
 
Technical SEO, AMP and boost up page speed
Technical SEO, AMP and boost up page speedTechnical SEO, AMP and boost up page speed
Technical SEO, AMP and boost up page speed
 
Boosting your conversion rate through web performance improvements
Boosting your conversion rate through web performance improvementsBoosting your conversion rate through web performance improvements
Boosting your conversion rate through web performance improvements
 
How to Enhance Your SEO When Redesigning an Ecommerce Website - Tarun Gehani,...
How to Enhance Your SEO When Redesigning an Ecommerce Website - Tarun Gehani,...How to Enhance Your SEO When Redesigning an Ecommerce Website - Tarun Gehani,...
How to Enhance Your SEO When Redesigning an Ecommerce Website - Tarun Gehani,...
 
Drupal Effect on High Performance Websites
Drupal Effect on High Performance Websites Drupal Effect on High Performance Websites
Drupal Effect on High Performance Websites
 
Javascript & SEO 2019
Javascript & SEO 2019Javascript & SEO 2019
Javascript & SEO 2019
 
Website speed optimization guide for technically advanced webmasters
Website speed optimization guide for technically advanced webmastersWebsite speed optimization guide for technically advanced webmasters
Website speed optimization guide for technically advanced webmasters
 
Google Tag Manager.pptx
Google Tag Manager.pptxGoogle Tag Manager.pptx
Google Tag Manager.pptx
 
googletagmanager-230602072244-9b17e12b (1).pptx
googletagmanager-230602072244-9b17e12b (1).pptxgoogletagmanager-230602072244-9b17e12b (1).pptx
googletagmanager-230602072244-9b17e12b (1).pptx
 
Client-Side Performance Testing
Client-Side Performance TestingClient-Side Performance Testing
Client-Side Performance Testing
 
Beyond the Primary KPI: Leveraging Bad Test Results | Masters of Conversion b...
Beyond the Primary KPI: Leveraging Bad Test Results | Masters of Conversion b...Beyond the Primary KPI: Leveraging Bad Test Results | Masters of Conversion b...
Beyond the Primary KPI: Leveraging Bad Test Results | Masters of Conversion b...
 
Core web vitals is the thing you should focus on if you own a website in 2021
Core web vitals is the thing you should focus on if you own a website in 2021Core web vitals is the thing you should focus on if you own a website in 2021
Core web vitals is the thing you should focus on if you own a website in 2021
 
Get AMP’ed for AMP!
Get AMP’ed for AMP!Get AMP’ed for AMP!
Get AMP’ed for AMP!
 
How to prepare for Google's page experience update
How to prepare for Google's page experience updateHow to prepare for Google's page experience update
How to prepare for Google's page experience update
 
Web Performance & Search Engines - A look beyond rankings
Web Performance & Search Engines - A look beyond rankingsWeb Performance & Search Engines - A look beyond rankings
Web Performance & Search Engines - A look beyond rankings
 
o2script(UK) - Top Site Execution_ Compelling Devices and Systems.pdf
o2script(UK) - Top Site Execution_  Compelling Devices and Systems.pdfo2script(UK) - Top Site Execution_  Compelling Devices and Systems.pdf
o2script(UK) - Top Site Execution_ Compelling Devices and Systems.pdf
 
How To Increase Your Website's Visibility - SEO Best Practices - LA2M Presena...
How To Increase Your Website's Visibility - SEO Best Practices - LA2M Presena...How To Increase Your Website's Visibility - SEO Best Practices - LA2M Presena...
How To Increase Your Website's Visibility - SEO Best Practices - LA2M Presena...
 
Need for Speed: Website Edition – Website Optimization Tools and Techniques P...
Need for Speed: Website Edition – Website Optimization Tools and Techniques P...Need for Speed: Website Edition – Website Optimization Tools and Techniques P...
Need for Speed: Website Edition – Website Optimization Tools and Techniques P...
 
Webinar: Common Mistakes in A/B Testing
Webinar: Common Mistakes in A/B TestingWebinar: Common Mistakes in A/B Testing
Webinar: Common Mistakes in A/B Testing
 
How to Fix a Slow WordPress Site (and get A+ scores)
How to Fix a Slow WordPress Site (and get A+ scores)How to Fix a Slow WordPress Site (and get A+ scores)
How to Fix a Slow WordPress Site (and get A+ scores)
 

Recently uploaded

Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...varanasisatyanvesh
 
Predictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesPredictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesBoston Institute of Analytics
 
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...ssuserf63bd7
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxronsairoathenadugay
 
Introduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxIntroduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxAniqa Zai
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证acoha1
 
如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样
如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样
如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样wsppdmt
 
How to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsHow to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsBrainSell Technologies
 
jll-asia-pacific-capital-tracker-1q24.pdf
jll-asia-pacific-capital-tracker-1q24.pdfjll-asia-pacific-capital-tracker-1q24.pdf
jll-asia-pacific-capital-tracker-1q24.pdfjaytendertech
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeBoston Institute of Analytics
 
Solution manual for managerial accounting 8th edition by john wild ken shaw b...
Solution manual for managerial accounting 8th edition by john wild ken shaw b...Solution manual for managerial accounting 8th edition by john wild ken shaw b...
Solution manual for managerial accounting 8th edition by john wild ken shaw b...rightmanforbloodline
 
Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?RemarkSemacio
 
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...mikehavy0
 
bams-3rd-case-presentation-scabies-12-05-2020.pptx
bams-3rd-case-presentation-scabies-12-05-2020.pptxbams-3rd-case-presentation-scabies-12-05-2020.pptx
bams-3rd-case-presentation-scabies-12-05-2020.pptxJocylDuran
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...Bertram Ludäscher
 
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Klinik Aborsi
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshareraiaryan448
 
sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444saurabvyas476
 

Recently uploaded (20)

Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...
 
Predictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesPredictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting Techniques
 
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
Introduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxIntroduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptx
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
 
Abortion pills in Doha {{ QATAR }} +966572737505) Get Cytotec
Abortion pills in Doha {{ QATAR }} +966572737505) Get CytotecAbortion pills in Doha {{ QATAR }} +966572737505) Get Cytotec
Abortion pills in Doha {{ QATAR }} +966572737505) Get Cytotec
 
如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样
如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样
如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样
 
How to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsHow to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data Analytics
 
jll-asia-pacific-capital-tracker-1q24.pdf
jll-asia-pacific-capital-tracker-1q24.pdfjll-asia-pacific-capital-tracker-1q24.pdf
jll-asia-pacific-capital-tracker-1q24.pdf
 
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted KitAbortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
 
Solution manual for managerial accounting 8th edition by john wild ken shaw b...
Solution manual for managerial accounting 8th edition by john wild ken shaw b...Solution manual for managerial accounting 8th edition by john wild ken shaw b...
Solution manual for managerial accounting 8th edition by john wild ken shaw b...
 
Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?
 
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
 
bams-3rd-case-presentation-scabies-12-05-2020.pptx
bams-3rd-case-presentation-scabies-12-05-2020.pptxbams-3rd-case-presentation-scabies-12-05-2020.pptx
bams-3rd-case-presentation-scabies-12-05-2020.pptx
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
 
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 
sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444
 

Amp'lifying your google analytics ben johnston

  • 2. HELLO I’m Ben Johnston ❑ SEO & Data Analytics Director For ESV Digital ❑ 13 years experience, 11 agency side ❑ Spend a lot of time making Google Analytics work ❑ Always looking to try new technologies ❑ I love what I do 2 • https://www.linkedin.com/in/ben-johnston-seo/ https://twitter.com/ben_johnston80 • https://www.ben-johnston.co.uk/ • https://www.esvdigital.co.uk
  • 3. What We’ll Cover ❑ What is AMP? ❑ What are PWA’s? ❑ How are they different? ❑ How to track AMP in Google Analytics ❑ How to track PWA’s in Google Analytics ❑ Best practices ❑ Questions
  • 4. What Is AMP? ❑ Stands for Accelerated Mobile Pages (PLEASE don’t call them AMP pages!) ❑ Stripped-down pages with minimal HTML, CSS & JS ❑ It’s a Google initiative, using their CDN ❑ Loads very fast on mobile and is generally easier to read ❑ It’s great for publishers, but there are other uses 4
  • 5. How Does AMP Work? ❑ It creates AMP versions of your content ❑ This leads to secondary URLs for mobile ❑ It’s vital that your canonical tags are set properly ❑ It also means you need to update your Google Analytics setup to track them effectively 5
  • 6. What Are PWA’s? ❑ Stands for Progressive Web Apps ❑ Allows your website to exhibit app- like behaviour on mobile ❑ They have to be fast and reliable ❑ Can send push notifications, pin to home screen and download for offline browsing ❑ They work better on Android at the moment, but iOS support is improving 6
  • 7. Installing Tracking For PWA’s ❑ Setting this up is usually a pain ❑ If your PWA is built through JavaScript frameworks like React or Angular, regular pageview tracking won’t work (although some WordPress plugins deal with it better) ❑ Sadly, there’s no one-size-fits-all solution for this ❑ You need to use the History Change triggers in GTM to manage navigational elements and push through virtual pageviews ❑ More on that later 7
  • 8. What’s The Difference? ❑ AMP is using the same content over Google’s CDN and providing a different experience for mobile users ❑ The idea is that AMP will provide users on 2g or poor signals with a fast experience. Ideal for content sites ❑ PWA’s are about providing an app-like experience for mobile users ❑ They allow sites to be installed on a device, browse offline and use push notifications 8
  • 9. Setting Up GA For AMP ❑ Since this is largely consistent, there are some hard and fast rules for this: ❏ Do not mess with your master view ❏ DO NOT MESS WITH YOUR MASTER VIEW ❏ Use a filter to unify your content ❏ Use content groupings to isolate AMP and non-AMP URLs ❏ Create segments for AMP and non-AMP content ❏ Create an AMP-specific view & a non-AMP specific view ❏ More details at https://www.ben-johnston.co.uk/amp-google-analytics/ (it’s on AMP, too!) 9
  • 10. Setting Up GA For AMP ❑ Since we’re dealing with the same content with different URLs for different devices, we want to make our Google Analytics nice and simple ❑ Your master view should remain unchanged in terms of filters – this is your data’s history, you need to be able to look back at this. Use regex in search if needs be ❑ First, we’ll create a Unified Content view 10
  • 11. Creating A Unified Content View ❑ We’re going to assume that all URLs contain /amp/ ❑ Create a new view in Google Analytics and apply the following filter ❑ This view will rewrite all URLs to unify your pages, whether they have /amp/ or not ❑ You’ll have a top-line view of all your content 11
  • 12. Creating AMP & Non-AMP Views ❑ Ideal for isolating performance with maximum accuracy (for GA, at least) ❑ Create filtered views based on your AMP parameters ❑ Remember to create one for AMP and one for non-AMP 12
  • 13. Content Groupings ❑ No one uses these enough ❑ You can add these to your master view ❑ They will let you isolate AMP and non-AMP traffic for ad-hoc analyses 13
  • 14. Using Content Groupings ❑ Once you’ve created your content groupings (one for AMP and one for non-AMP), you can use them within the Site Content section of GA like so 14
  • 15. Segments For AMP & Non-AMP ❑ Nothing beats a segment for a quick overview ❑ They’re not always the most accurate, due to sampling, but for a quick look, they’re ideal ❑ Here’s how to create them ❑ Remember to do one for AMP and one for non-AMP 15
  • 16. Your Final AMP Google Analytics Setup ❑ You should end up with the following: ❏ A unified view: A Google Analytics view that lets you see overall performance of your pages at a glance, making no distinction between AMP and non-AMP content ❏ AMP and non-AMP content groupings in your Master View: By using content groupings, you’re able to compare the performance of the two different platforms in your main reporting view ❏ AMP and non-AMP segments: These will let you compare the performance of the two at a glance, but should only be used for a quick look rather than for in-depth analysis due to accuracy ❏ A separate AMP view: A view only for your AMP traffic, which you can set up to track your key goals accordingly, especially if your mobile goals differ from your main site goals 16
  • 17. Tracking PWA’s Using Google Tag Manager ❑ As alluded to earlier, this can be a pain ❑ Today, we’re just going to focus on PWAs that are not single page ❑ This means Google Tag Manager Preview Mode stays when you change page and the URL switches when you do ❑ If this happens, great – we have fairly consistent GTM elements which we can focus on ❑ If you have one where the above conditions don’t occur, talk to me later 17
  • 18. Tracking Pageviews In PWA’s ❑ The History Listener trigger identifies when something has changed in your PWA, be it a new page or a new event ❑ Run a preview using All History Changes ❑ If you get numerous changes when moving between pages, you need to chat to your developer ❑ Again, there is no hard and fast solution here – it depends how your PWA is built, but there are a number of filters which can be applied based on URL strings 18
  • 19. Tracking The Cool Stuff 19
  • 20. Tracking The Cool Stuff ❑ PWA’s bring a lot of extra functionality, which is really quite exciting: ❏ Push notifications ❏ Offline usage 20
  • 21. A Note On The Measurement Protocol ❑ The Measurement Protocol is an advanced Google Analytics area that lets you make direct requests to the system and push raw data into Google Analytics ❑ You can use it in a number of ways, including editing previous hits ❑ It can be used to measure activity in alternative environments ❑ It can tie online and offline behaviour together ❑ It can push and pull data between your site and GA ❑ It’s the perfect platform to track the additional functionality of Progressive Web Apps 21
  • 22. Service Workers ❑ Service Workers are the key element which distinguishes PWAs ❑ They are JavaScript files which run outside of the main browser thread, caching resources and sending pushes if required ❑ We’re assuming your service worker is registering rather than having to use Window events ❑ Yes, I know, we’re making a lot of assumptions here ❑ A correctly-configured service worker makes it easier to track PWA functionality 22
  • 23. Tracking Offline Usage ❑ There’s no one-size solution here ❑ You need to configure your service worker to engage with the Measurement Protocol ❑ https://medium.com/dev- channel/tracking-pwa-events-with- google-analytics-3b50030d8922 has great resources around this ❑ You will need to create custom dimensions to track this in Google Analytics 23
  • 24. Custom Dimensions In Google Analytics ❑ The easiest way to push these through is with Google Tag Manager ❑ Ensure that your service worker pushes through a URL parameter for offline users, such as #offline ❑ Create a GTM variable to capture those page values 24
  • 25. Custom Dimensions In Google Tag Manager ❑ In Tag Manager, click Variables ❑ Under User-Defined Variables, click New ❑ Click Variable Configuration and select URL as the variable type ❑ On the Variable Configuration page, set the Component Type to Fragment ❑ Name the variable, e.g. "URL Fragment Variable" ❑ Click Save 25
  • 26. Custom Dimensions In Google Tag Manager ❑ Click Variables and then select your Google Analytics Settings variable ❑ Open the tag for editing and navigate to More settings and then Custom Dimensions ❑ Click +Add Custom Dimension ❑ Enter the Index value that you captured in step 1 ❑ For Dimension Value, use the variable selector icon variable selector icon to select the name of the variable that you created in step 2 ❑ Click Save 26
  • 28. Best Practices For AMP ❑ Create separate views for AMP and non-AMP traffic ❑ Create content groupings within your master view ❑ Create segments for AMP and non-AMP (don’t rely on them) ❑ Create a unified view ❑ Read this for overall best practices for Google Analytics 28
  • 29. Best Practices For PWA’s ❑ Be nice to your devs! ❑ Understand that there’s no one-size-fits-all ❑ Use # or similar in your URLs for offline or push elements ❑ Be consistent around how you do that ❑ Create separate views for these 29

Editor's Notes

  1. Chrome on Android actively suggests pinning to home screen
  2. PWA stands for Pain in the Welling Arse!
  3. Do not do this in your master view New views/ filters are not retroactive