Scroll Tracking for Single-Page Applications (GTM)

Google Tag Manager (GTM) conveniently provides a scroll depth trigger to determine how far someone has scrolled down the page. However, this scroll depth trigger doesn’t work on websites using single page app (SPA) technology, since there is no full page load to reset the thresholds. This means that once you scroll down to the … Read more Scroll Tracking for Single-Page Applications (GTM)

Leverage Enhanced Ecommerce Data Layer for Marketing Pixels

This post contains scripts that you can use as Custom JS Variables in Google Tag Manager. These scripts all target the quite specific (yet common) use case where a site already running Google Analytics Enhanced Ecommerce now needs to run additional marketing or analytics tags. CONTENTS BackgroundPrerequisite: Create a Data Layer Variable for the Products … Read more Leverage Enhanced Ecommerce Data Layer for Marketing Pixels

Set up Custom Dimensions using GA, GTM, and the Data Layer

Adding a custom dimension to Google Analytics involves several interconnected parts: the data layer, tag manager setup, and admin settings in GA. This post walks through each step of the process to show how they fit together. CONTENTS Step 1: Push Values into the Data Layer Step 2: Set up Custom Dimensions in Google Analytics Admin … Read more Set up Custom Dimensions using GA, GTM, and the Data Layer

Remove fbclid Parameter from GA Reports

In late 2018, Facebook began appending “fbclid” query strings to the ends of all outbound URLs originating from Facebook’s site. These URLs take the format &fbclid=IwAR0Ylspg9Zo1-4JLuy5L3N7RhNTHg5BETDMlsQkUST8QC1JCo3iC6-54_PQ, and are appended to all outbound content, both FB ads as well as organic posts. This post will show you how to remove this parameter from your Google Analytics … Read more Remove fbclid Parameter from GA Reports

Track GA Onsite Search Without URL Query Strings

Google Analytics provides a super-easy method of tracking onsite search keywords: simply identify which query string (aka parameter) holds the onsite search term for your site, and enter that value at Admin > View > Site Search Settings. You can find your search query string by performing a search on your site and checking the … Read more Track GA Onsite Search Without URL Query Strings

Extend Google Analytics: Use Transaction Data to Create a Revenue Histogram

A histogram is a type of chart that visually shows the distribution of data. It’s useful when looking at the average or median of a data set, to understand whether that data point is common or not. For example, an ecommerce dashboard will typically include an Average Order Value metric. Say this metric is $50. … Read more Extend Google Analytics: Use Transaction Data to Create a Revenue Histogram

Event Tracking Naming Strategy for Google Analytics

HOW TO NAME EVENTS IN GOOGLE ANALYTICS This post describes one proven naming strategy for Google Analytics event tracking. Event naming is critical for using Google Analytics event reporting hierarchy and drill-down structures. With a good naming system it will be easy for users to identify events they’re interested in and break them down by where … Read more Event Tracking Naming Strategy for Google Analytics

Content Marketing Analytics: Conversion Rate by Page

While Google Analytics provides many reports and metrics designed to evaluate the effectiveness of content marketing, there is no report showing the conversion rates of specific posts or pages on your site. For example, if you’re tracking registrations on your site, you may want to know which specific posts are associated with signups, even if … Read more Content Marketing Analytics: Conversion Rate by Page

Track IP Address in Google Analytics using GTM

In response to many questions about tracking IP addresses in Google Analytics, this is a follow-up post to Get Visitor IP Address with Google Tag Manager. Please follow the instructions in that post first to collect visitor IP address into a GTM Variable and create a GTM event. Once those steps are complete, you can follow … Read more Track IP Address in Google Analytics using GTM

DOM Scraping Together a Datalayer for Google Analytics Ecommerce Tracking

Google Analytics’ e-commerce tracking is generally the most developer-intensive part of a Google Analytics implementation, because it requires a developer-built data layer on the transaction confirmation page. The data layer collects all the relevant data — the transaction ID, the checkout total, the product names, the prices, and so on — and lays them out … Read more DOM Scraping Together a Datalayer for Google Analytics Ecommerce Tracking