Run a JavaScript Function in Google Tag Manager

In Google Tag Manager, you can create variables using JavaScript to grab an element from an app or page.

In this tutorial, I’ll show how to execute a JavaScript as a user defined variable in GTM grabbing a value from an HTML element.

Continue reading “Run a JavaScript Function in Google Tag Manager”

Create Custom Dimensions in Google Analytics with Tag Manager

Custom Google Reports

Google Analytics has thousands of metric and dimension combinations, but they can’t always measure the things that are unique to your business. Adding a custom dimension is a simple way to collect data that measures your unique values.

This post demonstrates how to define custom dimensions in Google Analytics and collect the user defined variable via a Google Tag Manager fire, ultimately building a custom analytics report to display the value.

Continue reading “Create Custom Dimensions in Google Analytics with Tag Manager”