riveted icon indicating copy to clipboard operation
riveted copied to clipboard

Send Riveted events to several trackers at once

Open jerclarke opened this issue 7 years ago • 1 comments

Correct me if I'm wrong, but it seems that Riveted is only capable of sending data to one tracker at a time. This is a bit confusing because of how the docs for gaTracker are phrased:

gaTracker If you're using Universal Analytics and tracking multiple properties on the same page, this option lets you specify which property Riveted should send data to.

At first it sounds like Riveted supports multiple trackers, but eventually we realized that grammatically it indicates we have to choose just one tracker.

Hopefully this ticket will help anyone else who is confused by this to understand.

We had it set up for two trackers, one with gaTracker empty and one with it set to a slug. The result was that only the second one (with the slug) worked.

Assuming this is expected behavior, this ticket is to request that support for sending to multiple trackers be added to Riveted.

Main reason is that, in our case, we really want the data to match up across our different trackers, as a way to ensure our setup is sound. If we use nonInteraction=false with Riveted, then the tracker sending Riveted events will have more hits and lower bounce rate.

Thanks for considering this and for any clarification you can provide.

jerclarke avatar Oct 03 '18 17:10 jerclarke

Related: https://github.com/robflaherty/riveted/pull/15

Where it was added, looking at the code in https://github.com/robflaherty/riveted/pull/15/commits/0332149b1d0e025dc3dc74d46447926f131a915b it seems like it wouldn't be so hard to make it support multiple trackers, just need to loop through them and send for each.

jerclarke avatar Oct 03 '18 18:10 jerclarke