Post by account_disabled on Feb 25, 2024 4:17:51 GMT -6
The namely working out how best to pass your desired value into a JavaScript variable the syntax is simple enough that it can be modified with ease. Using the first of our examples from earlier tracking commenters we want to send a value of commenter to the Dimension slot as part of an event hit which is configured to fire when somebody comments on the blog. With this slot preconfigured as a userlevel dimension we would use gasend event Engagement Blog Comment dimension commenter This approach is all well and good but its not without its drawbacks.
It requires onpage tracking code changes significant developer Czech Republic Mobile Number List involvement and doesnt scale particularly well. Thanks to Google Tag Manager we can make things much easier. Implementation with Google Tag Manager If you use GTM to deploy your Analytics tracking and for all but the simplest of implementations I would recommend that you do then deploying custom dimensions becomes far simpler. For those new to GTM I gave an introductory talk on the platform at BrightonSEO slides here and Id strongly suggest bookmarking both Googles official documentation and Simo Ahavas excellent blog.
For the sake of this tutorial Ill assume youre familiar with the basics of GTM. To add a custom dimension to a particular tag in this case our blog comment event tag simply expand Custom Dimensions under More Settings and enter the index number and value of the dimension youd like to set. Note that to see the More Settings configuration options youll need to check the if youre not using a Google Analytics Settings Variable to configure your implementation. CUsersThomasB.BUILTVI SIBLEAppDataLocalMicrosoftWindowsINetCacheContent.Wordgtm.png What about our latter two examples user demographics and outofstock products Our demographic scenario involved a user registration form which included an Occupation field. In contrast to our commenting example the dimension value in this instance will need to be set programmatically.
It requires onpage tracking code changes significant developer Czech Republic Mobile Number List involvement and doesnt scale particularly well. Thanks to Google Tag Manager we can make things much easier. Implementation with Google Tag Manager If you use GTM to deploy your Analytics tracking and for all but the simplest of implementations I would recommend that you do then deploying custom dimensions becomes far simpler. For those new to GTM I gave an introductory talk on the platform at BrightonSEO slides here and Id strongly suggest bookmarking both Googles official documentation and Simo Ahavas excellent blog.
For the sake of this tutorial Ill assume youre familiar with the basics of GTM. To add a custom dimension to a particular tag in this case our blog comment event tag simply expand Custom Dimensions under More Settings and enter the index number and value of the dimension youd like to set. Note that to see the More Settings configuration options youll need to check the if youre not using a Google Analytics Settings Variable to configure your implementation. CUsersThomasB.BUILTVI SIBLEAppDataLocalMicrosoftWindowsINetCacheContent.Wordgtm.png What about our latter two examples user demographics and outofstock products Our demographic scenario involved a user registration form which included an Occupation field. In contrast to our commenting example the dimension value in this instance will need to be set programmatically.