SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Downloaden Sie, um offline zu lesen
GA4 / GTAG
Data Capture Script Alternatives
Markus Baersch
Why Not GTAG.JS?
gtag.js
some issues
Source: in client-side setup likely to
be blocked by modern browsers
Heavy: does is all: GA, Ads, Optimize,
Badges and whatever
Complexity: Much stuff you might
not want
Control: let me define what is
“engaged”!
Consent: Consent Mode is a joke!
What to use (when running your own
endpoint for more than just GA4)?
gtag.js
… is odd!
Session Handling & More:
● control over “first_visit” and
“session_start”
● browser knows what is a
conversion, a referral exclusion…
● no way to hide your
measurement id
● much “serverside-stuff” has to be
handled by the browser
gtag.js
GTM light?
● Google Tag: “centrally manage
settings without additional code”
● modelled conversions
everywhere
googlemarketinglive.com/americas/
● just “sending hits” is not enough
(for GA4)
● GA4 Measurement Protocol is
not a full replacement
● additional tasks: knowing goals,
send created events, track time…
● event batching
● ssGTM “sendPixelFromBrowser”
● mocking Consent Mode
● sending enough data to feed
GA4 without consent: possible?
gtag.js
why replacing it is hard
⛪
🙏?
(Potential) Alternatives
GA4 Destination: might be one of the
few official partners (soon?)
Everything in place: does have own
session start markers. Utag.data seems
a good fit
Anyone tried this already (without
bundling gtag in the browser)?
Tealium
iQ Standard fits?
Or EventStream?
Seems to have all data: there are
timestamps, timings, hit numbers…
Tagging: relies either on HTML
attributes or events sent via JS
Anyone tried this one maybe? ;)
https://github.com/elbwalker/walker.js
elbwalker
open source event tracker
You would have to steal it: not open
source
GA4 connection “unofficial”: might
break in the future
Not very lightweight: >40kB
first hand experiences here?
https://www.jentis.com/
The JENTIS
approach
alternative capturing indeed
DIY
individual tracking script
● minimal footprint, no
dependencies
● fallback for sendbeacon()
● collect minimal dimensions
● re-use existing dataLayer
● use fingerprint or cookie
● enhanced tracking if consent:
○ session handling
○ returning visitors
○ more dimensions
● use (obfuscated) POST
● quite hard (if only client-side)
Example
Loggy -> Snoop Logg / Luke Logbridge -> log2self
History
started as a simple replacement for analytics.js
5+ years ago
works from the browser only, but needs an
endpoint that knows the format
Used to forward events to GA, Piwik PRO,
Matomo and a few others
Worked without a “client-side session” well
before implementing GA4
one of the older ones:
https://gist.github.com/mbaersch/34af06d1336f8
78ea10f3f7b0e49d45c
evolving code grows ;)
send consent as payload
add an event id to avoid
deduplication problems in
“other systems” ;)
client-side timestamps are fine,
but use your own endpoint to
create new ones
code suddenly needs some
“initialisation”
More Dimensions
collect additional info with
consent only
(and throw out some stuff in
your endpoint as well)
remember: resolution,
(language), color depth & co
are all attributes that you
actively “read” from the
visitor´s device
Be Nice!
Session Handling
GA4 wants session handling
only active if consent is present
uses localStorage / sessionStorage -
which is only possible on a single
domain AND host
Sending Stuff
Try beacons, then AJAX, then
an image pixel as last fallback
…and make sure that your
endpoint looks for get
parameters.
and yes: use guard clauses
instead of all that else stuff if
you like ;)
Endpoint
FP endpoint for flexible data
handling
optionally use separate session,
timestamps, identifier
1:n tracking
debugging with headers
GA4: refer to
https://www.thyngster.com/ga4-
measurement-protocol-
cheatsheet/ for a parameter
reference
(would have saved a lot of time for me)
Endpoint (2)
Use ssGTM and translate own format to GTM events
or build your own in Node, PHP or whatever
Remember: CNAME is not an option
cloud edge endpoints are a promising alternative
Final Tipps
send base64 coded payload
… or even build your own
coding (or just do rot13 :))
Keeping your own format
makes you (somewhat)
independent
remember: a tracking server
has to handle a lot of stuff. Do
not use your website server
(unless you have low traffic
like me ;))
Done!
Questions?
or feedback?
what was great, what not so
much? Let me know!
E-Book
main focus on ssGTM
markus-baersch.de/gtmbook

Weitere ähnliche Inhalte

Was ist angesagt?

First Party Conversion Tracking [SEAcamp]
First Party Conversion Tracking [SEAcamp]First Party Conversion Tracking [SEAcamp]
First Party Conversion Tracking [SEAcamp]📊 Markus Baersch
 
Ist Google Analytics noch zu retten?
Ist Google Analytics noch zu retten?Ist Google Analytics noch zu retten?
Ist Google Analytics noch zu retten?📊 Markus Baersch
 
Measurefest - GA4 From Migration to Measurement - The Key To Success.pptx
Measurefest - GA4 From Migration to Measurement - The Key To Success.pptxMeasurefest - GA4 From Migration to Measurement - The Key To Success.pptx
Measurefest - GA4 From Migration to Measurement - The Key To Success.pptxSam Thomas
 
Google analytics version 4 in details
Google analytics version 4 in detailsGoogle analytics version 4 in details
Google analytics version 4 in detailsOmkar Nandi
 
Server-Side Google Tag Manager: Was, wie und warum
Server-Side Google Tag Manager: Was, wie und warumServer-Side Google Tag Manager: Was, wie und warum
Server-Side Google Tag Manager: Was, wie und warum📊 Markus Baersch
 
Google Analytics 4: La transición sobre Universal Analytics
Google Analytics 4: La transición sobre Universal AnalyticsGoogle Analytics 4: La transición sobre Universal Analytics
Google Analytics 4: La transición sobre Universal AnalyticsArnau Vendrell
 
Advanced Google Analytics 4.0 by Aviso Digital
Advanced Google Analytics 4.0 by Aviso DigitalAdvanced Google Analytics 4.0 by Aviso Digital
Advanced Google Analytics 4.0 by Aviso DigitalSumeet Mayor
 
Google Analytics: The Basics
Google Analytics: The BasicsGoogle Analytics: The Basics
Google Analytics: The BasicsDom Cushnan
 
MeasureCamp_Custom GA4 Channel Groups with dbt
MeasureCamp_Custom GA4 Channel Groups with dbtMeasureCamp_Custom GA4 Channel Groups with dbt
MeasureCamp_Custom GA4 Channel Groups with dbtChristopher Gutknecht
 
Server-side Tagging in Google Tag Manager - MeasureSummit 2020
Server-side Tagging in Google Tag Manager - MeasureSummit 2020Server-side Tagging in Google Tag Manager - MeasureSummit 2020
Server-side Tagging in Google Tag Manager - MeasureSummit 2020Simo Ahava
 
Preparing for GA4 - The Future of Google Analytics
Preparing for GA4 - The Future of Google AnalyticsPreparing for GA4 - The Future of Google Analytics
Preparing for GA4 - The Future of Google AnalyticsJason Dodge
 
Columbus WAW 2022 - How GA4 can Help You Navigate a Cookie-Restricted World.pdf
Columbus WAW 2022 - How GA4 can Help You Navigate a Cookie-Restricted World.pdfColumbus WAW 2022 - How GA4 can Help You Navigate a Cookie-Restricted World.pdf
Columbus WAW 2022 - How GA4 can Help You Navigate a Cookie-Restricted World.pdfTim Wilson
 
Google analytics 4 - présentation détaillée
Google analytics 4 - présentation détailléeGoogle analytics 4 - présentation détaillée
Google analytics 4 - présentation détailléeBruno Guyot
 
How to Know Exactly Where to Optimize with GA4.pptx
How to Know Exactly Where to Optimize with GA4.pptxHow to Know Exactly Where to Optimize with GA4.pptx
How to Know Exactly Where to Optimize with GA4.pptxMeasurementMarketing.io
 
LearnInbound_AnnaCorbett_GTM Events for GA4.pdf
LearnInbound_AnnaCorbett_GTM Events for GA4.pdfLearnInbound_AnnaCorbett_GTM Events for GA4.pdf
LearnInbound_AnnaCorbett_GTM Events for GA4.pdfAnnaCorbett4
 
Introduction to Google Analytics
Introduction to Google AnalyticsIntroduction to Google Analytics
Introduction to Google AnalyticsMeraj Faheem
 
Google Analytics for Dummies
Google Analytics for DummiesGoogle Analytics for Dummies
Google Analytics for DummiesTim Lelek
 

Was ist angesagt? (20)

First Party Conversion Tracking [SEAcamp]
First Party Conversion Tracking [SEAcamp]First Party Conversion Tracking [SEAcamp]
First Party Conversion Tracking [SEAcamp]
 
Google Analytics 4: A Quick Start Guide
 Google Analytics 4: A Quick Start Guide Google Analytics 4: A Quick Start Guide
Google Analytics 4: A Quick Start Guide
 
Ist Google Analytics noch zu retten?
Ist Google Analytics noch zu retten?Ist Google Analytics noch zu retten?
Ist Google Analytics noch zu retten?
 
Measurefest - GA4 From Migration to Measurement - The Key To Success.pptx
Measurefest - GA4 From Migration to Measurement - The Key To Success.pptxMeasurefest - GA4 From Migration to Measurement - The Key To Success.pptx
Measurefest - GA4 From Migration to Measurement - The Key To Success.pptx
 
Google analytics version 4 in details
Google analytics version 4 in detailsGoogle analytics version 4 in details
Google analytics version 4 in details
 
Server-Side Google Tag Manager: Was, wie und warum
Server-Side Google Tag Manager: Was, wie und warumServer-Side Google Tag Manager: Was, wie und warum
Server-Side Google Tag Manager: Was, wie und warum
 
Google Analytics 4: La transición sobre Universal Analytics
Google Analytics 4: La transición sobre Universal AnalyticsGoogle Analytics 4: La transición sobre Universal Analytics
Google Analytics 4: La transición sobre Universal Analytics
 
Advanced Google Analytics 4.0 by Aviso Digital
Advanced Google Analytics 4.0 by Aviso DigitalAdvanced Google Analytics 4.0 by Aviso Digital
Advanced Google Analytics 4.0 by Aviso Digital
 
Google Analytics: The Basics
Google Analytics: The BasicsGoogle Analytics: The Basics
Google Analytics: The Basics
 
Google Analytics 4 : The Next Generation of Digital Analytics - Benjamin Kepn...
Google Analytics 4 : The Next Generation of Digital Analytics - Benjamin Kepn...Google Analytics 4 : The Next Generation of Digital Analytics - Benjamin Kepn...
Google Analytics 4 : The Next Generation of Digital Analytics - Benjamin Kepn...
 
MeasureCamp_Custom GA4 Channel Groups with dbt
MeasureCamp_Custom GA4 Channel Groups with dbtMeasureCamp_Custom GA4 Channel Groups with dbt
MeasureCamp_Custom GA4 Channel Groups with dbt
 
Server-side Tagging in Google Tag Manager - MeasureSummit 2020
Server-side Tagging in Google Tag Manager - MeasureSummit 2020Server-side Tagging in Google Tag Manager - MeasureSummit 2020
Server-side Tagging in Google Tag Manager - MeasureSummit 2020
 
Preparing for GA4 - The Future of Google Analytics
Preparing for GA4 - The Future of Google AnalyticsPreparing for GA4 - The Future of Google Analytics
Preparing for GA4 - The Future of Google Analytics
 
Columbus WAW 2022 - How GA4 can Help You Navigate a Cookie-Restricted World.pdf
Columbus WAW 2022 - How GA4 can Help You Navigate a Cookie-Restricted World.pdfColumbus WAW 2022 - How GA4 can Help You Navigate a Cookie-Restricted World.pdf
Columbus WAW 2022 - How GA4 can Help You Navigate a Cookie-Restricted World.pdf
 
Google analytics 4 - présentation détaillée
Google analytics 4 - présentation détailléeGoogle analytics 4 - présentation détaillée
Google analytics 4 - présentation détaillée
 
How to Know Exactly Where to Optimize with GA4.pptx
How to Know Exactly Where to Optimize with GA4.pptxHow to Know Exactly Where to Optimize with GA4.pptx
How to Know Exactly Where to Optimize with GA4.pptx
 
LearnInbound_AnnaCorbett_GTM Events for GA4.pdf
LearnInbound_AnnaCorbett_GTM Events for GA4.pdfLearnInbound_AnnaCorbett_GTM Events for GA4.pdf
LearnInbound_AnnaCorbett_GTM Events for GA4.pdf
 
Google tag manager
Google tag managerGoogle tag manager
Google tag manager
 
Introduction to Google Analytics
Introduction to Google AnalyticsIntroduction to Google Analytics
Introduction to Google Analytics
 
Google Analytics for Dummies
Google Analytics for DummiesGoogle Analytics for Dummies
Google Analytics for Dummies
 

Ähnlich wie GA4/GTAG Data Capture Alternatives

Replacing gtag.js with walker.js
Replacing gtag.js with walker.jsReplacing gtag.js with walker.js
Replacing gtag.js with walker.js📊 Markus Baersch
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
All about google tag manager - Basics
All about google tag manager - Basics All about google tag manager - Basics
All about google tag manager - Basics Rob Levish
 
Go bei der 4Com GmbH & Co. KG
Go bei der 4Com GmbH & Co. KGGo bei der 4Com GmbH & Co. KG
Go bei der 4Com GmbH & Co. KGJonas Riedel
 
Most Advanced GTM Deployment. Ever!
Most Advanced GTM Deployment. Ever!Most Advanced GTM Deployment. Ever!
Most Advanced GTM Deployment. Ever!Phil Pearce
 
GWT + Gears : The browser is the platform
GWT + Gears : The browser is the platformGWT + Gears : The browser is the platform
GWT + Gears : The browser is the platformDidier Girard
 
The current status of html5 technology and standard
The current status of html5 technology and standardThe current status of html5 technology and standard
The current status of html5 technology and standardWonsuk Lee
 
Chrome Extensions Slides Gtugna Kick Off Meeti
Chrome Extensions Slides Gtugna Kick Off MeetiChrome Extensions Slides Gtugna Kick Off Meeti
Chrome Extensions Slides Gtugna Kick Off MeetiStephan Linzner
 
When You Need Custom Data in GTM but a Developer is Not Available
When You Need Custom Data in GTM but a Developer is Not AvailableWhen You Need Custom Data in GTM but a Developer is Not Available
When You Need Custom Data in GTM but a Developer is Not AvailableIIHEvents
 
CodeCamp Iasi - Creating serverless data analytics system on GCP using BigQuery
CodeCamp Iasi - Creating serverless data analytics system on GCP using BigQueryCodeCamp Iasi - Creating serverless data analytics system on GCP using BigQuery
CodeCamp Iasi - Creating serverless data analytics system on GCP using BigQueryMárton Kodok
 
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
 
Custom Tag Manager Templates
Custom Tag Manager TemplatesCustom Tag Manager Templates
Custom Tag Manager TemplatesMarkus Baersch
 
GraphQL Bangkok Meetup 6.0
GraphQL Bangkok Meetup 6.0GraphQL Bangkok Meetup 6.0
GraphQL Bangkok Meetup 6.0Tobias Meixner
 
Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...
Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...
Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...Christopher Gutknecht
 
Introduction to Google Tag Manager
Introduction to Google Tag ManagerIntroduction to Google Tag Manager
Introduction to Google Tag ManagerSteven Stadler
 
Crash Course on Google Analytics
Crash Course on Google AnalyticsCrash Course on Google Analytics
Crash Course on Google AnalyticsGrowth Hacking Asia
 
Headless browser: puppeteer and git client : GitKraken
Headless browser: puppeteer and git client : GitKrakenHeadless browser: puppeteer and git client : GitKraken
Headless browser: puppeteer and git client : GitKrakenSheikhMoonwaraAnjumM
 
Isolating GPU Access in its Own Process (Foss-North 2018)
Isolating GPU Access in its Own Process (Foss-North 2018)Isolating GPU Access in its Own Process (Foss-North 2018)
Isolating GPU Access in its Own Process (Foss-North 2018)Patricia Aas
 

Ähnlich wie GA4/GTAG Data Capture Alternatives (20)

Replacing gtag.js with walker.js
Replacing gtag.js with walker.jsReplacing gtag.js with walker.js
Replacing gtag.js with walker.js
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
Tracking ist nicht kaputt!
Tracking ist nicht kaputt!Tracking ist nicht kaputt!
Tracking ist nicht kaputt!
 
All about google tag manager - Basics
All about google tag manager - Basics All about google tag manager - Basics
All about google tag manager - Basics
 
Go bei der 4Com GmbH & Co. KG
Go bei der 4Com GmbH & Co. KGGo bei der 4Com GmbH & Co. KG
Go bei der 4Com GmbH & Co. KG
 
Most Advanced GTM Deployment. Ever!
Most Advanced GTM Deployment. Ever!Most Advanced GTM Deployment. Ever!
Most Advanced GTM Deployment. Ever!
 
GWT + Gears : The browser is the platform
GWT + Gears : The browser is the platformGWT + Gears : The browser is the platform
GWT + Gears : The browser is the platform
 
The current status of html5 technology and standard
The current status of html5 technology and standardThe current status of html5 technology and standard
The current status of html5 technology and standard
 
Chrome Extensions Slides Gtugna Kick Off Meeti
Chrome Extensions Slides Gtugna Kick Off MeetiChrome Extensions Slides Gtugna Kick Off Meeti
Chrome Extensions Slides Gtugna Kick Off Meeti
 
When You Need Custom Data in GTM but a Developer is Not Available
When You Need Custom Data in GTM but a Developer is Not AvailableWhen You Need Custom Data in GTM but a Developer is Not Available
When You Need Custom Data in GTM but a Developer is Not Available
 
CodeCamp Iasi - Creating serverless data analytics system on GCP using BigQuery
CodeCamp Iasi - Creating serverless data analytics system on GCP using BigQueryCodeCamp Iasi - Creating serverless data analytics system on GCP using BigQuery
CodeCamp Iasi - Creating serverless data analytics system on GCP using BigQuery
 
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...
 
Custom Tag Manager Templates
Custom Tag Manager TemplatesCustom Tag Manager Templates
Custom Tag Manager Templates
 
Custom Tag Manager Templates
Custom Tag Manager TemplatesCustom Tag Manager Templates
Custom Tag Manager Templates
 
GraphQL Bangkok Meetup 6.0
GraphQL Bangkok Meetup 6.0GraphQL Bangkok Meetup 6.0
GraphQL Bangkok Meetup 6.0
 
Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...
Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...
Questioning data quality and troubleshooting tracking gaps (version2 | Smx Su...
 
Introduction to Google Tag Manager
Introduction to Google Tag ManagerIntroduction to Google Tag Manager
Introduction to Google Tag Manager
 
Crash Course on Google Analytics
Crash Course on Google AnalyticsCrash Course on Google Analytics
Crash Course on Google Analytics
 
Headless browser: puppeteer and git client : GitKraken
Headless browser: puppeteer and git client : GitKrakenHeadless browser: puppeteer and git client : GitKraken
Headless browser: puppeteer and git client : GitKraken
 
Isolating GPU Access in its Own Process (Foss-North 2018)
Isolating GPU Access in its Own Process (Foss-North 2018)Isolating GPU Access in its Own Process (Foss-North 2018)
Isolating GPU Access in its Own Process (Foss-North 2018)
 

Mehr von 📊 Markus Baersch

Consent & Tag Management - die ultimative Checkliste
Consent & Tag Management - die ultimative ChecklisteConsent & Tag Management - die ultimative Checkliste
Consent & Tag Management - die ultimative Checkliste📊 Markus Baersch
 
Conversion Tracking Optionen im Vergleich
Conversion Tracking Optionen im VergleichConversion Tracking Optionen im Vergleich
Conversion Tracking Optionen im Vergleich📊 Markus Baersch
 
Server-Side: Lösung für alles? [OMX]
Server-Side: Lösung für alles? [OMX] Server-Side: Lösung für alles? [OMX]
Server-Side: Lösung für alles? [OMX] 📊 Markus Baersch
 
Google Ads Conversiontracking ohne Cookies -SEA CAMP
Google Ads Conversiontracking ohne Cookies -SEA CAMPGoogle Ads Conversiontracking ohne Cookies -SEA CAMP
Google Ads Conversiontracking ohne Cookies -SEA CAMP📊 Markus Baersch
 
Google Analytics gezielt zur Optimierung einsetzen / Bessere Daten in Analyti...
Google Analytics gezielt zur Optimierung einsetzen / Bessere Daten in Analyti...Google Analytics gezielt zur Optimierung einsetzen / Bessere Daten in Analyti...
Google Analytics gezielt zur Optimierung einsetzen / Bessere Daten in Analyti...📊 Markus Baersch
 
Herausforderungen der Internationalisierung
Herausforderungen der InternationalisierungHerausforderungen der Internationalisierung
Herausforderungen der Internationalisierung📊 Markus Baersch
 
Analytics & GTM: Tipps für bessere Daten CAMPIXX 2019
Analytics & GTM: Tipps für bessere Daten CAMPIXX 2019Analytics & GTM: Tipps für bessere Daten CAMPIXX 2019
Analytics & GTM: Tipps für bessere Daten CAMPIXX 2019📊 Markus Baersch
 
Analytics & GTM Hacks für bessere Daten
Analytics & GTM Hacks für bessere DatenAnalytics & GTM Hacks für bessere Daten
Analytics & GTM Hacks für bessere Daten📊 Markus Baersch
 
Bounce Rate Demystified - Campixx 2018
Bounce Rate Demystified - Campixx 2018Bounce Rate Demystified - Campixx 2018
Bounce Rate Demystified - Campixx 2018📊 Markus Baersch
 
Anatomie von AdWords Scripts - Einführung
Anatomie von AdWords Scripts - Einführung Anatomie von AdWords Scripts - Einführung
Anatomie von AdWords Scripts - Einführung 📊 Markus Baersch
 
State of Spam SEAcamp Hannover 2017
State of Spam SEAcamp Hannover 2017State of Spam SEAcamp Hannover 2017
State of Spam SEAcamp Hannover 2017📊 Markus Baersch
 

Mehr von 📊 Markus Baersch (19)

Consent & Tag Management - die ultimative Checkliste
Consent & Tag Management - die ultimative ChecklisteConsent & Tag Management - die ultimative Checkliste
Consent & Tag Management - die ultimative Checkliste
 
Conversion Tracking Optionen im Vergleich
Conversion Tracking Optionen im VergleichConversion Tracking Optionen im Vergleich
Conversion Tracking Optionen im Vergleich
 
Server-Side: Lösung für alles? [OMX]
Server-Side: Lösung für alles? [OMX] Server-Side: Lösung für alles? [OMX]
Server-Side: Lösung für alles? [OMX]
 
Google Ads Conversiontracking ohne Cookies -SEA CAMP
Google Ads Conversiontracking ohne Cookies -SEA CAMPGoogle Ads Conversiontracking ohne Cookies -SEA CAMP
Google Ads Conversiontracking ohne Cookies -SEA CAMP
 
Google Tag Manager Templates
Google Tag Manager TemplatesGoogle Tag Manager Templates
Google Tag Manager Templates
 
First Party Data Collection
First Party Data CollectionFirst Party Data Collection
First Party Data Collection
 
Tracking-Herausforderungen 2020
Tracking-Herausforderungen 2020Tracking-Herausforderungen 2020
Tracking-Herausforderungen 2020
 
Analytics Hacks II SEAcamp 2019
Analytics Hacks II SEAcamp 2019Analytics Hacks II SEAcamp 2019
Analytics Hacks II SEAcamp 2019
 
Rendering Bots erkennen
Rendering Bots erkennen Rendering Bots erkennen
Rendering Bots erkennen
 
Browser vs. Tracking
Browser vs. TrackingBrowser vs. Tracking
Browser vs. Tracking
 
Analytics Tippgewitter
Analytics TippgewitterAnalytics Tippgewitter
Analytics Tippgewitter
 
Google Analytics gezielt zur Optimierung einsetzen / Bessere Daten in Analyti...
Google Analytics gezielt zur Optimierung einsetzen / Bessere Daten in Analyti...Google Analytics gezielt zur Optimierung einsetzen / Bessere Daten in Analyti...
Google Analytics gezielt zur Optimierung einsetzen / Bessere Daten in Analyti...
 
Herausforderungen der Internationalisierung
Herausforderungen der InternationalisierungHerausforderungen der Internationalisierung
Herausforderungen der Internationalisierung
 
ITP 2.1 und Webanalyse
ITP 2.1 und WebanalyseITP 2.1 und Webanalyse
ITP 2.1 und Webanalyse
 
Analytics & GTM: Tipps für bessere Daten CAMPIXX 2019
Analytics & GTM: Tipps für bessere Daten CAMPIXX 2019Analytics & GTM: Tipps für bessere Daten CAMPIXX 2019
Analytics & GTM: Tipps für bessere Daten CAMPIXX 2019
 
Analytics & GTM Hacks für bessere Daten
Analytics & GTM Hacks für bessere DatenAnalytics & GTM Hacks für bessere Daten
Analytics & GTM Hacks für bessere Daten
 
Bounce Rate Demystified - Campixx 2018
Bounce Rate Demystified - Campixx 2018Bounce Rate Demystified - Campixx 2018
Bounce Rate Demystified - Campixx 2018
 
Anatomie von AdWords Scripts - Einführung
Anatomie von AdWords Scripts - Einführung Anatomie von AdWords Scripts - Einführung
Anatomie von AdWords Scripts - Einführung
 
State of Spam SEAcamp Hannover 2017
State of Spam SEAcamp Hannover 2017State of Spam SEAcamp Hannover 2017
State of Spam SEAcamp Hannover 2017
 

Kürzlich hochgeladen

Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubaikojalkojal131
 
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...kumargunjan9515
 
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...HyderabadDolls
 
Statistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbersStatistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numberssuginr1
 
Computer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfComputer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfSayantanBiswas37
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRajesh Mondal
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...gajnagarg
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Researchmichael115558
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...nirzagarg
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1ranjankumarbehera14
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Klinik kandungan
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...nirzagarg
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...SOFTTECHHUB
 
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...gragchanchal546
 
20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdf20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdfkhraisr
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...Health
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 

Kürzlich hochgeladen (20)

Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...
 
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
 
Statistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbersStatistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbers
 
Computer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfComputer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdf
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
 
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
 
20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdf20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdf
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
 
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
 

GA4/GTAG Data Capture Alternatives

  • 1. GA4 / GTAG Data Capture Script Alternatives Markus Baersch
  • 3. gtag.js some issues Source: in client-side setup likely to be blocked by modern browsers Heavy: does is all: GA, Ads, Optimize, Badges and whatever Complexity: Much stuff you might not want Control: let me define what is “engaged”! Consent: Consent Mode is a joke! What to use (when running your own endpoint for more than just GA4)?
  • 4. gtag.js … is odd! Session Handling & More: ● control over “first_visit” and “session_start” ● browser knows what is a conversion, a referral exclusion… ● no way to hide your measurement id ● much “serverside-stuff” has to be handled by the browser
  • 5. gtag.js GTM light? ● Google Tag: “centrally manage settings without additional code” ● modelled conversions everywhere googlemarketinglive.com/americas/
  • 6. ● just “sending hits” is not enough (for GA4) ● GA4 Measurement Protocol is not a full replacement ● additional tasks: knowing goals, send created events, track time… ● event batching ● ssGTM “sendPixelFromBrowser” ● mocking Consent Mode ● sending enough data to feed GA4 without consent: possible? gtag.js why replacing it is hard
  • 9. GA4 Destination: might be one of the few official partners (soon?) Everything in place: does have own session start markers. Utag.data seems a good fit Anyone tried this already (without bundling gtag in the browser)? Tealium iQ Standard fits? Or EventStream?
  • 10. Seems to have all data: there are timestamps, timings, hit numbers… Tagging: relies either on HTML attributes or events sent via JS Anyone tried this one maybe? ;) https://github.com/elbwalker/walker.js elbwalker open source event tracker
  • 11. You would have to steal it: not open source GA4 connection “unofficial”: might break in the future Not very lightweight: >40kB first hand experiences here? https://www.jentis.com/ The JENTIS approach alternative capturing indeed
  • 12. DIY individual tracking script ● minimal footprint, no dependencies ● fallback for sendbeacon() ● collect minimal dimensions ● re-use existing dataLayer ● use fingerprint or cookie ● enhanced tracking if consent: ○ session handling ○ returning visitors ○ more dimensions ● use (obfuscated) POST ● quite hard (if only client-side)
  • 13. Example Loggy -> Snoop Logg / Luke Logbridge -> log2self
  • 14. History started as a simple replacement for analytics.js 5+ years ago works from the browser only, but needs an endpoint that knows the format Used to forward events to GA, Piwik PRO, Matomo and a few others Worked without a “client-side session” well before implementing GA4 one of the older ones: https://gist.github.com/mbaersch/34af06d1336f8 78ea10f3f7b0e49d45c
  • 15. evolving code grows ;) send consent as payload add an event id to avoid deduplication problems in “other systems” ;) client-side timestamps are fine, but use your own endpoint to create new ones code suddenly needs some “initialisation” More Dimensions
  • 16. collect additional info with consent only (and throw out some stuff in your endpoint as well) remember: resolution, (language), color depth & co are all attributes that you actively “read” from the visitor´s device Be Nice!
  • 17. Session Handling GA4 wants session handling only active if consent is present uses localStorage / sessionStorage - which is only possible on a single domain AND host
  • 18. Sending Stuff Try beacons, then AJAX, then an image pixel as last fallback …and make sure that your endpoint looks for get parameters. and yes: use guard clauses instead of all that else stuff if you like ;)
  • 19. Endpoint FP endpoint for flexible data handling optionally use separate session, timestamps, identifier 1:n tracking debugging with headers GA4: refer to https://www.thyngster.com/ga4- measurement-protocol- cheatsheet/ for a parameter reference (would have saved a lot of time for me)
  • 20. Endpoint (2) Use ssGTM and translate own format to GTM events or build your own in Node, PHP or whatever Remember: CNAME is not an option cloud edge endpoints are a promising alternative
  • 21. Final Tipps send base64 coded payload … or even build your own coding (or just do rot13 :)) Keeping your own format makes you (somewhat) independent remember: a tracking server has to handle a lot of stuff. Do not use your website server (unless you have low traffic like me ;))
  • 22. Done! Questions? or feedback? what was great, what not so much? Let me know!
  • 23. E-Book main focus on ssGTM markus-baersch.de/gtmbook

Hinweis der Redaktion

  1. Some kind of a “gtag.js - rant”: Is gtag.js really the best way to collect events in the browser? Why is gtag.js in general odd and what are the features that are used to feed GA4 with data? We will take a look at what gtag.js does, what alternative ways for data capturing already exist and how an individual replacement can be built.
  2. https://www.flaticon.com/
  3. David Vallejo did this for client-side tracking as well! ;)