SlideShare une entreprise Scribd logo
1  sur  31
Télécharger pour lire hors ligne
#SMX #22C3 @lunametrics
The Marketer’s Essential Multi-Tool
Google Tag
Manager
#SMX #22C3 @lunametrics
The Marketer’s Essential Multi-Tool
Google Tag
Manager
#SMX #22C3 @lunametrics
Jonathan Weber
Data Evangelist
Analytics & Insight
weber@lunametrics.com
#SMX #22C3 @lunametrics
A “tag” is a bit of
HTML.
• It could be a pixel in
an <img> tag.
• It could be
Javascript in a
<script> tag.
• It’s usually for
tracking purposes.
#SMX #22C3 @lunametrics
A content management system manages the content of a website.
A tag management system manages the tags of a website.
#SMX #22C3 @lunametrics
• Access control and permissions
• Preview and test before publishing
• Manage updates and past versions
• Re-usable components
Advantages of Tag Management
#SMX #22C3 @lunametrics
APPLICATION #1:
Measurement Tools
#SMX #22C3 @lunametrics
Lots of third-party
tags, too! (Or, copy
and paste any tag.)
#SMX #22C3 @lunametrics
No Javascript? No problem.
GTM has built-in listeners for clicks, form
submissions, AJAX history changes, and more.
You don’t have to see any Javascript directly
to work with them.
#SMX #22C3 @lunametrics
“Triggers” say when a tag
should fire
• Every page
• Some pages
• Clicks on certain elements
(based on ID, CSS Selectors)
• Form submissions
• AJAX history changes
Some GTM Lingo…
“Variables” fill in values for a
tag or trigger
• Page URL or referrer
• Cookie value
• Javascript variable
• Value of an element or
attribute in the page’s HTML
#SMX #22C3 @lunametrics
Lots of common
scenarios:
• Downloads
• Outbound links
• YouTube videos
• Scroll tracking
• Mailto & tel links
LunaMetrics Recipes
GTM lets you export
and import
“containers” full of
tags, triggers, and
variables.
#SMX #22C3 @lunametrics
SEO-Specific Applications?
#SMX #22C3 @lunametrics
#SMX #22C3 @lunametrics
A tag management tool can be
an end-run around an
uncooperative IT department
or poor tools.*
*With great power comes great responsibility. IT departments sometimes have good reasons – pesky things like
“security” and “testing”. Don’t break your website!
#SMX #22C3 @lunametrics
IMPORTANT:
GTM loads Javascript, which we can use to
make changes or additions to the page’s
code. Google crawls these changes
appropriately, but other crawlers might not.
This is a workaround, not a preferred method.
Special thanks to Simo Ahava, who did the initial legwork in testing that Google crawls changes by GTM correctly.
#SMX #22C3 @lunametrics
APPLICATION #2:
Canonical URLs
#SMX #22C3 @lunametrics
<link rel="canonical" href="https://blog.example.com/dresses/green-dresses-are-awesome" />
Canonical URLs
We can use GTM’s variables to construct a canonical URL from
some building blocks:
• HTTP or HTTPS
• Include www or no www in hostname
• Remove query parameters
*With great power comes great responsibility. IT departments sometimes have good reasons – pesky things like
“security” and “testing”. Don’t break your website!
#SMX #22C3 @lunametrics
Canonical URLs: Variables
#SMX #22C3 @lunametrics
Canonical URLs: Tag & Trigger
#SMX #22C3 @lunametrics
Fear not. You don’t have to figure this out from scratch.
We’ve made a recipe for this, too (and all of the other examples in
this presentation). You’ll need to tweak for your needs (www or
no, http or https, query parameters).
Grab a handout with the link or go to
www.lunametrics.com/labs/recipes
Wait, where do I click to…
#SMX #22C3 @lunametrics
You’ll be able to see the <link> tag in the generated source.
In Chrome, open up the Developer Tools and go to the Elements
tab.
Is it working?
#SMX #22C3 @lunametrics
APPLICATION #3:
Structured Data Markup
#SMX #22C3 @lunametrics
• Site name
• Site logo
• Social profile links
• Search box
• etc.
Structured Data Markup
#SMX #22C3 @lunametrics
Structured Data Markup: Tag
You can combine a bunch of blocks into a single tab. Our recipe
has examples.
You can use variables if needed (if you’re re-using these values in
multiple places or other tags).
#SMX #22C3 @lunametrics
• Yes, theoretically.
• But, you need to get the values (headline, author, etc.) that you
want to fill in.
• You can use GTM variables for this if the information is
accessible in the page (HTML <h1> element, for example)
• You’ll need more complex triggers and variables to achieve this,
however.
Structured Data for Articles, Events, etc.?
#SMX #22C3 @lunametrics
APPLICATION #4:
Titles and Descriptions
(for the truly desperate)
#SMX #22C3 @lunametrics
Variables: Lookup Tables
Match values in one list to
another
For example, URL to Title
#SMX #22C3 @lunametrics
There’s a reason I said this is for the truly desperate. You don’t want
to enter those all in by hand, do you?
• Quick spreadsheet generator:
http://www.lunametrics.com/blog/2014/11/20/gtm-lookup-table-
upload/
• Support flexible matches:
http://www.seerinteractive.com/blog/gtm-match-table-
generator/
Entry 1. H as in Harry, T as in Thomas, …
#SMX #22C3 @lunametrics
BONUS:
You can use GTM on AMP pages, too.
#SMX #22C3 @lunametrics
BONUS:
Verify a site in Search Console with GTM.
#SMX #22C3 @lunametrics
LEARN MORE: UPCOMING @SMX EVENTS
THANK YOU!
SEE YOU AT THE NEXT #SMX
Grab a handout or go to
www.lunametrics.com/labs/recipes

Contenu connexe

Plus de Search Marketing Expo - SMX

Plus de Search Marketing Expo - SMX (20)

SMX West 2019 - #SMXInsights
SMX West 2019 - #SMXInsightsSMX West 2019 - #SMXInsights
SMX West 2019 - #SMXInsights
 
SMX SlideShare Announcement
SMX SlideShare AnnouncementSMX SlideShare Announcement
SMX SlideShare Announcement
 
SMX East 2018 - #SMXInsights
SMX East 2018 - #SMXInsightsSMX East 2018 - #SMXInsights
SMX East 2018 - #SMXInsights
 
SMX Advanced 2018 - #SMXInsights
SMX Advanced 2018 - #SMXInsights SMX Advanced 2018 - #SMXInsights
SMX Advanced 2018 - #SMXInsights
 
SMX West 2018 #SMXInsights
SMX West 2018 #SMXInsightsSMX West 2018 #SMXInsights
SMX West 2018 #SMXInsights
 
SMX Speaker Guidelines
SMX Speaker GuidelinesSMX Speaker Guidelines
SMX Speaker Guidelines
 
AMP: Do or Die? 2017 Audience Survey Results
AMP: Do or Die? 2017 Audience Survey ResultsAMP: Do or Die? 2017 Audience Survey Results
AMP: Do or Die? 2017 Audience Survey Results
 
Create for Someone, Not Just Anyone: Adobe's Audience Audit By Maria Corcoran
Create for Someone, Not Just Anyone: Adobe's Audience Audit By Maria CorcoranCreate for Someone, Not Just Anyone: Adobe's Audience Audit By Maria Corcoran
Create for Someone, Not Just Anyone: Adobe's Audience Audit By Maria Corcoran
 
Alexa, How Do I Do SEO For You? By Navneet Virk
Alexa, How Do I Do SEO For You? By Navneet VirkAlexa, How Do I Do SEO For You? By Navneet Virk
Alexa, How Do I Do SEO For You? By Navneet Virk
 
Consumer Lead Change: How to Stay Relevant and Build Success By Duane Forrester
Consumer Lead Change: How to Stay Relevant and Build Success By Duane ForresterConsumer Lead Change: How to Stay Relevant and Build Success By Duane Forrester
Consumer Lead Change: How to Stay Relevant and Build Success By Duane Forrester
 
Create Powerful Custom Automations With AdWords Scripts By Frederick Vallaeys
Create Powerful Custom Automations With AdWords Scripts By Frederick VallaeysCreate Powerful Custom Automations With AdWords Scripts By Frederick Vallaeys
Create Powerful Custom Automations With AdWords Scripts By Frederick Vallaeys
 
Using AdWords Scripts to Create Your Own Ad Tech Landscape By Mitch Larson
Using AdWords Scripts to Create Your Own Ad Tech Landscape By Mitch LarsonUsing AdWords Scripts to Create Your Own Ad Tech Landscape By Mitch Larson
Using AdWords Scripts to Create Your Own Ad Tech Landscape By Mitch Larson
 
Busting Google's Black Box: Navigating Google Algorithms in a Post-Update Wor...
Busting Google's Black Box: Navigating Google Algorithms in a Post-Update Wor...Busting Google's Black Box: Navigating Google Algorithms in a Post-Update Wor...
Busting Google's Black Box: Navigating Google Algorithms in a Post-Update Wor...
 
Solving SEO Issues In Google's Post Update World: How To Track Unconfirmed Al...
Solving SEO Issues In Google's Post Update World: How To Track Unconfirmed Al...Solving SEO Issues In Google's Post Update World: How To Track Unconfirmed Al...
Solving SEO Issues In Google's Post Update World: How To Track Unconfirmed Al...
 
Dating Tips to Maximize the Brand Agency Relationship By Chad Gingrich and Sh...
Dating Tips to Maximize the Brand Agency Relationship By Chad Gingrich and Sh...Dating Tips to Maximize the Brand Agency Relationship By Chad Gingrich and Sh...
Dating Tips to Maximize the Brand Agency Relationship By Chad Gingrich and Sh...
 
SEO Without SERPS By Bryson Meunier
SEO Without SERPS By Bryson MeunierSEO Without SERPS By Bryson Meunier
SEO Without SERPS By Bryson Meunier
 
Optimizing Content for Voice Search and Virtual Assistants By Benu Aggarwal
Optimizing Content for Voice Search and Virtual Assistants By Benu AggarwalOptimizing Content for Voice Search and Virtual Assistants By Benu Aggarwal
Optimizing Content for Voice Search and Virtual Assistants By Benu Aggarwal
 
Your Step By Step Guide to Testing Voice Search By Purna Virji
Your Step By Step Guide to Testing Voice Search By Purna VirjiYour Step By Step Guide to Testing Voice Search By Purna Virji
Your Step By Step Guide to Testing Voice Search By Purna Virji
 
Share of Visit: Focus on the Customer Journey By Drew Breunig
Share of Visit: Focus on the Customer Journey By Drew BreunigShare of Visit: Focus on the Customer Journey By Drew Breunig
Share of Visit: Focus on the Customer Journey By Drew Breunig
 
Measuring and Analyzing Call Conversions By Kelley Schultz
Measuring and Analyzing Call Conversions By Kelley SchultzMeasuring and Analyzing Call Conversions By Kelley Schultz
Measuring and Analyzing Call Conversions By Kelley Schultz
 

Dernier

Brand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdfBrand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdf
tbatkhuu1
 
FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756
dollysharma2066
 
Buy Linkedin Sales Navigator at Cheap Price
Buy Linkedin Sales Navigator at Cheap PriceBuy Linkedin Sales Navigator at Cheap Price
Buy Linkedin Sales Navigator at Cheap Price
DIGISHIFT INDIA +918368319550
 

Dernier (20)

BDSM⚡Call Girls in Sector 144 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 144 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 144 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 144 Noida Escorts >༒8448380779 Escort Service
 
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
 
BDSM⚡Call Girls in Sector 39 Noida Escorts Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 39 Noida Escorts Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 39 Noida Escorts Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 39 Noida Escorts Escorts >༒8448380779 Escort Service
 
25+ years’ experience (310) 882-6330 Love Spells in Wilmington, DE | black ma...
25+ years’ experience (310) 882-6330 Love Spells in Wilmington, DE | black ma...25+ years’ experience (310) 882-6330 Love Spells in Wilmington, DE | black ma...
25+ years’ experience (310) 882-6330 Love Spells in Wilmington, DE | black ma...
 
Best 5 Graphics Designing Course In Chandigarh
Best 5 Graphics Designing Course In ChandigarhBest 5 Graphics Designing Course In Chandigarh
Best 5 Graphics Designing Course In Chandigarh
 
Brand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdfBrand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdf
 
Press Release Distribution Evolving with Digital Trends.pdf
Press Release Distribution Evolving with Digital Trends.pdfPress Release Distribution Evolving with Digital Trends.pdf
Press Release Distribution Evolving with Digital Trends.pdf
 
Elevating Your Digital Presence by Evitha.pdf
Elevating Your Digital Presence by Evitha.pdfElevating Your Digital Presence by Evitha.pdf
Elevating Your Digital Presence by Evitha.pdf
 
Digital-Marketing-Into-by-Zoraiz-Ahmad.pptx
Digital-Marketing-Into-by-Zoraiz-Ahmad.pptxDigital-Marketing-Into-by-Zoraiz-Ahmad.pptx
Digital-Marketing-Into-by-Zoraiz-Ahmad.pptx
 
Unraveling the Mystery of The Circleville Letters.pptx
Unraveling the Mystery of The Circleville Letters.pptxUnraveling the Mystery of The Circleville Letters.pptx
Unraveling the Mystery of The Circleville Letters.pptx
 
FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu.Ka.Tilla Delhi Contact Us 8377877756
 
BDSM⚡Call Girls in Sector 19 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 19 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 19 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 19 Noida Escorts >༒8448380779 Escort Service
 
Busty Desi⚡Call Girls in Sector 49 Noida Escorts >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Sector 49 Noida Escorts >༒8448380779 Escort ServiceBusty Desi⚡Call Girls in Sector 49 Noida Escorts >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Sector 49 Noida Escorts >༒8448380779 Escort Service
 
How consumers use technology and the impacts on their lives
How consumers use technology and the impacts on their livesHow consumers use technology and the impacts on their lives
How consumers use technology and the impacts on their lives
 
2024 Social Trends Report V4 from Later.com
2024 Social Trends Report V4 from Later.com2024 Social Trends Report V4 from Later.com
2024 Social Trends Report V4 from Later.com
 
Buy Linkedin Sales Navigator at Cheap Price
Buy Linkedin Sales Navigator at Cheap PriceBuy Linkedin Sales Navigator at Cheap Price
Buy Linkedin Sales Navigator at Cheap Price
 
Situation Analysis | Management Company.
Situation Analysis | Management Company.Situation Analysis | Management Company.
Situation Analysis | Management Company.
 
Distribution Ad Platform_ The Role of Distribution Ad Network.pdf
Distribution Ad Platform_ The Role of  Distribution Ad Network.pdfDistribution Ad Platform_ The Role of  Distribution Ad Network.pdf
Distribution Ad Platform_ The Role of Distribution Ad Network.pdf
 
Kraft Mac and Cheese campaign presentation
Kraft Mac and Cheese campaign presentationKraft Mac and Cheese campaign presentation
Kraft Mac and Cheese campaign presentation
 
Alpha Media March 2024 Buyers Guide.pptx
Alpha Media March 2024 Buyers Guide.pptxAlpha Media March 2024 Buyers Guide.pptx
Alpha Media March 2024 Buyers Guide.pptx
 

Google Tag Manager: The Marketer's Essential Multi Tool By Jonathon Weber

  • 1. #SMX #22C3 @lunametrics The Marketer’s Essential Multi-Tool Google Tag Manager
  • 2. #SMX #22C3 @lunametrics The Marketer’s Essential Multi-Tool Google Tag Manager
  • 3. #SMX #22C3 @lunametrics Jonathan Weber Data Evangelist Analytics & Insight weber@lunametrics.com
  • 4. #SMX #22C3 @lunametrics A “tag” is a bit of HTML. • It could be a pixel in an <img> tag. • It could be Javascript in a <script> tag. • It’s usually for tracking purposes.
  • 5. #SMX #22C3 @lunametrics A content management system manages the content of a website. A tag management system manages the tags of a website.
  • 6. #SMX #22C3 @lunametrics • Access control and permissions • Preview and test before publishing • Manage updates and past versions • Re-usable components Advantages of Tag Management
  • 7. #SMX #22C3 @lunametrics APPLICATION #1: Measurement Tools
  • 8. #SMX #22C3 @lunametrics Lots of third-party tags, too! (Or, copy and paste any tag.)
  • 9. #SMX #22C3 @lunametrics No Javascript? No problem. GTM has built-in listeners for clicks, form submissions, AJAX history changes, and more. You don’t have to see any Javascript directly to work with them.
  • 10. #SMX #22C3 @lunametrics “Triggers” say when a tag should fire • Every page • Some pages • Clicks on certain elements (based on ID, CSS Selectors) • Form submissions • AJAX history changes Some GTM Lingo… “Variables” fill in values for a tag or trigger • Page URL or referrer • Cookie value • Javascript variable • Value of an element or attribute in the page’s HTML
  • 11. #SMX #22C3 @lunametrics Lots of common scenarios: • Downloads • Outbound links • YouTube videos • Scroll tracking • Mailto & tel links LunaMetrics Recipes GTM lets you export and import “containers” full of tags, triggers, and variables.
  • 14. #SMX #22C3 @lunametrics A tag management tool can be an end-run around an uncooperative IT department or poor tools.* *With great power comes great responsibility. IT departments sometimes have good reasons – pesky things like “security” and “testing”. Don’t break your website!
  • 15. #SMX #22C3 @lunametrics IMPORTANT: GTM loads Javascript, which we can use to make changes or additions to the page’s code. Google crawls these changes appropriately, but other crawlers might not. This is a workaround, not a preferred method. Special thanks to Simo Ahava, who did the initial legwork in testing that Google crawls changes by GTM correctly.
  • 17. #SMX #22C3 @lunametrics <link rel="canonical" href="https://blog.example.com/dresses/green-dresses-are-awesome" /> Canonical URLs We can use GTM’s variables to construct a canonical URL from some building blocks: • HTTP or HTTPS • Include www or no www in hostname • Remove query parameters *With great power comes great responsibility. IT departments sometimes have good reasons – pesky things like “security” and “testing”. Don’t break your website!
  • 19. #SMX #22C3 @lunametrics Canonical URLs: Tag & Trigger
  • 20. #SMX #22C3 @lunametrics Fear not. You don’t have to figure this out from scratch. We’ve made a recipe for this, too (and all of the other examples in this presentation). You’ll need to tweak for your needs (www or no, http or https, query parameters). Grab a handout with the link or go to www.lunametrics.com/labs/recipes Wait, where do I click to…
  • 21. #SMX #22C3 @lunametrics You’ll be able to see the <link> tag in the generated source. In Chrome, open up the Developer Tools and go to the Elements tab. Is it working?
  • 22. #SMX #22C3 @lunametrics APPLICATION #3: Structured Data Markup
  • 23. #SMX #22C3 @lunametrics • Site name • Site logo • Social profile links • Search box • etc. Structured Data Markup
  • 24. #SMX #22C3 @lunametrics Structured Data Markup: Tag You can combine a bunch of blocks into a single tab. Our recipe has examples. You can use variables if needed (if you’re re-using these values in multiple places or other tags).
  • 25. #SMX #22C3 @lunametrics • Yes, theoretically. • But, you need to get the values (headline, author, etc.) that you want to fill in. • You can use GTM variables for this if the information is accessible in the page (HTML <h1> element, for example) • You’ll need more complex triggers and variables to achieve this, however. Structured Data for Articles, Events, etc.?
  • 26. #SMX #22C3 @lunametrics APPLICATION #4: Titles and Descriptions (for the truly desperate)
  • 27. #SMX #22C3 @lunametrics Variables: Lookup Tables Match values in one list to another For example, URL to Title
  • 28. #SMX #22C3 @lunametrics There’s a reason I said this is for the truly desperate. You don’t want to enter those all in by hand, do you? • Quick spreadsheet generator: http://www.lunametrics.com/blog/2014/11/20/gtm-lookup-table- upload/ • Support flexible matches: http://www.seerinteractive.com/blog/gtm-match-table- generator/ Entry 1. H as in Harry, T as in Thomas, …
  • 29. #SMX #22C3 @lunametrics BONUS: You can use GTM on AMP pages, too.
  • 30. #SMX #22C3 @lunametrics BONUS: Verify a site in Search Console with GTM.
  • 31. #SMX #22C3 @lunametrics LEARN MORE: UPCOMING @SMX EVENTS THANK YOU! SEE YOU AT THE NEXT #SMX Grab a handout or go to www.lunametrics.com/labs/recipes