Using the new Callbacks for Tracking

Sometimes you find surprising little things when you don't expect it. Take this little gem: Since 1.8.0 (released 19/1/17) Added the following pre- and post-tracking call hooks. (AN-134567) s.registerPreTrackCallback s.registerPostTrackCallback These functions take as parameters: the callback (a function), and the parameters to that function. For example: s.registerPreTrackCallback(function(requestUrl,a,b,c) { console.log("pre track callback"); console.dir(requestUrl); // Request …

Continue reading Using the new Callbacks for Tracking

Discussion – Customize Analytics in DTM

There is no "standard deployment". A couple of weeks ago, I was talking with a colleague who hadn't worked with DTM before. He asked me lots of intelligent questions about his somewhat non-standard requirements, and I replied with what I think is the best approach. Whilst doing that, I kept thinking about "the other approach", …

Continue reading Discussion – Customize Analytics in DTM

When exactly does doPlugins run?

In a meeting a couple of months ago, André Urban (a seasoned colleague of mine) and I got into a sudden and unexpected argument about when exactly s.doPlugins is called. I was convinced it was called as a result of calling either s.t() or s.tl(), while he says it was also called everytime a visitor clicks …

Continue reading When exactly does doPlugins run?

Plugins: New/Repeat vs VisitNum

Here: I would always use the getVisitNum plugin instead of the getNewRepeat plugin. They have a similar use case. Your friendly marketer will probably compare your new visitors against those who've been to the site before. I bet you she has targets that are linked to acquisition of new visitors or rather new customers. Most …

Continue reading Plugins: New/Repeat vs VisitNum

Quick Tip – One s_code.js for Multiple Sites

The situation: you are responsible for a couple of sites on different domains. Tracking is pretty much the same on all of these pages, but there are some small differences (e.g. each site tracks into a separate report suite). A new version of the s_code has come out and you want to update all your …

Continue reading Quick Tip – One s_code.js for Multiple Sites

With DTM you don’t need Plugins! – Part 2

Let's continue on the journey and replace one more plugins with DTM goodness. I even get to introduce an almost hidden feature! getVisitNum I was slightly disappointed last time because I couldn't find an easy way of replacing getVisitNum. This plugin keeps track of how often someone comes to the site. Very useful for segmentation purposes. …

Continue reading With DTM you don’t need Plugins! – Part 2

Data Elements vs Data Layer

Have you used a Tag Management system yet? And a Data Layer? Both are good ideas in our business, for a variety of reasons. The one I think is most relevant in this context here is that defining a Data Layer makes a lot of requirements, possibilities, assumptions and limitations explicit. I think in a …

Continue reading Data Elements vs Data Layer