Issue with the dimensions and metrics of Google Analytics fired with Tealium

francesco_fresc
Silver Contributor
Silver Contributor francesco_fresc

Hi,
I have an issue with the dimensios and metrics of Google Analytics fired with Tealium.

 

The site is developed with angularJS and the content is loaded via AJAX, when the content is loaded is called the function utag.view.

 

When I set a custom dimension or custom metric, they remain set in the ga object although they should not.

 

As an example, if I configure the tracking to set the navigation levels then I have:

  1. Step 1. Open the page mysite.com/lv1/lv2/lv3
    dimension1 = lv1
    dimension2 = lv2
    dimension3 = lv3

  2. Step 2. Open page mysite.com/home
    dimension1 = home
    dimension2 = lv2
    dimension3 = lv3

In the step 2 the dimension2 and dimension3 should not be set,

because the page contains the level "home" only, but they remain set from the previous utag.view on step1.

 

How can I clear the dimensions/metrics of GA and reset the dimension/metrics with the datalayer's values for each call utag.view?

 

Best Regards

Francesco

2 REPLIES 2
Highlighted

Issue with the dimensions and metrics of Google Analytics fired with Tealium

patrickmc
Bronze Contributor
Bronze Contributor patrickmc

I currently just had this issue as well. If you choose the "event type" of "pageview" or "link" instead of "All". The custom dimensions and metrics will not persist across pageviews in a single page app.

Issue with the dimensions and metrics of Google Analytics fired with Tealium

Tealium Employee

Hi @francesco_fresc

 

@patrickmc Is correct, you will need to set the scope.

 

Here is a link that defines the definitions :

 

https://community.tealiumiq.com/t5/DataAccess/Google-Universal-Analytics-Custom-Metrics/m-p/9861/hig...

 

Regards,

 

Adrian

Ask me anything Tealium related or Javascript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.