Is there anyway to scope JQuery extensions to an specific tag?

Silver Contributor
Silver Contributor

We will be running 2 analytic tools (Adobe and Google) for a period of time. The problem is that we have some hard coded events and most of the events that are triggered through JQuery extensions. The JQuery extensions are all for Adobe. But, the problem is that to remap the hardcoded events to GA we would double fire most GA events (because the extension to remap the hardcoded events would detect the jquery extensions too -which we don't need for GA because we are sending the events in a different way).

2 REPLIES 2

Is there anyway to scope JQuery extensions to an specific tag?

Tealium Expert
Tealium Expert

@mgensollen 

THere should be a way of achieving this, however it's still not clear to me how things are working for you. 

What are the hardcoded events, utag.link or custom js event? What's the difference in implementation between the GA and AA events?

kr

Research your Experience | Improve and Evolve | Leave no one behind
- Don't forget to mark a solution as accepted if it hits the mark -

Is there anyway to scope JQuery extensions to an specific tag?

Employee Emeritus

Hi @mgensollen 

Are the jQuery extensions triggering utag.view() or utag.link() calls. If so, the easiest workaround will be to scope these calls to specific tags. The tracking calls have 3 arguments. The first one is the data that is being passed to the tags. The second is a callback function that will run once the call has finished. The last argument, and in our case the most critical one, is an array of the UIDs that should receive this data. 

 

With that being said, if you pass the UID of a tag, only the tag scoped extensions run and load rules are automatically skipped. This means that the tag with the UID specified in the function call will run regardless of its load rules and extensions scoped to all tags will not run. 

Here is an example of what the call will look like:

utag.link({data},null,[<UID of tag>])

 

Good luck!

 

Public