- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
08-17-2020 07:33 AM
If we have two GA tags and the requirement is to send a collect event to one specific GA tag using utag.link() method (javascript extension). what will be the syntax?
Note: The mapped variables names (event category, event action, and event label) are same in the both GA tags. How to differentiate using utag.link syntax or any other extension.
Solved! Go to Solution.
09-08-2020 06:46 AM
Hi @kunal_s ,
You could use the syntax of utag.link(data_object, callback, [uid_array]); You can reference the tag specific uid in [uid_array] for firing the particular GA tag.
Reference to the link:
https://docs.tealium.com/platforms/javascript/api/tracking-functions/#utag-link
Example:
considering your Tag id as 12,
utag.link({....} , [12]);
Thanks
09-09-2020 12:49 PM
An alternative solution, though the previous repliers is ideal and if you don't have dev resources, would be to use load rules based on the the values you are passing. So only allow the GA tag to fire if the utag.link() call has specific variable values for each of your GA tag.
10-07-2020 04:57 AM
Copyright All Rights Reserved © 2008-2023