SlideShare a Scribd company logo
Take your tracking to the
next level with the power of
Google Tag Manager
Rahul Agarwal
Munich, 02nd Sept. 2020
› Head of Online Marketing at
Trenkwalder Group
› Digital Strategy & Web Analytics
Consultant at Nunatak Group
› SEO/ Business Development for
CupoNation (part of Rocket
Internet)
Over 7 years of experience in Paid
Social, Web Analytics and Performance
Marketing
Who am I?
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Trenkwalder Group at Glance
applications
candidates
employees
local offices
years of experience
countries
partner
1.000.000
300.000
40.000
200
35
17
1
We are a leading HR service provider in Central & Eastern Europe with €800 Mio. turnover
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Learnings for today…
• GDPR/ Cookie Compliance
• Understanding Facebook Pixel
• Tag Manager tips & tricks to power
the Pixel
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
GDPR vs. Cookies
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Current State of Cookie
implementations in EU
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
GDPR implementation is still in grey zone
TechCrunch
~5,000 Cookie notices
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
GDPR is clear in stating that if an Internet
service is relying on consent as a legal basis to
process visitors’ personal data it must obtain
consent before processing data (so before a
tracking cookie is dropped) — and that consent
must be specific, informed and freely given.
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
“Our results show that a reasonable amount
of users are willing to engage with consent
notices, especially those who want to opt out
or do not want to opt in. Unfortunately,
current implementations do not respect this
and the large majority offers no meaningful
choice.”
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Current Cookie
Consent
Implementations
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
TechCrunch – Cookie Wall
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
TNW – Cookie Wall
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
AllFacebook
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
121Watt
Text page
Facebook pixel
is not running
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Bounteous
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Understanding Facebook Pixel
Code implementation
via. Tag Manager
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Using Tag Manager to
power the Pixel
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Tip 1:
GDPR complaint FB Pixel
Tracking (via. website
cookie consent forms)
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Facebook allows to “revoke” and “grand” pixel access
GDPR Complaint Facebook Pixel Tracking
fbq('consent', 'revoke’);
fbq('consent', 'grant');
// Revoke consent after 'init' is called
fbq(‘Init', '<your pixel ID>’);
fbq('consent', 'revoke’);
fbq('track', 'PageView');
// Once the consent has been granted
fbq('consent', 'grant');
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
“Revoke” stays as the default option
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Create cookie based on the button click
Developers Console
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Create a 1st Party cookie variable in Tag Manager
User defined
variable
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Fill in the cookie name as mentioned in dev. console
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
GTM variable will contain the same value as of the cookie
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
GTM Variable “1stCookie - Facebook Pixel Consent” Value
Match the variable value to “Revoke” & “Grant”
“user_denied_permission" fbq('consent', 'revoke’);
“user_gave_permission" fbq('consent', 'grant');
Facebook Pixel Code
Scenario 1: User doesn’t choose any consent
Scenario 2: User allows the consent
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Modify Pixel base code with lookup table variable
Variable value instead of “revoke” or “grant”
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
One more thing!
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
When accepted, pixel runs only on the next page (refresh)
A classic click tracking (via. Tag Manager) can solve this issue
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Run the “Grant” commant on “Zustimmen” button click
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Tip 2:
Sending events
selectively to different
Pixels
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Sending events selectively to different Pixels
fbq('init', '<PIXEL_A>’);
fbq('init', '<PIXEL_B>’);
fbq('track', 'PageView’); //fire PageView for both initialized pixels
// only fire the Purchase event for Pixel A
fbq('trackSingle', '<PIXEL_A>', 'Purchase’, {
value: 1,
currency : EUR’,
});
// only fire the custom event ”OpenApplication” for Pixel B
fbq('trackSingleCustom', '<PIXEL_B>’, OpenApplication’,{
//optional parameters
});
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Facebook Pixel code
“out of the box”
doesn’t work!
Anymore!
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Tip 3:
Track Internal &
External links in GTM to
create (Re)-targeting
custom audiences
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Create a tag that sends FB click information
Optional
1
2
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Create a trigger that runs on external link clicks
Runs on all pages
Everywhere except your own website
3
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Alternatively, you run it on inbound links as well
Runs on all pages
On your own website pages
3
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Test it in preview in debug mode
Event runs on external link click
Information is sent
to Facebook
4
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Tip 4:
Delaying pixel fire on
your website
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Clicky users are expensive
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Delaying Pixel to improve data quality on Facebook
6 seconds
Fires on all pages
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Delaying Pixel to improve data quality on Facebook
Runs after 6 seconds
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Tip 5:
Running pixel on
YouTube video view on
website
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
A classic ToFU video campaign + Custom Audience
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Enable the built-in video variables in GTM
1
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Create a Tag that sends video play data to FB
2
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Create a trigger that runs on video play percentages
4
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Tip 6:
Installing Pageview
Counter via GTM
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Create a cookie that saves the page view count
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Add Pageview counter to the cookie
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Create a trigger for 5 or more page views
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Check the pageview’s live
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Use Case: Installing Pageview counter via. GTM
› Show visitor a custom popup’s to website visitors with offers, MailChimp signups
after they have visited of instance 5 pages
› Send custom events via this trigger to send engagement data to Facebook & Google
Analytics for better custom audiences
› Use this trigger to personalize the website/ pricing based on the pageviews user
have had
› For instance: If you have a pricing page with price calculator, you can attach the
calculator’s results (price) to that particular visitor. This way you’ll see how visitors
with different price ranges are behaving on your site.)
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Tip 7:
Detecting & sending
user device to
Facebook
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Sending device info to Facebook Pixel
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
User-defined variable
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Create a lookup table variable and assign the right values
Add lookup variable to the pixel
tracking code
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Tip 8:
Use DataLayer to teach
Facebook Pixel
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Use DataLayer.push() to send infomation to Facebook
via. Google Tag Manager
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Create a new Data Layer Variable
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Save Data Layer values into the variables
Tag Manager Debug Mode
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Send dynamic values to Facebook via. variables
ViewContent – Product Page
>
DataLayer Variables
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Creating product sets with multiple rules
Use case
Branch office
Job category
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Bonus Tip:
Advanced Matching of
User Data
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Automatic Advanced Matching
Advanced Matching for Pixels
fbq('init', '{facebook-pixel-id}', {
em: ‘{{_email_}}’, // Values will be hashed
fn: ‘{{_first_name_}}’, // automatically by the pixel
ln: ‘{{_phone_number}}’ // using SHA-256
...
});
Manual Advanced Matching
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Summary
AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
Rahul Agarwal
r.agarwal@trenkwalder.com
M: +49 (0)1515 2626 540
group.trenkwalder.com
www.linkedin.com/rahulagrwl19
Thank you
for your
attention.

More Related Content

PDF
Take your tracking to the next level with the power of Google Tag Manager #AFBMC
PDF
2014 09-10-12 Building Customer Profiles - Move from clicks to faces
PDF
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.ppt
PDF
Matteo Zambon Measurecamp europe 2021 - conversion api con google tag manag...
PPTX
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
PPTX
Google Tag Manager Training
PPTX
Google tag manager
PPTX
Google Tag Manager (GTM)
Take your tracking to the next level with the power of Google Tag Manager #AFBMC
2014 09-10-12 Building Customer Profiles - Move from clicks to faces
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.ppt
Matteo Zambon Measurecamp europe 2021 - conversion api con google tag manag...
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
Google Tag Manager Training
Google tag manager
Google Tag Manager (GTM)

What's hot (20)

PDF
Google Tag Manager - 5 years. What have we learned?
PDF
How to Pass the Google Analytics Individual Qualification Test by Slingshot SEO
PDF
14 GoMeasure (sg and kl) - 12 for 2012 - vinoaj vijeyakumaar - google
PPTX
UA and Google Tag Manager – Why & How!
PPT
Post Panda: Affiliates guide to surviving Google - Daniel Bianchini
PDF
Benefits of Google Tag Manager
PPTX
Google Analytics - Webmaster Tools Pro Setup & Tips
PPTX
What to Expect from the Google Analytics Exam 2014
PDF
How Google Tag Manager changes everything you knew about website analytics
PDF
TechSEO Boost 2021 - SEO Experimentation
PDF
Google algorithm Updates-Latest Google SEO updates
PDF
Track Report & Optimize Your Web Creations
PDF
How to Recover from Google Phantom 2 | Position2
PDF
Google analytics 201 - goals, events, views, basic filters, segments, alerts...
PPTX
SEO News Roundup JAN 2015
PDF
13 GoMeasure (sg) - google analytics certified partner program - timo joste...
PDF
Google Tag Manager Flash Tips @ MeasureCamp
PDF
George Brown's Google Sniper
DOC
Google freshness update
PPTX
Google Analytics Implementation for Agencies and Companies
Google Tag Manager - 5 years. What have we learned?
How to Pass the Google Analytics Individual Qualification Test by Slingshot SEO
14 GoMeasure (sg and kl) - 12 for 2012 - vinoaj vijeyakumaar - google
UA and Google Tag Manager – Why & How!
Post Panda: Affiliates guide to surviving Google - Daniel Bianchini
Benefits of Google Tag Manager
Google Analytics - Webmaster Tools Pro Setup & Tips
What to Expect from the Google Analytics Exam 2014
How Google Tag Manager changes everything you knew about website analytics
TechSEO Boost 2021 - SEO Experimentation
Google algorithm Updates-Latest Google SEO updates
Track Report & Optimize Your Web Creations
How to Recover from Google Phantom 2 | Position2
Google analytics 201 - goals, events, views, basic filters, segments, alerts...
SEO News Roundup JAN 2015
13 GoMeasure (sg) - google analytics certified partner program - timo joste...
Google Tag Manager Flash Tips @ MeasureCamp
George Brown's Google Sniper
Google freshness update
Google Analytics Implementation for Agencies and Companies
Ad

Similar to Take your tracking to the next level with the power of Google Tag Manager #AFBMC (20)

PDF
How to use Facebook Pixel?
PPTX
Using Google Tag Manager for Advanced 'Behavioral Based' Remarketing on Facebook
PDF
Ultimate guide-facebook-advertizement
PDF
Facebook Ads E-Book Guide
PPTX
Facebook Ads: Is Your Website Ready to Convert Cold Traffic?
PPTX
Tricks My Facebook Support Guy Forgot to Tell
PDF
Advanced Facebook Ads
PPTX
Facebook Marketing
PDF
Facebook for Business
PPTX
Facebook Advertising: It Just Keeps Getting Better
PPTX
Facebook Timeline for Brand Pages: Review & Implications
PPTX
Wolfgang Essentials 2015
PPTX
CXL Facebook Ads Course.pptx
PDF
Facebook Advertising: Who Says it's Wrong to Buy Friends?
PDF
Engage 2013 - Implementing Facebook Measurement
PDF
“Pown” the Newsfeed: Advanced Marketing on the Facebook Platform
PDF
Facebook Conversion Tracking: A Step-by-Step How to Guide
PPTX
Facebook marketing (Old and New Media)
PDF
Get the most out of your tracking concept by Ekaterina Petrakova
PDF
Facebook em Portugal 2014
How to use Facebook Pixel?
Using Google Tag Manager for Advanced 'Behavioral Based' Remarketing on Facebook
Ultimate guide-facebook-advertizement
Facebook Ads E-Book Guide
Facebook Ads: Is Your Website Ready to Convert Cold Traffic?
Tricks My Facebook Support Guy Forgot to Tell
Advanced Facebook Ads
Facebook Marketing
Facebook for Business
Facebook Advertising: It Just Keeps Getting Better
Facebook Timeline for Brand Pages: Review & Implications
Wolfgang Essentials 2015
CXL Facebook Ads Course.pptx
Facebook Advertising: Who Says it's Wrong to Buy Friends?
Engage 2013 - Implementing Facebook Measurement
“Pown” the Newsfeed: Advanced Marketing on the Facebook Platform
Facebook Conversion Tracking: A Step-by-Step How to Guide
Facebook marketing (Old and New Media)
Get the most out of your tracking concept by Ekaterina Petrakova
Facebook em Portugal 2014
Ad

More from AllFacebook.de (20)

PDF
„New Work“ im Tagesschau Social-Media Team. Learnings aus 6 Monaten Arbeiten ...
PDF
Grow Up. Finally.
PDF
So nutzt du die ganze Power des Algorithmus: Katalog-Setup für Fortgeschritte...
PDF
12 Hacks für deine Instagram Ads - mit diesen Tipps steigerst du deine Perfor...
PDF
Instagram 2020 #AFBMC
PDF
TikTok for Humanity: Das Rote Kreuz für Generation Z #AFBMC
PDF
Von der Krise in die Krise aus der Krise - Social Media & Krisenkommunikation...
PDF
Wie du die Landingpages auf die Facebook Zielgruppen abstimmst #AFBMC
PDF
Wer braucht schon den (client-side) FB Pixel? Warum du auf Facebooks serverse...
PDF
Experimente mit dem Algorithmus - so kriegt man Reichweite auf LinkedIn #AFBMC
PDF
Geheimzutat Social Media: Das Erfolgsrezept von Sternekoch Alexander Kunz #AFBMC
PDF
Love Social - Social love. Eine Liebeserklärung an Social Media, die Diversit...
PDF
Onlinemarketing on the Edge - 100.000 Euro Bußgeld für ein Cookie? #AFBMC
PDF
15+ Möglichkeiten mit Deiner Facebook-Gruppe Geld zu verdienen #AFBMC
PDF
Shop, Shoppen, Instagram Shopping: Was ist State of The Art und was kommt noc...
PDF
Social Media, Boomer? Es wird ernst! #AFBMC
PDF
„Alexa, wo kann ich heute kontaktlos mit Freunden shoppen?“ - Wie Voice das M...
PDF
So synchronisierst du automatisiert Google Analytics Segmente zu Facebook Aud...
PDF
WhatsApp 2020!? Das Messenger Marketing Update - was ihr 2020/21 umsetzen kön...
PDF
Das Influencer-O-Meter: Wie gut ist ein Influencer und warum? #AFBMC
„New Work“ im Tagesschau Social-Media Team. Learnings aus 6 Monaten Arbeiten ...
Grow Up. Finally.
So nutzt du die ganze Power des Algorithmus: Katalog-Setup für Fortgeschritte...
12 Hacks für deine Instagram Ads - mit diesen Tipps steigerst du deine Perfor...
Instagram 2020 #AFBMC
TikTok for Humanity: Das Rote Kreuz für Generation Z #AFBMC
Von der Krise in die Krise aus der Krise - Social Media & Krisenkommunikation...
Wie du die Landingpages auf die Facebook Zielgruppen abstimmst #AFBMC
Wer braucht schon den (client-side) FB Pixel? Warum du auf Facebooks serverse...
Experimente mit dem Algorithmus - so kriegt man Reichweite auf LinkedIn #AFBMC
Geheimzutat Social Media: Das Erfolgsrezept von Sternekoch Alexander Kunz #AFBMC
Love Social - Social love. Eine Liebeserklärung an Social Media, die Diversit...
Onlinemarketing on the Edge - 100.000 Euro Bußgeld für ein Cookie? #AFBMC
15+ Möglichkeiten mit Deiner Facebook-Gruppe Geld zu verdienen #AFBMC
Shop, Shoppen, Instagram Shopping: Was ist State of The Art und was kommt noc...
Social Media, Boomer? Es wird ernst! #AFBMC
„Alexa, wo kann ich heute kontaktlos mit Freunden shoppen?“ - Wie Voice das M...
So synchronisierst du automatisiert Google Analytics Segmente zu Facebook Aud...
WhatsApp 2020!? Das Messenger Marketing Update - was ihr 2020/21 umsetzen kön...
Das Influencer-O-Meter: Wie gut ist ein Influencer und warum? #AFBMC

Recently uploaded (20)

DOCX
Buy Goethe A1 ,B2 ,C1 certificate online without writing
PDF
Regulation Study, Differences and Implementation of Bank Indonesia National C...
PPTX
Philippine-Pop-Culture.pptx.hhtps.com.ph
PDF
What is TikTok Cyberbullying_ 15 Smart Ways to Prevent It.pdf
PDF
Why Digital Marketing Matters in Today’s World Ask ChatGPT
PDF
Climate Risk and Credit Allocation: How Banks Are Integrating Environmental R...
PDF
Your Breakthrough Starts Here Make Me Popular
PDF
Effectiveness of Good Corporate Governance and Corporate Social Responsibilit...
PDF
Why Blend In When You Can Trend? Make Me Trend
PDF
Customer Churn Prediction in Digital Banking: A Comparative Study of Xai Tech...
PPTX
How to Make Sure Your Video is Optimized for SEO
PDF
Faculty of E languageTruongMinhThien.pdf
PPTX
Smart Card Face Mask detection soluiondr
DOCX
Get More Leads From LinkedIn Ads Today .docx
PDF
Does Ownership Structure Play an Important Role in the Banking Industry?
PDF
TikTok Live shadow viewers_ Who watches without being counted
PPTX
Social Media Optimization Services to Grow Your Brand Online
DOC
SAS毕业证学历认证,伦敦大学毕业证仿制文凭证书
PPTX
Lesson 3: person and his/her relationship with the others NSTP 1
DOC
ASU毕业证学历认证,圣三一拉邦音乐与舞蹈学院毕业证留学本科毕业证
Buy Goethe A1 ,B2 ,C1 certificate online without writing
Regulation Study, Differences and Implementation of Bank Indonesia National C...
Philippine-Pop-Culture.pptx.hhtps.com.ph
What is TikTok Cyberbullying_ 15 Smart Ways to Prevent It.pdf
Why Digital Marketing Matters in Today’s World Ask ChatGPT
Climate Risk and Credit Allocation: How Banks Are Integrating Environmental R...
Your Breakthrough Starts Here Make Me Popular
Effectiveness of Good Corporate Governance and Corporate Social Responsibilit...
Why Blend In When You Can Trend? Make Me Trend
Customer Churn Prediction in Digital Banking: A Comparative Study of Xai Tech...
How to Make Sure Your Video is Optimized for SEO
Faculty of E languageTruongMinhThien.pdf
Smart Card Face Mask detection soluiondr
Get More Leads From LinkedIn Ads Today .docx
Does Ownership Structure Play an Important Role in the Banking Industry?
TikTok Live shadow viewers_ Who watches without being counted
Social Media Optimization Services to Grow Your Brand Online
SAS毕业证学历认证,伦敦大学毕业证仿制文凭证书
Lesson 3: person and his/her relationship with the others NSTP 1
ASU毕业证学历认证,圣三一拉邦音乐与舞蹈学院毕业证留学本科毕业证

Take your tracking to the next level with the power of Google Tag Manager #AFBMC

  • 1. Take your tracking to the next level with the power of Google Tag Manager Rahul Agarwal Munich, 02nd Sept. 2020
  • 2. › Head of Online Marketing at Trenkwalder Group › Digital Strategy & Web Analytics Consultant at Nunatak Group › SEO/ Business Development for CupoNation (part of Rocket Internet) Over 7 years of experience in Paid Social, Web Analytics and Performance Marketing Who am I?
  • 3. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Trenkwalder Group at Glance applications candidates employees local offices years of experience countries partner 1.000.000 300.000 40.000 200 35 17 1 We are a leading HR service provider in Central & Eastern Europe with €800 Mio. turnover
  • 4. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Learnings for today… • GDPR/ Cookie Compliance • Understanding Facebook Pixel • Tag Manager tips & tricks to power the Pixel
  • 5. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal GDPR vs. Cookies
  • 6. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Current State of Cookie implementations in EU
  • 7. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal GDPR implementation is still in grey zone TechCrunch ~5,000 Cookie notices
  • 8. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal GDPR is clear in stating that if an Internet service is relying on consent as a legal basis to process visitors’ personal data it must obtain consent before processing data (so before a tracking cookie is dropped) — and that consent must be specific, informed and freely given.
  • 9. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal “Our results show that a reasonable amount of users are willing to engage with consent notices, especially those who want to opt out or do not want to opt in. Unfortunately, current implementations do not respect this and the large majority offers no meaningful choice.”
  • 10. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Current Cookie Consent Implementations
  • 11. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal TechCrunch – Cookie Wall
  • 12. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal TNW – Cookie Wall
  • 13. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal AllFacebook
  • 14. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal 121Watt Text page Facebook pixel is not running
  • 15. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Bounteous
  • 16. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Understanding Facebook Pixel Code implementation via. Tag Manager
  • 17. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
  • 18. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
  • 19. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Using Tag Manager to power the Pixel
  • 20. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Tip 1: GDPR complaint FB Pixel Tracking (via. website cookie consent forms)
  • 21. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Facebook allows to “revoke” and “grand” pixel access GDPR Complaint Facebook Pixel Tracking fbq('consent', 'revoke’); fbq('consent', 'grant'); // Revoke consent after 'init' is called fbq(‘Init', '<your pixel ID>’); fbq('consent', 'revoke’); fbq('track', 'PageView'); // Once the consent has been granted fbq('consent', 'grant');
  • 22. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal “Revoke” stays as the default option
  • 23. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Create cookie based on the button click Developers Console
  • 24. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Create a 1st Party cookie variable in Tag Manager User defined variable
  • 25. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Fill in the cookie name as mentioned in dev. console
  • 26. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal GTM variable will contain the same value as of the cookie
  • 27. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal GTM Variable “1stCookie - Facebook Pixel Consent” Value Match the variable value to “Revoke” & “Grant” “user_denied_permission" fbq('consent', 'revoke’); “user_gave_permission" fbq('consent', 'grant'); Facebook Pixel Code Scenario 1: User doesn’t choose any consent Scenario 2: User allows the consent
  • 28. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Modify Pixel base code with lookup table variable Variable value instead of “revoke” or “grant”
  • 29. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal One more thing!
  • 30. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal When accepted, pixel runs only on the next page (refresh) A classic click tracking (via. Tag Manager) can solve this issue
  • 31. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Run the “Grant” commant on “Zustimmen” button click
  • 32. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Tip 2: Sending events selectively to different Pixels
  • 33. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Sending events selectively to different Pixels fbq('init', '<PIXEL_A>’); fbq('init', '<PIXEL_B>’); fbq('track', 'PageView’); //fire PageView for both initialized pixels // only fire the Purchase event for Pixel A fbq('trackSingle', '<PIXEL_A>', 'Purchase’, { value: 1, currency : EUR’, }); // only fire the custom event ”OpenApplication” for Pixel B fbq('trackSingleCustom', '<PIXEL_B>’, OpenApplication’,{ //optional parameters });
  • 34. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Facebook Pixel code “out of the box” doesn’t work! Anymore!
  • 35. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Tip 3: Track Internal & External links in GTM to create (Re)-targeting custom audiences
  • 36. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Create a tag that sends FB click information Optional 1 2
  • 37. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Create a trigger that runs on external link clicks Runs on all pages Everywhere except your own website 3
  • 38. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Alternatively, you run it on inbound links as well Runs on all pages On your own website pages 3
  • 39. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Test it in preview in debug mode Event runs on external link click Information is sent to Facebook 4
  • 40. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Tip 4: Delaying pixel fire on your website
  • 41. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Clicky users are expensive
  • 42. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Delaying Pixel to improve data quality on Facebook 6 seconds Fires on all pages
  • 43. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Delaying Pixel to improve data quality on Facebook Runs after 6 seconds
  • 44. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Tip 5: Running pixel on YouTube video view on website
  • 45. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal A classic ToFU video campaign + Custom Audience
  • 46. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Enable the built-in video variables in GTM 1
  • 47. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Create a Tag that sends video play data to FB 2
  • 48. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Create a trigger that runs on video play percentages 4
  • 49. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
  • 50. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Tip 6: Installing Pageview Counter via GTM
  • 51. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Create a cookie that saves the page view count
  • 52. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Add Pageview counter to the cookie
  • 53. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Create a trigger for 5 or more page views
  • 54. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Check the pageview’s live
  • 55. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Use Case: Installing Pageview counter via. GTM › Show visitor a custom popup’s to website visitors with offers, MailChimp signups after they have visited of instance 5 pages › Send custom events via this trigger to send engagement data to Facebook & Google Analytics for better custom audiences › Use this trigger to personalize the website/ pricing based on the pageviews user have had › For instance: If you have a pricing page with price calculator, you can attach the calculator’s results (price) to that particular visitor. This way you’ll see how visitors with different price ranges are behaving on your site.)
  • 56. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Tip 7: Detecting & sending user device to Facebook
  • 57. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Sending device info to Facebook Pixel
  • 58. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal User-defined variable
  • 59. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Create a lookup table variable and assign the right values Add lookup variable to the pixel tracking code
  • 60. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Tip 8: Use DataLayer to teach Facebook Pixel
  • 61. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal
  • 62. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Use DataLayer.push() to send infomation to Facebook via. Google Tag Manager
  • 63. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Create a new Data Layer Variable
  • 64. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Save Data Layer values into the variables Tag Manager Debug Mode
  • 65. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Send dynamic values to Facebook via. variables ViewContent – Product Page > DataLayer Variables
  • 66. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Creating product sets with multiple rules Use case Branch office Job category
  • 67. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Bonus Tip: Advanced Matching of User Data
  • 68. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Automatic Advanced Matching Advanced Matching for Pixels fbq('init', '{facebook-pixel-id}', { em: ‘{{_email_}}’, // Values will be hashed fn: ‘{{_first_name_}}’, // automatically by the pixel ln: ‘{{_phone_number}}’ // using SHA-256 ... }); Manual Advanced Matching
  • 69. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Summary
  • 70. AllFacebook Advance · Power FB Pixel with Google Tag Manager · Rahul Agarwal Rahul Agarwal r.agarwal@trenkwalder.com M: +49 (0)1515 2626 540 group.trenkwalder.com www.linkedin.com/rahulagrwl19 Thank you for your attention.