Highlighted

Google Universal Analytics - set sampleRate individually for each tracker

Silver Contributor
Silver Contributor

Google Universal Analytics tag allows to specify multiple trackers and for fields "Tracking ID" and "Tracker Name" allows to provide comma separated list with according values. 

Could be that possible for data mappings variables? In my case I'd like to set sampleRate individually for each tracker.

 

Thanks!

4 REPLIES 4
Highlighted

Google Universal Analytics - set sampleRate individually for each tracker

Tealium Employee
Hi @dianafa

To set different tracker settings, you need to create different instances of the GA tag, as it's currently not possible to do this with a single tag using the comma separated tracker IDs feature.

I hope this makes sense.

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.
Highlighted

Google Universal Analytics - set sampleRate individually for each tracker

Silver Contributor
Silver Contributor

Hmm, that's sad because I don't want to load analytics.js script once more just to change one variable.

Is there a tag that doesn't load analytics.js script and does only tracker init?

Highlighted

Google Universal Analytics - set sampleRate individually for each tracker

Tealium Employee
Analytics.js will load from cache for the second tag, so it will not cause any delay at all on the page. However, I will log a request internally to have the tag only load analytics.js if it hasn't already been requested. This should be possible to do.

Thanks

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.
Highlighted

Google Universal Analytics - set sampleRate individually for each tracker

Silver Contributor
Silver Contributor

Thank you, @craig_rouse!