One reaction to last weeks article on the ACDL was from @AnalyticsNinja, and it was about the 500ms wait time I mentioned: 500ms setTimeout() in click handlers.... Isn't navigator.sendBeacon sufficient? — Analytics Sith (@AnalyticsNinja) October 23, 2020 So very right he is, and the only excuse I have is that ... no, I don't have … Continue reading Why not use sendBeacon?
Category: Page Code
Posts talking about Javascript Code on the actual web page
The Adobe Client Data Layer
I have pushed this article back so many times that I feel bad for it. So even though one part of the story isn't there yet, I'll publish it now. (Update, the Extension is now publicly available!) The story began with me moving to Switzerland and the Basel office. This office came to Adobe via … Continue reading The Adobe Client Data Layer
Launch Extensions & Cato Fong
Some time ago, I built and released an Extension called "Time spent and Scroll Depth", mostly as an exercise for myself, and because I thought Simo Ahava had really nicely explained how tracking content-heavy sites might work. Since then, I have learned a lot, and I sort of don't want to look back at the … Continue reading Launch Extensions & Cato Fong
Launch, Events, and EDDL – aka Jim changed my mind
Sometimes I have trouble with the beginning of an article. This is such a case. I have been pondering the best way to use Launch to track visitor activity for some time. You know, visitor clicking stuff, SPAs, things like that. It really boils down to two approaches: Use _satellite.track() and put payload into the … Continue reading Launch, Events, and EDDL – aka Jim changed my mind
Fixes – Too many Visits on Pages with Links
On the German blog, I used to run a series about frequent mishaps, and how to detect and fix them. Those articles were often about data, rather than implementation, so I never translated them to this blog. But here is one that is pretty technical, so it should clearly live here. Friendly marketer says that … Continue reading Fixes – Too many Visits on Pages with Links
Basic Tracking on AMP Pages
This article was born out of sheer frustration. I had a) never implemented on AMP pages before, b) had to do it very urgently, and c) learned the hard way that the documentation wasn't brilliant. The documentation not being brilliant is a side effect of how AMP develops at a pretty fast pace, nothing like … Continue reading Basic Tracking on AMP Pages
The 2 Faces of the Audience Manager – Analytics Integration
So here you are, wondering. Your friendly marketer has told you to add a new tool to the toolbox — Adobe Audience Manager. She told you that you have to implement some code for it to work. You checked the help site and came away none the wiser. Let me help you. There are currently … Continue reading The 2 Faces of the Audience Manager – Analytics Integration
Tracking 404 Error Pages
There are tools out there that find bogus links on your site, and some even try to find links outside your site that point to nirvana. But your friendly marketer likely wants to have better data than that, so she asks you to build tracking for 404 pages. Now what? Let me explain, both for … Continue reading Tracking 404 Error Pages
Debugging 2017.02
It has been almost 3 years since I wrote my article on debugging. I read through it the other day, and couldn't help but notice that my workflow has indeed changed. Time for a new article! I'll stick with client-side this time, as this is where the changes have happened. The second big difference is … Continue reading Debugging 2017.02
DTM – How to Amend an Existing Analytics Setup
(Let me state right here at the beginning that judging by the feedback I got from my beta testers editors, this article may not be for the faint of heart. If you think Javascript should be treated with respect, you might want to stop reading.) Have you ever seen the '[x] Page code is already … Continue reading DTM – How to Amend an Existing Analytics Setup