SlideShare una empresa de Scribd logo
1 de 20
TRACK WHAT MATTERS MOST
Chad Haefele
Head of User Experience and Assessment
UNC Chapel Hill Libraries
cHaefele@email.unc.edu
Improving Analytics with Google Tag Manager
What is GTM?
• TAG: any bit of code (usually
javascript) you need to insert
into your site.
• Google Analytics basic code:
• Google Analytics Event Tracking:
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.inse
rtBefore(a,m) })(window,document,'script','https://www.google-
analytics.com/analytics.js','ga'); ga('create', 'UA-41010981-7', 'auto');
ga('send', 'pageview');</script>
ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue],
[fieldsObject]);
The problem with Google Analytics
ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);
How does GTM fix this?
<!-- Google Tag Manager --
><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new
Date().getTime(),event:'gtm.js'});var
f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l
='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl
;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-
KS5HJD8');</script><!-- End Google Tag Manager -->
<!-- Google Tag Manager (noscript) --><noscript><iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-
KS5HJD8"height="0" width="0"
style="display:none;visibility:hidden"></iframe></noscript><!-- End Google
Tag Manager (noscript) -->
Inside your <head> tag:
Inside your <body> tag:
The only code you ever need to add to your site:
Setting up GTM
• tagmanager.google.com
Account Name: The name of your library
Setting up GTM
• tagmanager.google.com
Container Name: The URL of your library’s website
Where to use Container: Web
Setting up GTM
• tagmanager.google.com
Setting Up A GTM Account
• If you’re using WordPress, there are plugins to do this part for you.
I like the MetroNet Tag Manager:
http://wordpress.org/extend/plugins/metronet-tag-manager/
• If you previously used Google Analytics, make sure to remove
that code from your site!
Enabling Built-In Variables
• On the left menu, click Variables
• Click the Configure button
• Under the Clicks section, check the boxes for “Click URL”
and “Click Text”
Terminology
•Tag:
A little bit of code that runs on a page, like event tracking:
•Trigger:
A condition which, when true, will add a tag to your page.
ga('send', 'event', [eventCategory], [eventAction], [eventLabel],
[eventValue], [fieldsObject]);
Deploying Google Analytics with GTM
• In Tags, click on New
• Give your tag a name like Universal Analytics
• Click “Tag Configuration”
• Choose Universal Analytics
• Enter your Google Analytics Tracking ID
• Set the Track Type to “Page View”
• Click “Triggering”
• Select “All Pages”
• Click “Save”
• Click “Publish”
• Check the Real-Time section of Google Analytics to make
sure data is being reported as you browse your site.
Implementing Universal Link Tracking
• In Triggers, click New
• Give your trigger name, like Any Link Clicked
• Click on Trigger Configuration
• In the “Click” section, pick “Just Links”, then Save
• In Tags, click New.
• Give it a name like Universal Link Tracking
• Click on Tag Configuration, then Universal Analytics
• Insert Tracking ID
• Set the Track Type to Event
• Category: Universal Link Tracking
• Action: Link Clicked
• Label: Click the + icon and pick the Click URL variable
• Click the Triggering section at the bottom of the page.
• Select your Any Link Clicked trigger that we made
• Click Save
• Publish it
• Check Real-Time info in GA to see if it’s working
Tracking Your E-Resource Usage
• In Triggers, click New
• Give your trigger a name, like E-Resource Click
• Click Trigger Configuration
• In the “Click” section, pick “Just Links”
• Pick “Some Link Clicks”
• Set the boxes to “Click URL”, “contains”, and a unique string that’s part of all your e-
resource URLs (for me it’s go.php?c=)
• click Save
• In Tags, click New
• Give it a name like E-Resource Link Tracking
• Click on Tag Configuration, then Universal Analytics
• Insert Tracking ID
• Set the Track Type to Event
• Category: E-Resource Link Clicks
• Action: Link Clicked
• Label: Click the + icon and pick the Click Text variable
• Click the Triggering section at the bottom of the page.
• Select the E-Resource Click trigger we made
• Click Save
• Publish it
• Check Real-Time info in GA to see if it’s working
Tracking Your PDF Downloads
• In Triggers, click New
• Give your trigger a name, like PDF Click
• Click Trigger Configuration
• In the “Click” section, pick “Just Links”
• Pick “Some Link Clicks”
• Set the boxes to “Click URL”, “contains”, .pdf
• click Save
• In Tags, click New
• Give it a name like PDF click Tracking
• Click on Tag Configuration, then Universal Analytics
• Insert Tracking ID
• Set the Track Type to Event
• Category: PDF Downloads
• Action: Link Clicked
• Label: Click the + icon and pick the Click URL variable
• Click the Triggering section at the bottom of the page.
• Select the PDF Click trigger we made
• Click Save
• Publish it
• Check Real-Time info in GA to see if it’s working
Troubleshooting GTM
• In the upper-right
corner, click the down
arrow next to Publish.
• Click Preview
• Load your webpage in
another tab
Troubleshooting GTM
• As you browse your site, you’ll see (sometimes very
briefly) which triggers and tags are fired at the bottom.
Troubleshooting GTM
• When you’re done troubleshooting, go back to your GTM
tag and click Leave Preview Mode
Other Resources
• ALA’s Library Technology Report on Google Analytics and
Google Tag Manager, by Tabatha Farney
• https://journals.ala.org/index.php/ltr/issue/view/613
• Google Tag Manager Fundamentals course:
• https://analyticsacademy.withgoogle.com/course/5
• Uses an old version of the GTM interface
• Lynda.com’s GTM course
• https://www.lynda.com/Google-Tag-Manager-tutorials/Google-Tag-
Manager-V2-Essential-Training/168238-2.html
• Uses an old version of the GTM interface
• Google Tag Manager support
• https://support.google.com/tagmanager/
• Autotrack.js for an alternate method of setting up tracking:
• https://github.com/googleanalytics/autotrack/blob/master/README.
md
TRACK WHAT MATTERS MOST
Chad Haefele
Head of User Experience and Assessment
UNC Chapel Hill Libraries
cHaefele@email.unc.edu
Improving Analytics with Google Tag Manager

Más contenido relacionado

Destacado

UA and Google Tag Manager – Why & How!
UA and Google Tag Manager – Why & How!UA and Google Tag Manager – Why & How!
UA and Google Tag Manager – Why & How!Munaz Anjum
 
Google Tag Manager (Manual in English)
Google Tag Manager (Manual in English)Google Tag Manager (Manual in English)
Google Tag Manager (Manual in English)Sergey Bizikin
 
Google Tag Manager in 28 Minutes
Google Tag Manager in 28 MinutesGoogle Tag Manager in 28 Minutes
Google Tag Manager in 28 Minutes610 Digital, LLC
 
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)Mahendra Patel
 
Using Google Tag Manager to Improve Your Conversion Rate
Using Google Tag Manager to Improve Your Conversion RateUsing Google Tag Manager to Improve Your Conversion Rate
Using Google Tag Manager to Improve Your Conversion RateMatt Davies
 
Google Analytics (GA) & Google Tag Manager(GTM) 101
Google Analytics (GA) & Google Tag Manager(GTM) 101Google Analytics (GA) & Google Tag Manager(GTM) 101
Google Analytics (GA) & Google Tag Manager(GTM) 101HY C
 
Google Tag Manager Advanced - SEOCampixx 2016
Google Tag Manager Advanced - SEOCampixx 2016Google Tag Manager Advanced - SEOCampixx 2016
Google Tag Manager Advanced - SEOCampixx 2016Jan Berens
 
Google Tag Manager - Revolve Conference 2015
Google Tag Manager - Revolve Conference 2015Google Tag Manager - Revolve Conference 2015
Google Tag Manager - Revolve Conference 2015Tina Arnoldi, MA, LPC
 
Universal Analytics and Google Tag Manager - Superweek 2014
Universal Analytics and Google Tag Manager - Superweek 2014Universal Analytics and Google Tag Manager - Superweek 2014
Universal Analytics and Google Tag Manager - Superweek 2014Analytics Ninja LLC
 
Google Tag Manager - Basic Introduction
Google Tag Manager - Basic IntroductionGoogle Tag Manager - Basic Introduction
Google Tag Manager - Basic Introductioncarlfranzon
 
Advanced Form Tracking in Google Tag Manager
Advanced Form Tracking in Google Tag ManagerAdvanced Form Tracking in Google Tag Manager
Advanced Form Tracking in Google Tag ManagerSimo Ahava
 
Google tag manager-web analytics101
Google tag manager-web analytics101Google tag manager-web analytics101
Google tag manager-web analytics101道育 黃
 
How Digital Marketer Uses Google Tag Manager To Improve Sales & Leads
How Digital Marketer Uses Google Tag Manager To Improve Sales & LeadsHow Digital Marketer Uses Google Tag Manager To Improve Sales & Leads
How Digital Marketer Uses Google Tag Manager To Improve Sales & LeadsMeasurementMarketing.io
 
Google Tag Manager For Nerds
Google Tag Manager For NerdsGoogle Tag Manager For Nerds
Google Tag Manager For NerdsSimo Ahava
 
Tricks and tweaks for Google Analytics and Google Tag Manager
Tricks and tweaks for Google Analytics and Google Tag ManagerTricks and tweaks for Google Analytics and Google Tag Manager
Tricks and tweaks for Google Analytics and Google Tag ManagerSimo Ahava
 
Masterclass Analytics Deep Dive met Google Analytics Advanced en Google Tag M...
Masterclass Analytics Deep Dive met Google Analytics Advanced en Google Tag M...Masterclass Analytics Deep Dive met Google Analytics Advanced en Google Tag M...
Masterclass Analytics Deep Dive met Google Analytics Advanced en Google Tag M...➚ Mike van Hoenselaar
 
Search Marketer's Toolkit for Google Tag Manager and Google Analytics
Search Marketer's Toolkit for Google Tag Manager and Google AnalyticsSearch Marketer's Toolkit for Google Tag Manager and Google Analytics
Search Marketer's Toolkit for Google Tag Manager and Google AnalyticsSimo Ahava
 

Destacado (18)

UA and Google Tag Manager – Why & How!
UA and Google Tag Manager – Why & How!UA and Google Tag Manager – Why & How!
UA and Google Tag Manager – Why & How!
 
Google Tag Manager (Manual in English)
Google Tag Manager (Manual in English)Google Tag Manager (Manual in English)
Google Tag Manager (Manual in English)
 
Google Tag Manager in 28 Minutes
Google Tag Manager in 28 MinutesGoogle Tag Manager in 28 Minutes
Google Tag Manager in 28 Minutes
 
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
 
Using Google Tag Manager to Improve Your Conversion Rate
Using Google Tag Manager to Improve Your Conversion RateUsing Google Tag Manager to Improve Your Conversion Rate
Using Google Tag Manager to Improve Your Conversion Rate
 
Google Analytics (GA) & Google Tag Manager(GTM) 101
Google Analytics (GA) & Google Tag Manager(GTM) 101Google Analytics (GA) & Google Tag Manager(GTM) 101
Google Analytics (GA) & Google Tag Manager(GTM) 101
 
Google Tag Manager Advanced - SEOCampixx 2016
Google Tag Manager Advanced - SEOCampixx 2016Google Tag Manager Advanced - SEOCampixx 2016
Google Tag Manager Advanced - SEOCampixx 2016
 
Google Tag Manager - Revolve Conference 2015
Google Tag Manager - Revolve Conference 2015Google Tag Manager - Revolve Conference 2015
Google Tag Manager - Revolve Conference 2015
 
Universal Analytics and Google Tag Manager - Superweek 2014
Universal Analytics and Google Tag Manager - Superweek 2014Universal Analytics and Google Tag Manager - Superweek 2014
Universal Analytics and Google Tag Manager - Superweek 2014
 
Google Tag Manager - Basic Introduction
Google Tag Manager - Basic IntroductionGoogle Tag Manager - Basic Introduction
Google Tag Manager - Basic Introduction
 
Advanced Form Tracking in Google Tag Manager
Advanced Form Tracking in Google Tag ManagerAdvanced Form Tracking in Google Tag Manager
Advanced Form Tracking in Google Tag Manager
 
Google tag manager-web analytics101
Google tag manager-web analytics101Google tag manager-web analytics101
Google tag manager-web analytics101
 
How Digital Marketer Uses Google Tag Manager To Improve Sales & Leads
How Digital Marketer Uses Google Tag Manager To Improve Sales & LeadsHow Digital Marketer Uses Google Tag Manager To Improve Sales & Leads
How Digital Marketer Uses Google Tag Manager To Improve Sales & Leads
 
Google Tag Manager For Nerds
Google Tag Manager For NerdsGoogle Tag Manager For Nerds
Google Tag Manager For Nerds
 
Google tag manager
Google tag managerGoogle tag manager
Google tag manager
 
Tricks and tweaks for Google Analytics and Google Tag Manager
Tricks and tweaks for Google Analytics and Google Tag ManagerTricks and tweaks for Google Analytics and Google Tag Manager
Tricks and tweaks for Google Analytics and Google Tag Manager
 
Masterclass Analytics Deep Dive met Google Analytics Advanced en Google Tag M...
Masterclass Analytics Deep Dive met Google Analytics Advanced en Google Tag M...Masterclass Analytics Deep Dive met Google Analytics Advanced en Google Tag M...
Masterclass Analytics Deep Dive met Google Analytics Advanced en Google Tag M...
 
Search Marketer's Toolkit for Google Tag Manager and Google Analytics
Search Marketer's Toolkit for Google Tag Manager and Google AnalyticsSearch Marketer's Toolkit for Google Tag Manager and Google Analytics
Search Marketer's Toolkit for Google Tag Manager and Google Analytics
 

Similar a Improving Analytics with Google Tag Manager

Google Tag Manager for actionable metrics - Beyond basic Google Analytics
Google Tag Manager for actionable metrics - Beyond basic Google AnalyticsGoogle Tag Manager for actionable metrics - Beyond basic Google Analytics
Google Tag Manager for actionable metrics - Beyond basic Google AnalyticsDesignHammer
 
Having fun with Google Tag Manager (implement cool things like weather tracki...
Having fun with Google Tag Manager (implement cool things like weather tracki...Having fun with Google Tag Manager (implement cool things like weather tracki...
Having fun with Google Tag Manager (implement cool things like weather tracki...Eventz.Digital
 
Google analytics basic set up - gbg workshop 23 jan 2013
Google analytics basic set up - gbg workshop 23 jan 2013Google analytics basic set up - gbg workshop 23 jan 2013
Google analytics basic set up - gbg workshop 23 jan 2013Dr. Frank J. Peter, Ph.D.
 
Google Tag Manager
Google Tag ManagerGoogle Tag Manager
Google Tag ManagerKim Towne
 
Track Report & Optimize Your Web Creations
Track Report & Optimize Your Web CreationsTrack Report & Optimize Your Web Creations
Track Report & Optimize Your Web CreationsEmpirical Path
 
Google Analytics for SEO Beginners
Google Analytics for SEO BeginnersGoogle Analytics for SEO Beginners
Google Analytics for SEO BeginnersAditya Todawal
 
Crash Course on Google Analytics
Crash Course on Google AnalyticsCrash Course on Google Analytics
Crash Course on Google AnalyticsGrowth Hacking Asia
 
Google Analytics for Developers
Google Analytics for DevelopersGoogle Analytics for Developers
Google Analytics for DevelopersRubén Martínez
 
Advanced Google Analytics
Advanced Google AnalyticsAdvanced Google Analytics
Advanced Google AnalyticsJeff Wisniewski
 
Career Website Analytics - Webinar by J Walter Thompson INSIDE
Career Website Analytics - Webinar by J Walter Thompson INSIDECareer Website Analytics - Webinar by J Walter Thompson INSIDE
Career Website Analytics - Webinar by J Walter Thompson INSIDEJWTINSIDE
 
Google Analytics for Developers
Google Analytics for DevelopersGoogle Analytics for Developers
Google Analytics for DevelopersParadigma Digital
 
Data Driven Website Optimization - Big Footprint Tech4Good Presentation
Data Driven Website Optimization - Big Footprint Tech4Good PresentationData Driven Website Optimization - Big Footprint Tech4Good Presentation
Data Driven Website Optimization - Big Footprint Tech4Good PresentationBigFootprint
 
Google Optimize for testing and personalization
Google Optimize for testing and personalizationGoogle Optimize for testing and personalization
Google Optimize for testing and personalizationOWOX BI
 
How to implement faq schema using tag manager
How to implement faq schema using tag managerHow to implement faq schema using tag manager
How to implement faq schema using tag managersrinivasan J S
 
Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)Keshav Kashyap
 
Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)Keshav Kashyap
 
Google Analytics Report Automation (Magic)
Google Analytics Report Automation (Magic) Google Analytics Report Automation (Magic)
Google Analytics Report Automation (Magic) Keshav Kashyap
 
Google Tag Manager Training
Google Tag Manager TrainingGoogle Tag Manager Training
Google Tag Manager TrainingEmpirical Path
 

Similar a Improving Analytics with Google Tag Manager (20)

Google Tag Manager for actionable metrics - Beyond basic Google Analytics
Google Tag Manager for actionable metrics - Beyond basic Google AnalyticsGoogle Tag Manager for actionable metrics - Beyond basic Google Analytics
Google Tag Manager for actionable metrics - Beyond basic Google Analytics
 
Having fun with Google Tag Manager (implement cool things like weather tracki...
Having fun with Google Tag Manager (implement cool things like weather tracki...Having fun with Google Tag Manager (implement cool things like weather tracki...
Having fun with Google Tag Manager (implement cool things like weather tracki...
 
Google analytics basic set up - gbg workshop 23 jan 2013
Google analytics basic set up - gbg workshop 23 jan 2013Google analytics basic set up - gbg workshop 23 jan 2013
Google analytics basic set up - gbg workshop 23 jan 2013
 
Google Tag Manager
Google Tag ManagerGoogle Tag Manager
Google Tag Manager
 
Track Report & Optimize Your Web Creations
Track Report & Optimize Your Web CreationsTrack Report & Optimize Your Web Creations
Track Report & Optimize Your Web Creations
 
Google Analytics for SEO Beginners
Google Analytics for SEO BeginnersGoogle Analytics for SEO Beginners
Google Analytics for SEO Beginners
 
Crash Course on Google Analytics
Crash Course on Google AnalyticsCrash Course on Google Analytics
Crash Course on Google Analytics
 
Google Analytics for Developers
Google Analytics for DevelopersGoogle Analytics for Developers
Google Analytics for Developers
 
Advanced Google Analytics
Advanced Google AnalyticsAdvanced Google Analytics
Advanced Google Analytics
 
Career Website Analytics - Webinar by J Walter Thompson INSIDE
Career Website Analytics - Webinar by J Walter Thompson INSIDECareer Website Analytics - Webinar by J Walter Thompson INSIDE
Career Website Analytics - Webinar by J Walter Thompson INSIDE
 
Google Analytics for Developers
Google Analytics for DevelopersGoogle Analytics for Developers
Google Analytics for Developers
 
Data Driven Website Optimization - Big Footprint Tech4Good Presentation
Data Driven Website Optimization - Big Footprint Tech4Good PresentationData Driven Website Optimization - Big Footprint Tech4Good Presentation
Data Driven Website Optimization - Big Footprint Tech4Good Presentation
 
Google Optimize for testing and personalization
Google Optimize for testing and personalizationGoogle Optimize for testing and personalization
Google Optimize for testing and personalization
 
Using google analytics to optimize search engine marketing
Using google analytics to optimize search engine marketingUsing google analytics to optimize search engine marketing
Using google analytics to optimize search engine marketing
 
How to implement faq schema using tag manager
How to implement faq schema using tag managerHow to implement faq schema using tag manager
How to implement faq schema using tag manager
 
Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)
 
Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)
 
Google Analytics Report Automation (Magic)
Google Analytics Report Automation (Magic) Google Analytics Report Automation (Magic)
Google Analytics Report Automation (Magic)
 
Google Tag Manager Training
Google Tag Manager TrainingGoogle Tag Manager Training
Google Tag Manager Training
 
Google Tag Manager - Measure Twice, Cut Once
Google Tag Manager - Measure Twice, Cut OnceGoogle Tag Manager - Measure Twice, Cut Once
Google Tag Manager - Measure Twice, Cut Once
 

Más de chaefele

Building a Library Website in WordPress (2019)
Building a Library Website in WordPress (2019)Building a Library Website in WordPress (2019)
Building a Library Website in WordPress (2019)chaefele
 
Writing Accessibly Online
Writing Accessibly OnlineWriting Accessibly Online
Writing Accessibly Onlinechaefele
 
Working with Shortcodes in WordPress
Working with Shortcodes in WordPressWorking with Shortcodes in WordPress
Working with Shortcodes in WordPresschaefele
 
Working With Media in WordPress
Working With Media in WordPressWorking With Media in WordPress
Working With Media in WordPresschaefele
 
Building an Academic Library Website in WordPress
Building an Academic Library Website in WordPressBuilding an Academic Library Website in WordPress
Building an Academic Library Website in WordPresschaefele
 
Remote Website Testing: How to Assess Your Website for Little or No Cost
Remote Website Testing: How to Assess Your Website for Little or No CostRemote Website Testing: How to Assess Your Website for Little or No Cost
Remote Website Testing: How to Assess Your Website for Little or No Costchaefele
 
Rock your library’s content with Wordpress
Rock your library’s content with WordpressRock your library’s content with Wordpress
Rock your library’s content with Wordpresschaefele
 
Moving Forward: Redesigning UNC's Library Website
Moving Forward: Redesigning UNC's Library WebsiteMoving Forward: Redesigning UNC's Library Website
Moving Forward: Redesigning UNC's Library Websitechaefele
 
Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...
Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...
Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...chaefele
 
Goodbye Gutenberg? The real impact of emerging technologies on libraries, pu...
Goodbye Gutenberg?  The real impact of emerging technologies on libraries, pu...Goodbye Gutenberg?  The real impact of emerging technologies on libraries, pu...
Goodbye Gutenberg? The real impact of emerging technologies on libraries, pu...chaefele
 
Building an app-like experience (without the app)
Building an app-like experience (without the app)Building an app-like experience (without the app)
Building an app-like experience (without the app)chaefele
 
Library in your pocket
Library in your pocketLibrary in your pocket
Library in your pocketchaefele
 
Low Effort, High Impact Mobile Web Development
Low Effort, High Impact Mobile Web DevelopmentLow Effort, High Impact Mobile Web Development
Low Effort, High Impact Mobile Web Developmentchaefele
 
Serious Games - ARGs
Serious Games - ARGsSerious Games - ARGs
Serious Games - ARGschaefele
 

Más de chaefele (15)

Building a Library Website in WordPress (2019)
Building a Library Website in WordPress (2019)Building a Library Website in WordPress (2019)
Building a Library Website in WordPress (2019)
 
Writing Accessibly Online
Writing Accessibly OnlineWriting Accessibly Online
Writing Accessibly Online
 
Working with Shortcodes in WordPress
Working with Shortcodes in WordPressWorking with Shortcodes in WordPress
Working with Shortcodes in WordPress
 
Working With Media in WordPress
Working With Media in WordPressWorking With Media in WordPress
Working With Media in WordPress
 
Building an Academic Library Website in WordPress
Building an Academic Library Website in WordPressBuilding an Academic Library Website in WordPress
Building an Academic Library Website in WordPress
 
Remote Website Testing: How to Assess Your Website for Little or No Cost
Remote Website Testing: How to Assess Your Website for Little or No CostRemote Website Testing: How to Assess Your Website for Little or No Cost
Remote Website Testing: How to Assess Your Website for Little or No Cost
 
Rock your library’s content with Wordpress
Rock your library’s content with WordpressRock your library’s content with Wordpress
Rock your library’s content with Wordpress
 
Moving Forward: Redesigning UNC's Library Website
Moving Forward: Redesigning UNC's Library WebsiteMoving Forward: Redesigning UNC's Library Website
Moving Forward: Redesigning UNC's Library Website
 
Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...
Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...
Semi-Automatic Chat: Using a Library of Common Responses to Speed Up Chat Ses...
 
Goodbye Gutenberg? The real impact of emerging technologies on libraries, pu...
Goodbye Gutenberg?  The real impact of emerging technologies on libraries, pu...Goodbye Gutenberg?  The real impact of emerging technologies on libraries, pu...
Goodbye Gutenberg? The real impact of emerging technologies on libraries, pu...
 
Building an app-like experience (without the app)
Building an app-like experience (without the app)Building an app-like experience (without the app)
Building an app-like experience (without the app)
 
Library in your pocket
Library in your pocketLibrary in your pocket
Library in your pocket
 
Low Effort, High Impact Mobile Web Development
Low Effort, High Impact Mobile Web DevelopmentLow Effort, High Impact Mobile Web Development
Low Effort, High Impact Mobile Web Development
 
Serious Games - ARGs
Serious Games - ARGsSerious Games - ARGs
Serious Games - ARGs
 
Args
ArgsArgs
Args
 

Último

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 

Último (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

Improving Analytics with Google Tag Manager

  • 1. TRACK WHAT MATTERS MOST Chad Haefele Head of User Experience and Assessment UNC Chapel Hill Libraries cHaefele@email.unc.edu Improving Analytics with Google Tag Manager
  • 2. What is GTM? • TAG: any bit of code (usually javascript) you need to insert into your site.
  • 3. • Google Analytics basic code: • Google Analytics Event Tracking: <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.inse rtBefore(a,m) })(window,document,'script','https://www.google- analytics.com/analytics.js','ga'); ga('create', 'UA-41010981-7', 'auto'); ga('send', 'pageview');</script> ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);
  • 4. The problem with Google Analytics ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);
  • 5. How does GTM fix this? <!-- Google Tag Manager -- ><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l ='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl ;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM- KS5HJD8');</script><!-- End Google Tag Manager --> <!-- Google Tag Manager (noscript) --><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM- KS5HJD8"height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- End Google Tag Manager (noscript) --> Inside your <head> tag: Inside your <body> tag: The only code you ever need to add to your site:
  • 6. Setting up GTM • tagmanager.google.com Account Name: The name of your library
  • 7. Setting up GTM • tagmanager.google.com Container Name: The URL of your library’s website Where to use Container: Web
  • 8. Setting up GTM • tagmanager.google.com
  • 9. Setting Up A GTM Account • If you’re using WordPress, there are plugins to do this part for you. I like the MetroNet Tag Manager: http://wordpress.org/extend/plugins/metronet-tag-manager/ • If you previously used Google Analytics, make sure to remove that code from your site!
  • 10. Enabling Built-In Variables • On the left menu, click Variables • Click the Configure button • Under the Clicks section, check the boxes for “Click URL” and “Click Text”
  • 11. Terminology •Tag: A little bit of code that runs on a page, like event tracking: •Trigger: A condition which, when true, will add a tag to your page. ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);
  • 12. Deploying Google Analytics with GTM • In Tags, click on New • Give your tag a name like Universal Analytics • Click “Tag Configuration” • Choose Universal Analytics • Enter your Google Analytics Tracking ID • Set the Track Type to “Page View” • Click “Triggering” • Select “All Pages” • Click “Save” • Click “Publish” • Check the Real-Time section of Google Analytics to make sure data is being reported as you browse your site.
  • 13. Implementing Universal Link Tracking • In Triggers, click New • Give your trigger name, like Any Link Clicked • Click on Trigger Configuration • In the “Click” section, pick “Just Links”, then Save • In Tags, click New. • Give it a name like Universal Link Tracking • Click on Tag Configuration, then Universal Analytics • Insert Tracking ID • Set the Track Type to Event • Category: Universal Link Tracking • Action: Link Clicked • Label: Click the + icon and pick the Click URL variable • Click the Triggering section at the bottom of the page. • Select your Any Link Clicked trigger that we made • Click Save • Publish it • Check Real-Time info in GA to see if it’s working
  • 14. Tracking Your E-Resource Usage • In Triggers, click New • Give your trigger a name, like E-Resource Click • Click Trigger Configuration • In the “Click” section, pick “Just Links” • Pick “Some Link Clicks” • Set the boxes to “Click URL”, “contains”, and a unique string that’s part of all your e- resource URLs (for me it’s go.php?c=) • click Save • In Tags, click New • Give it a name like E-Resource Link Tracking • Click on Tag Configuration, then Universal Analytics • Insert Tracking ID • Set the Track Type to Event • Category: E-Resource Link Clicks • Action: Link Clicked • Label: Click the + icon and pick the Click Text variable • Click the Triggering section at the bottom of the page. • Select the E-Resource Click trigger we made • Click Save • Publish it • Check Real-Time info in GA to see if it’s working
  • 15. Tracking Your PDF Downloads • In Triggers, click New • Give your trigger a name, like PDF Click • Click Trigger Configuration • In the “Click” section, pick “Just Links” • Pick “Some Link Clicks” • Set the boxes to “Click URL”, “contains”, .pdf • click Save • In Tags, click New • Give it a name like PDF click Tracking • Click on Tag Configuration, then Universal Analytics • Insert Tracking ID • Set the Track Type to Event • Category: PDF Downloads • Action: Link Clicked • Label: Click the + icon and pick the Click URL variable • Click the Triggering section at the bottom of the page. • Select the PDF Click trigger we made • Click Save • Publish it • Check Real-Time info in GA to see if it’s working
  • 16. Troubleshooting GTM • In the upper-right corner, click the down arrow next to Publish. • Click Preview • Load your webpage in another tab
  • 17. Troubleshooting GTM • As you browse your site, you’ll see (sometimes very briefly) which triggers and tags are fired at the bottom.
  • 18. Troubleshooting GTM • When you’re done troubleshooting, go back to your GTM tag and click Leave Preview Mode
  • 19. Other Resources • ALA’s Library Technology Report on Google Analytics and Google Tag Manager, by Tabatha Farney • https://journals.ala.org/index.php/ltr/issue/view/613 • Google Tag Manager Fundamentals course: • https://analyticsacademy.withgoogle.com/course/5 • Uses an old version of the GTM interface • Lynda.com’s GTM course • https://www.lynda.com/Google-Tag-Manager-tutorials/Google-Tag- Manager-V2-Essential-Training/168238-2.html • Uses an old version of the GTM interface • Google Tag Manager support • https://support.google.com/tagmanager/ • Autotrack.js for an alternate method of setting up tracking: • https://github.com/googleanalytics/autotrack/blob/master/README. md
  • 20. TRACK WHAT MATTERS MOST Chad Haefele Head of User Experience and Assessment UNC Chapel Hill Libraries cHaefele@email.unc.edu Improving Analytics with Google Tag Manager