Track pages into multiple site-ids

I want to achieve the following:

  • Site-ID 1 tracks the pages of the whole domain.
  • Site-ID 2 tracks some subpages of section A of the domain.
  • Users of Group A can see only the tracking of the section A subpages.
  • Other Users can see the tracking of the whole domain (including section A).

Now my question:
In order to achive this I want to place the following tracking code on all pages
of the whole domain except those on section A:

 _paq.push(['setSiteId', '1']);

to put the analytics into site-id 1.

And on section A this tracking code:

 _paq.push(['setSiteId', '1']);
 _paq.push(['setSiteId', '2']);

to put the analytics into site-id 2 AND site-id 1.

Is this possible or would the tracking code for section A in the end only track the code
into site-id 2?

Thanks for your thoughts about that.


:bulb:UPDATE 2018/02/09:
I think this could solve the issue. :slight_smile:

1 Like