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

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