Pregunta

Adding Custom Dimensions to Universal Analytics via Tag Manager is generally a straightforward process. I've run into an issue populating a Custom Dimension multiple times on the same page. For example, the Custom Dimension is "Page Topics". There are multiple Page Topics to a page. The Page Topic is set up as a Hit Level dimension. The values are in a pipe delimited javascript variable illustrated below:

<script type="text/javascript">var userType='super premium member';var logInStatus='logged in';var userSex='male';var pageTopics="Celebration | Holiday | Party";</script>

I'm parsing that value and sending it to GTM with the following code which is placed on the page using GTM:

(http://imgur.com/DOa4mDl)

Tag Manager is configured to accept those parameters as part of a custom dimension and pass it via an Event Tag. The Event Tag has no event params configured (they're optional) so that bogus events do not end up in the system. This configuration can be seen below:

(http://imgur.com/8hRmlmZ)

All of the tags are firing but no data is getting to GA. Any ideas what I'm doing wrong?

¿Fue útil?

Solución

Everything looks great except that the Event Tag you're referencing has two REQUIRED parameters: category and action. Take a look at Google's documentation.

Add both a category and action, and you'll be seeing those dimensions.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top