GTM presentation
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • Shuki, thanks for the info provided. Please do put in a bit more time in structuring and setting whatever that is you wanna present, in a more graphically presentable manner. Cheers
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
302
On Slideshare
302
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
9
Comments
1
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. THE NEW Shuki Mann shuki@booot.co.il www.booot.co.il GTM IS
  • 2. shuki@booot.co.il www.booot.co.il ME • 28, Married + 2 • Road bike rider • B.s.w • M.B.A • Google Partner & Google Analytics Qualified • Google Adwords • Google Analytics • Google Tag Manager • Google Facebook ;) • etc.
  • 3. shuki@booot.co.il www.booot.co.il ACCOUNT STRUCTURE google login account container A - client A container B - client B container C - client C Tags, Macros, Rules… Tags, Macros, Rules… Tags, Macros, Rules… google login account B - client B container A - site container B - lps Tags, Macros, Rules… Tags, Macros, Rules… account A - client A container C - shop Tags, Macros, Rules… container A - site container B - lps Tags, Macros, Rules… Tags, Macros, Rules… container C - shop Tags, Macros, Rules…
  • 4. shuki@booot.co.il www.booot.co.il • Google Analytics (Universal/Classic) Google Adwords Conversion Custom HTML Third party platforms …Event listeners!!! Tags are the “WHAT to do” TAGS
  • 5. shuki@booot.co.il www.booot.co.il TAGS EXAMPLES
  • 6. shuki@booot.co.il www.booot.co.il TAGS EXAMPLES Custom Dimensions & Custom Metrics - The Full Guide
  • 7. shuki@booot.co.il www.booot.co.il TAGS EXAMPLES • Adwords Remarketing with custom params from dL Adwords Conversion with dynamic value (macro)
  • 8. shuki@booot.co.il www.booot.co.il TAGS - Auto Event Listeners • Link Click - <a href> -> gtm.linkClick event Click - onclick -> gtm.click event Form Submit - submit -> gtm.formSubmit Timer - gtm.timer JS - gtm.pageError History - AJAX Case sensitive! Competing listeners: <html> <head> <title>My Page</title> </head> <body> <!-- Google Tag Manager Container here --> <div id="main"> <a id=“A” href=“http://www.A.co.il”>A</a> <a id=“B” href=“http://www.B.co.il”>B</a> </div> </body> </html>
  • 9. shuki@booot.co.il www.booot.co.il RULES • [macro][operator][value] contains, equals, matches RegEx 2 condition, same rule = AND 2 different rules = OR GTM goes to dataLayer to find the value of objects ONLY when they’re events. Blocking Rule always win 1st: gtm.js 2nd: gtm.dom 3rd: gtm.load Rules are the “WHEN to do”
  • 10. shuki@booot.co.il www.booot.co.il MACROS • = Functions Must return a value with “return” You can even use the macro inside your HTML tag! Exactly like regular function. Every Macro return value. JS Macro must include “return” Auto event - the DOM element that triggered the event.
  • 11. shuki@booot.co.il www.booot.co.il MACRO EXAMPLES • Constant String - very useful for GA/Adwords code
  • 12. shuki@booot.co.il www.booot.co.il MACRO EXAMPLES • Constant String - very useful for GA/Adwords code HTML tag with macro Auto-Event vars
  • 13. shuki@booot.co.il www.booot.co.il MACRO EXAMPLES • Constant String - very useful for GA/Adwords code HTML tag with macro Auto-Event vars Lookup Table!!
  • 14. shuki@booot.co.il www.booot.co.il MACRO EXAMPLES • Constant String - very useful for GA/Adwords code HTML tag with macro Auto-Event vars Lookup Table!! dataLayer!!!!!
  • 15. shuki@booot.co.il www.booot.co.il JSON array key-value pair GTM’s raison d'être Before GTM snippet - dataLayer = [{‘key’:’value’}] After GTM snippet - dataLayer.push({‘key’:’value’}) Layer with L <a href=“www.paypal.com” onclick=“dataLayer.push({‘price’:’100’});”>100 ILS</a> <a href=“www.paypal.com” onclick=“dataLayer.push({‘price’:’130’});”>130 ILS</a> <a href=“www.other-site.com” onclick=“dataLayer.push({‘event’:’outbound’});”>Exit this site</a> dataLayer
  • 16. shuki@booot.co.il www.booot.co.il Tags: Category - Type - what it does (meaningful) ex: GA - Event - click on menu item ex: Adwords - Conversion - 10x pages Macro: Type - what is does ex: Lookup Table - change A macros by B Rules - Where/When it happens ex: All pages, event equals NAMING
  • 17. shuki@booot.co.il www.booot.co.il REAL EXAMPLE - 1
  • 18. shuki@booot.co.il www.booot.co.il REAL EXAMPLE - 1
  • 19. shuki@booot.co.il www.booot.co.il REAL EXAMPLE - 2
  • 20. shuki@booot.co.il www.booot.co.il REAL EXAMPLE - 3
  • 21. shuki@booot.co.il www.booot.co.il REAL EXAMPLE - 3
  • 22. shuki@booot.co.il www.booot.co.il
  • 23. REAL EXAMPLE - eCommerce Tracking
  • 24. REAL EXAMPLE - eCommerce Tracking
  • 25. shuki@booot.co.il www.booot.co.il dataLayer = [{ 'gtm.blacklist': ['<html>', '<nonGoogleScripts >', ...] 'gtm.whitelist': ['<ID>', '<class>', '<ID>', ...] }]; Black wins! Classes have relationships (nonGooglePixels > nonGoogleScripts) SECURITY
  • 26. shuki@booot.co.il www.booot.co.il THE END THANK YOU :) contact me at: shuki@booot.co.il read my posts: www.booot.co.il be my friend: www.facebook.com/mann.shuki