Inflated count due to custom dimension and metric firing twice

Gold Contributor
Gold Contributor

Hello,

 

I've the following tags firing on the destination page after an onsite search is performed.

There are 2 tags firing on the destination URL. The first one is the page level tag that has the custom dimensions and metrics:

#26 (cd26): lipstick
#27 (cd27): type ahead

Custom Metrics
#7 (cm7): 1

There is also an event tag which fires in a separate tag. Can we fire this all in one tag? 
Event Action (ea): lipstick
Event Category (ec): onsite search
Event Label (el): type ahead

Also in this, will we be inflating the search count since the custom dimensions and metrics fire twice? We only want to increment a search once when completed and not duplicate it. 

 

Thanks,

Arya

6 REPLIES 6

Inflated count due to custom dimension and metric firing twice

Employee Emeritus

Hello @AS. What website is this happening on? Can you provide a link? Thank you. 

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.

Inflated count due to custom dimension and metric firing twice

Gold Contributor
Gold Contributor

Hi @kathleen_jo - It's currently in dev environment and unfortunately I can't share the login credentials for that site to someone outside the organization.

Inflated count due to custom dimension and metric firing twice

Employee Emeritus

Okay got it. Let me see if I can find you some help. Stay tuned @AS...

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.

Inflated count due to custom dimension and metric firing twice

Tealium Employee

@AS

 

You should be able to combine this all into one tag, without having to worry about inflation of the metrics/dimensions.

If you fire a utag.link with just the event data, (and possibly the tag ID) you won't have to worry about inflation.

utag.link({/*...data...*/},null, [/*tag id*/]);

 

https://community.tealiumiq.com/t5/JavaScript-utag-js/Page-Tracking/ta-p/15563

 

Adrian

 

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

Inflated count due to custom dimension and metric firing twice

Community Manager
Community Manager

@AS A single instance of the Google Analytics tag should be able to handle all of your tracking needs. Here are a couple things to check:

 

1. Are your data mappings scoped to views, links, or both? You can specify the mappings to only apply to view or events by selecting the Event Type, seen here:

gua-dimension-mapping.png

 

2. There is a tag configuration setting to Clear Vars, which will prevent page view data from being passed along to subsequent events.

ga-clear-vars.png

Remember to "Accept as Solution" when your question has been answered and to give kudos to helpful replies.

Inflated count due to custom dimension and metric firing twice

Gold Contributor
Gold Contributor

Thank you @TealiumJustin. Scoping data mappings to link for these dimensions did the trick.

Public