GTM Hack – Mouseflow Tag in Google Tag Manager and Experiment Data

I’ve already covered one third-party tag in Google Tag Manager and today I’d like to cover the second one. It’s the Mouseflow Tag. Mouseflow basically records and evaluate the actual mouse & click flow of your website visitors. It immensely useful in evaluating user experience on a qualitative level. But the tag isn’t as straightforward to implement as I thought at first; at least not, if you want to have the tag, push some data into it (in my case A/B testing data), and get some data out of it (in my case, the Mouseflow id, which I want to […]

GTM Hack – Mouseflow Tag in Google Tag Manager and Experiment Data Read More

Brand Residue – Google Just Changed My Title Tag

“Help! Google changes my title tag.” Sounds familiar? To me it does. I got that call a bunch of times already, and I got it just yesterday in a new and interesting situation, namely in a rebranding. I’d like to focus on this specific situation because in a company rebranding, this topic is pretty important. After all, how do you want to rebrand, if Google won’t let you? Companies change their name, not often, but it happens. For instance Tesla changed the company name from Tesla Motors to Tesla Inc. beginning of this year, after already shortening the URL to tesla.com in […]

Brand Residue – Google Just Changed My Title Tag Read More

GTM Hack – Assigning UA IDs Based on Subdirectories using RegEx Tables in GTM

There’s a new cool feature in GTM called a RegEx Table variable. Here’s a simple use case. Suppose your website has subdirectories for each language version. So you’d have website.com/en/with English content website.com/fr/with French content website.com/zh/with Chinese content. For many purposes it’s useful to track those websites in different Google Analytics properties. Now using a RegEx Table variable this has become pretty simple. Where you’d previously either had to create many multiple tags (copies of each other) or write a Javascript variable that extracted the language parameter. For the example above, you can configure a RegEx Table variable in the […]

GTM Hack – Assigning UA IDs Based on Subdirectories using RegEx Tables in GTM Read More

GTM Hack – Passing Hidden Form Fields to GTM

Passing the value of a form field into Google Tag Manager is pretty straight forward with the dataLayer and the dataLayer variable. But since things vary a bit case to case, I’d like to show one example which you can adapt. The basics are: If you have any formSubmit trigger present in your container, then on submit of any form, a gtm.form object will be passed into the dataLayer. This object contains all the information, especially hidden fields and whatever the visitor filled out. Those values in turn can be retrieved in GTM using a dataLayer variable. Alright, for sake […]

GTM Hack – Passing Hidden Form Fields to GTM Read More

Getting Google Optimize Data into Google Analytics and GTM

Google Optimize is a pretty cool product, it’s a free A/B tester and it integrates pretty well with Google Analytics via your Google account. But only one way. Google Optimize uses your goals and your traffic data to determine the outcomes of your experiments but you are not able to see which visitor visited variant A/B of your experiment in your Google Analytics data. Or at least I couldn’t find the option. Here is a quick fix for this; Basically we retrieve the information from the Google Optimize cookie, then put it into the dataLayer of Google Tag Manager and […]

Getting Google Optimize Data into Google Analytics and GTM Read More

Quantcast Advertise Tag in Google Tag Manager

Implementing Quantcast tags is super easy with Google Tag Manager as they now offer direct support in the form of two custom Quantcast tags, one for Quantcast Advertise, one for Quantcast Measurement. No need for custom HTML tags. Those custom tags are much easier to maintain, they are less prone to mistakes, easier to debug and more flexible in a sense. Of course, custom HTML can do essentially the same things, but custom tags make things much simpler. Especially using other variables inside the Quantcast tag is now much easier. The Custom Quantcast Advertise Tag The tag can be found […]

Quantcast Advertise Tag in Google Tag Manager Read More