Skip to main content
trench999
Level 4
Oct 16, 2015 2:30 AM UTC
Solved

DTM GA events for second tracker object

We run two property IDs on our pages (global and local).  The local one is set via:

var _gaq = _gaq || []; _gaq.push(["siteTracker._setAccount", "UA-XXXXXX-YY"]); _gaq.push(["siteTracker._setAllowLinker", true]); _gaq.push(["siteTracker._setDomainName", ".domain.con"]); _gaq.push(["siteTracker._trackPageview"]);

We are trying to add event rules to send to siteTracker instead of the default tracker.  How do we do this in AEM?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ParitMittal
ParitMittalAccepted solution
Level 10
Dec 21, 2015 11:06 AM UTC

Hi Trench,

Thanks for reaching out to Adobe Activation-Dynamic Tag Management Forum. We offer sincere apology for the delay in response.

For the scenario discussed above, It would be required to set the Event tracking for Google Analytics in "Javascript/ Thirdparty Tags" such that the event rules to send to siteTracker instead of the default tracker. Please use the below code to achieve the same.

ga('siteTracker.send', 'event', 'link', 'click', 'http://example.com', {
  nonInteraction: true
});

// Sends an event hit for the tracker named "SiteTracker" with the hit type as "event" 
// following category, action, and label, and sets the nonInteraction
// field value to true.

Please let us know if you have any questions or queries.

Thanks & Regards

Parit Mittal

2 replies

trench999
trench999Author
Level 4
Oct 16, 2015 2:30 AM UTC

So, the simple question is how to set the tracker object name for any event rule for Google Analytics

Translate
ParitMittal
ParitMittalAccepted solution
Level 10
Dec 21, 2015 11:06 AM UTC

Hi Trench,

Thanks for reaching out to Adobe Activation-Dynamic Tag Management Forum. We offer sincere apology for the delay in response.

For the scenario discussed above, It would be required to set the Event tracking for Google Analytics in "Javascript/ Thirdparty Tags" such that the event rules to send to siteTracker instead of the default tracker. Please use the below code to achieve the same.

ga('siteTracker.send', 'event', 'link', 'click', 'http://example.com', {
  nonInteraction: true
});

// Sends an event hit for the tracker named "SiteTracker" with the hit type as "event" 
// following category, action, and label, and sets the nonInteraction
// field value to true.

Please let us know if you have any questions or queries.

Thanks & Regards

Parit Mittal

Translate