SlideShare uma empresa 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

Mais conteúdo relacionado

Destaque

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
 

Destaque (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
 

Semelhante 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
 

Semelhante 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
 

Mais 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
 

Mais 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

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 

Último (20)

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 

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