Adding two UA trackers on same page

Silver Contributor
Silver Contributor

We use both Webtrends(WT) and GUA. WT can capture UTM vars just fine, but we want to capture the gclid data as well. The problem is that if we use both the gclid and UTM vars in the same querystring, our GUA data is prone to discrepencies like duplicate data. What I want to do is this:


Profile UA-xxxxxx-1
Set tealium up so that if a gclid parameter comes through with UTM parameters, knock out the gclid so it doesn’t hit this GUA profile

Profile UA-xxxxxx-2
Set tealium up so that if a gclid parameter comes through with UTM parameters, knock out all the UTM variables so only the gclid data comes into the account.

And for both, if only gclid OR UTM parameters are there, allow it.
-----------------------------------------------------
We have already setup our tealium account to handle some quite complicated things and we simply want to duplicate all this functionality into another UA code... how do I do this?

2 REPLIES 2

Adding two UA trackers on same page

Moderator
Moderator

Hi Nicholas,

You would need to create a virtual url inside a new datasource and map it to "page" in the GUA tag.

You could have 1 extension for each tag, each with the inverse logic of the other to knock out either gclid or the utm params.

This can only really be done by writing javascript code, as it's pretty complex.

You could also configure GA to ignore the parameters completely, and then set up individual mappings between the utm/gclid parameters and the GA tags in Tealium. If I understand the GA documentation correctly, this would effectively prevent Google from auto-detecting the campaign parameters, and allow you to set them manually. You should test this before taking my advice though, because I haven't tried it myself.

Hope this helps.

Craig.

Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.

Adding two UA trackers on same page

Silver Contributor
Silver Contributor

I looked at the documentation too, and even with the admin setting that would set manual params as primary, the real challenge with allowing both UTM and GCLID to pass on the same string would be that our doubleclick data, with this admin setting, would be knocked out entirely.

Also, I don't want them to be exclusive and kick out if only a UTM or GCLID comes through.

Something like this might work:

if ((utmParam&&gclidParam = defined)&&(uaCode=ua-xxx-1)) {knock out gclidParam

}elseif{

if ((utmParam&&gclidParam = defined)&&(uaCode=ua-xxx-2)) {knock out all utmParams
}

n'est pas?

I just don't know where to apply that logic.

I've contacted my account rep and we may have to have your team develop a solution for us.

Public