19TH JULY 2021 / WEB ANALYTICS

Storage-Less Session Tracking with Google Analytics

This weekend I was doing a, long-due, room cleanup and I found buried in the bottom of a drawer an old hard I was using some years ago. Within it's content I found one folder named "WIP" ( Work In Progress ) and there I found some experiments, tools and proof of concepts I was working on 4-5 years ago and that got lost on the desk drawer when I upgraded my computer to a SSD drives.It seems that at some point I was playing around with some way of…

22ND JUNE 2021 / WEB ANALYTICS

How to redact PII Data from Google Analytics 4 hits

If I were asked about some missing feature on Google Analytics 4 ( a.k.a. APP+WEB, New Web Analytics ), I would say it would be the lack of the customTask functionality that my friend Simo has leveraged in the last years. Sadly at the moment there's nothing similar available ( I really hope to have something in the future ). In the past I collaborated on this Brian Clifton's post/code about How to Remove PII from Google Analytics, So I decided to…

18TH JUNE 2021 / WEB ANALYTICS

HTML Media Elements Tracking Library

Some years ago I wrote a post about how to Track html5 videos which has been widely used and copied around the web. 2 years ago I wrote a total new tracking code , which I never publicly released. Today I'm releasing a total new refactored code, for tracking HTML Media Elements. This means tracking <video> and <audio> elements. This is my first library that I've build thinking on it about being a full library to be used along any project,…

21ST DECEMBER 2020 / WEB ANALYTICS

Tracking Google Analytics 4 Events using Data Attributes

I must admit it, I like to use data-attributes for user clicks interactions rather than delegating that work on the IT team or relying on the class/id attributes. ( Data Attributes Tracking ) . For Universal Analytics, this was some kind of easy work, since we had some fixed data attributes names (category, action, label, value when talking about events, or pagepath if we wanted to use a virtual pageview ). With the new event based tracking model…

20TH DECEMBER 2020 / WEB ANALYTICS

New Release: GTM/GA Debugger 0.4.0

It's been a long time since the last post, even more since the last extension update. To be exact it took me around 1 year to have this new version ready. The main reason for this delay was that I switched how the extension is built at least 5 times. I don't consider myself a developer which implies that many times I end choosing not the best stack I should. Anyway this has been a real opportunity for my to learn a lot of new technologies/frameworks…

1ST JUNE 2020 / WEB ANALYTICS

Tracking user's IP Autonomous System Number and Organization details to prevent the spam

Around end of 2019, Google Analytics dropped the Network Domain and Service Provider dimensions support from their reports making an official announment in February about it.These 2 dimensions, where widely used to fight the spam in Google Analytics and there have been a lot of posts going around this topic in the last months. Simo Ahava wrote about how to collect the ISP data third party service in you want to check it. On this post we'll learning…

20TH APRIL 2020 / WEB ANALYTICS

Tracking your visitors effective connection speed details

I know this is just currently a draft but being it available on Chrome, Edge and Opera ( or any chrome based browser ) make this really usefull in my opinion.In those browsers, there’s a API that allows to get the details about the current connection of the current user. We cab query some info like the current "estimated" connection link, the round-trip ( latency ), based on the recently observed requests by the browser.All these details can be queried…

14TH APRIL 2020 / WEB ANALYTICS

Tracking the anchor text for the incoming links in Google Tag Manager

Introduction It's been a long time since I took care of this blog's "Analytics" ( In the blacksmith's house, a wooden knife). And I noticed that would be cool having the info about the Anchor Text the sites referring to my sites are using to link me. So I'm sharing the solution I built today in order to capture which Anchor Text was on the referring URLs and sending the info back to Google Tag Manager and from there we'll be able send an event to…

13TH APRIL 2020 / WEB ANALYTICS

APP + WEB: Google Analytics Measurement Protocol version 2

The Google Analytics Measurement Protocol allows users and developers to make HTTP requests directly to Google Analytics endpoint in order to measure how users interact from any enviroment/platform. Since Google announced the new APP+WEB Properties back in summer, we noticed that the &v parameter that used to hold a fixed 1 value turned to be a =2 value in our hit requests. Which implicitily means that at some point a new version of the Measurement…

23RD MARCH 2020 / WEB ANALYTICS

Tracking the Protocol version in Google Analytics via Google Tag Manager

Despite you being a SEO or not, I'm sure you're aware of how important the WPO ( Web Performance Optimization ) and this of includes of course how fast your site loads. The faster it loads the better for your users ( and better for the conversion rates they say ... ).At this point you may have heard about HTTP/2 (2015) , which the replacement for the oldie HTTP/1.1 ( 1995) , you have even heard about http/3 ( last draft Feb 2020 ), which is ever…