16TH OCTOBER 2019 / WEB ANALYTICS

#tip - Grabbing current dataLayer variable name within GTM

This is going to be a quick #tip post. and it's coming from a post on Measure Slack. Let's learn how to grab the current dataLayer variable name within GTM. We'll need to create a variable with the following code:function() { return Object.values(window.google_tag_manager).find(function(e) { if (e.dataLayer) return true; }).dataLayer.name;}Now our variable should hold the dataLayer name :)

16TH OCTOBER 2019 / WEB ANALYTICS

Send APP+WEB Hits to any remote endpoint

Google released APP+WEB Properties some weeks ago now, and one of the most missed features looking back to Universal Analytics, is the chance to work with a customTask ( Hi Simo!!! ). In this post I'll cover how to send a copy of the hits to anywhere we want, in case we want to hold a copy of them, or processing them in some other place (like snowplow) First, we need to take in mind that APP+WEB hits, may contain +1 hits into their payload, therefore…

16TH OCTOBER 2019 / WEB ANALYTICS

Release: Client-Side dataLayer validation Library

If you're a web analyst, you SHOULD be worried about data quality, we want to have data, but we need this data to be correct, there's no point of having tons of corrupted data that we won't be able to sue and for this we need to monitor our implementations regularly to be sure our data is always being reported properly. Since We all are web analyst I'm pretty sure we are relying a flawless dataLayer ( are we? :) ). But I'm sure that at least once…

15TH AUGUST 2019 / WEB ANALYTICS

Technical Guide to Global Site Tag ( gtag.js )

Global Site Tag was introduced by Google back in October 2017. As the name suggests it was launched in order to unify all the different tracking libraries that we can use for Google Products, Adwords, Google Analytics, DoubleClick, etc. In my opinion the launch of APP+WEB Properties has set an inflexion point about the gtag.js use, since it's now when it is really coming into the scene, and it's just for a simple reason: before APP+WEB it was just…

12TH AUGUST 2019 / WEB ANALYTICS

Technical overview of new APP+WEB Properties

Some days ago, Google announced a new upcoming property type for Google Analytics, they called them "APP + WEB". And yes, the name says it all, finally we're going to be able to measure our apps and websites at the same time. This has been for years one of the biggest handicaps of Google Analytics, and not only that, when Firebase came into the scene, we had ended having two platforms to measure apps, double the SDK's and despite having all this…

12TH JULY 2019 / WEB ANALYTICS

Detecting if Google Analytics is being blocked using a Google Tag Manager Custom Template Tag

Today I'm releasing a small Custom Template for Google Tag Manager that will take care of notifying the dataLayer about if Google Analytics is currently being blocked by the browser. Some days ago, I published the following tweet, to get some user's feedback on Twitter. The approach not really bad, but having to deal with code is not the best solution for most people. I remember someone asking how to detect if GA was being blocked by user's browser…

10TH JULY 2019 / WEB ANALYTICS

Release: Yandex Metrica Debug Extension

About one month ago I started to work on a Google Tag Manager Custom Template for Yandex Metrica, I must say it was my first contact with it apart from installing the default snippet some years ago on this same blog.In order to ease my testings for the template I ended building a Browser Extension which I'm releasing today for Chrome, Firefox and Opera.

21ST JUNE 2019 / WEB ANALYTICS

Google Tag Manager Custom Template – Algolia Search Insights

Algolia is a company that offers a Search_as_a_service tools. They offer a Real Time services, which can be improved by sending events about users interactions over the products your site like add to carts, adds to wishlists, clicks after search, filters use, or conversion. For this task they offer a the Search Insights JS library. This library currently allows to track 3 main types of events: - Clicks (clickedObjectIDsAfterSearch , clickedObjectIDs,…

17TH JUNE 2019 / WEB ANALYTICS

Google Tag Manager Custom Template – Barilliance

Barilliance, is a eCommerce personalization tools for eCommerce including cart abandonment/retargeting emails and personalized product recommendations. The tag setup is pretty easy, just add your account id into the unique available place in the tag configuration :)Where do I find my Account Domain IDWhere can I download the custom template