Contents
How do I set custom dimensions in Google Tag Manager?
Go to ‘Custom Dimensions’ under Admin > Property Settings > Custom Definitions.
- Add a custom dimension.
- Take note of the dimension number.
- Create your variable in GTM.
- Set the field name and value in your GA variable.
- Set the index and value under ‘Custom Dimensions’.
- Preview, test, publish, and analyze!
What is the difference between custom dimension and custom variable?
Values of Custom Dimensions are limited to 255 characters, while Custom Variables are limited to 200. Custom Dimensions need less storage and so reports can be generated faster. With Custom Variables you can match more than one metric to one variable, which is not possible with Custom Dimensions.
How do I create a custom dimension in looker?
Creating a custom dimension using a Looker expression
- Expand the Custom Fields section.
- Click Add.
- Choose Custom Dimension.
What are custom dimensions?
Custom dimensions and metrics are a powerful way to send custom data to Google Analytics. Web developers can use custom dimensions and metrics to segment and measure differences between logged in and logged out users, authors of pages, levels in games, or any other business data you have on a page.
How do I create a custom filter in Looker?
To add a custom filter, expand the Filters section and click the Custom Filter checkbox in the upper right: To create a Looker expression for your custom filter, start typing a dimension or function. Looker will display a list of functions, operators, and field names that you might want to use in your expression.
How does Google Tag Manager work with data layer?
Google Tag Manager functions best when deployed alongside a data layer. A data layer is a JavaScript object that is used to pass information from your website to your Tag Manager container. You can then use that information to populate variables and activate triggers in your tag configurations.
When to send data from the data layer?
The first method is useful if you want to push any custom data right when the page loads. Example: product data when the product page loads. You might want to send that product data (from the Data Layer) to Facebook Pixel (with View Content event).
How to measure user interactions in GTAG JS?
The existing gtag.js snippet on the page where you want to measure user interactions is “controlled” by a Universal Analytics property (i.e., the ID referenced in this line of the gtag.js snippet begins with “UA-“):
What is the measurement ID for Google Analytics 4?
For a Google Analytics 4 property, the “config” with a Google Analytics 4 property Measurement ID enables the collection of page_view events (as an automatically collected event) when it loads on a page. Universal Analytics property IDs have the format “UA-XXXXXXXX”.