# Same page, two different Site IDs

**URL:** <https://community.piwik.pro/t/same-page-two-different-site-ids/2189>\
**Category:** Data collection and tags\
**Created:** [May 10, 2023, 3:48pm UTC](https://community.piwik.pro/t/same-page-two-different-site-ids/2189 "2023-05-10T15:48:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Jack](https://community.piwik.pro/u/Jack)\
**Post date:** [May 10, 2023, 3:48pm UTC](https://community.piwik.pro/t/same-page-two-different-site-ids/2189/1 "2023-05-10T15:48:04Z")

</div>

Hi,

we’re trying to implement two different site IDs in the same page ([www.example.com/page](http://www.example.com/page)) but debugging the implementation we have a weird behavior.

- Sometimes we have two hits with two different idsite, one hit for site 1 id and one hit for site 2 id (correct!)
- Sometimes we have two hits with the site 1 id (not correct!)
- Sometimes we have two hits with the site 2 id (not correct!).

Is it normal? Is not a best practice to track the same page (or the same section, or the same website) with two different site ids?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![Oliwer\_Kaczmarek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/oliwer_kaczmarek/32/3888_2.png) [@Oliwer\_Kaczmarek](https://community.piwik.pro/u/Oliwer_Kaczmarek)\
**Post date:** [May 11, 2023, 4:39am UTC](https://community.piwik.pro/t/same-page-two-different-site-ids/2189/2 "2023-05-11T04:39:19Z")

</div>

Hi @Jack,

What do you mean exactly by two site IDs? Do you have two containers for two different sites on one the same page?

Best,  
Oliwer

---

<div class="post-metadata">

**Author:** ![Jack](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Jack](https://community.piwik.pro/u/Jack)\
**Post date:** [May 11, 2023, 7:18am UTC](https://community.piwik.pro/t/same-page-two-different-site-ids/2189/3 "2023-05-11T07:18:32Z")

</div>

Hi Oliwer,

thank you for the answer, i mean this one: [Where can I find my site or app ID? | Piwik PRO help center](https://help.piwik.pro/support/questions/find-website-id/)

 ![piwik_idsite](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/3/3996a76e8a463162b985ccbb994bb211f780f540.png)

So, basically yes, two different “Piwik sites” in the same page.

Thanks again,  
J

---

<div class="post-metadata">

**Author:** ![Oliwer\_Kaczmarek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/oliwer_kaczmarek/32/3888_2.png) [@Oliwer\_Kaczmarek](https://community.piwik.pro/u/Oliwer_Kaczmarek)\
**Post date:** [May 11, 2023, 8:05am UTC](https://community.piwik.pro/t/same-page-two-different-site-ids/2189/4 "2023-05-11T08:05:06Z")

</div>

Could you please check if there are any errors in console related to Piwik PRO on page loading?

---

<div class="post-metadata">

**Author:** ![Jack](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Jack](https://community.piwik.pro/u/Jack)\
**Post date:** [May 11, 2023, 12:10pm UTC](https://community.piwik.pro/t/same-page-two-different-site-ids/2189/5 "2023-05-11T12:10:52Z")

</div>

Hi Oliwer,

you are right! We have

**“The method setDomains is registered more than once in “\_paq” variable. Only the last call has an effect. Please have a look at the multiple Piwik trackers documentation”**

but also

**Matomo javascript tracker or Piwik PRO javascript tracker was already initiated on this page. Please check the tracker setup. Matomo conflict can be resolved using these instructions: [Can I use Piwik PRO and Matomo at the same time? | Piwik PRO help center](https://help.piwik.pro/support/questions/can-i-use-piwik-pro-and-matomo-at-the-same-time/)**

We will check it better 🙂  
Thanks!
