Highlighted

Clear metrics between hits in GA

Bronze Contributor
Bronze Contributor

Hi,

 

I've set up in my data layer in a page with some mapping for metrics in GA.

Everything is working as expected on my pages views.

 

The problem is that when I am sending hits on the same page, the metrics are sent again to GA.

I can see via the GA debugger that Tealium uses for all dimensions and metrics the ga('my-account.set') method.

According to here: https://developers.google.com/analytics/devguides/collection/analyticsjs/sending-hits set will be sent on all hits on the same page.

 

""To send fields with the current hit only, you can pass them as arguments to the send method. To have field data sent with all subsequent hits, you should update the tracker using the set method."

 

How do I send a dimension or metric to GA through Tealium in the current hit only?

 

 

2 REPLIES 2
Highlighted

Clear metrics between hits in GA

Bronze Contributor
Bronze Contributor

Found out how to solve it.

When mapping the UDO variable to the dimension I was picking the "All Hits (set)" in the drop down. When chosing manually Pageviews and link it is sending it as expected as a part of the hit.

 

 

Clear metrics between hits in GA

Employee Emeritus

Great job @nirb figuring it out! 

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.