Marek Brzeziński
Marek Brzeziński

Reputation: 345

Does Google analitycs allow to add custom track id to event?

In my Javascript code i have got function to track custom event:

ga('send', 'event', 'Open track', 'test');

Now, is there a way, to add another track id, so when this custom event track fires, i can send this data to for example:

UA-434341791-2 ?

Thank You for advice.

Upvotes: 1

Views: 32

Answers (1)

BobbyTables
BobbyTables

Reputation: 4685

Maybe you could use the event value for this? (its an integer)

https://developers.google.com/analytics/devguides/collection/analyticsjs/events

ga('send', {
  'hitType': 'event',          // Required.
  'eventCategory': 'Open track',   // Required.
  'eventAction': 'click',      // Required.
  'eventLabel': 'test',
  'eventValue': 4343417912
});

Upvotes: 1

Related Questions