matomo-org / tracker-proxy

HTTP proxy for Matomo's tracker API. This script allows to track websites with Matomo without revealing to your visitors the secret Matomo server URL.
http://matomo.org/faq/how-to/faq_132/
GNU General Public License v3.0
152 stars 46 forks source link

Extra website showing in Matomo dashboard in addition to the tracked one #88

Open wrtz008 opened 4 hours ago

wrtz008 commented 4 hours ago

I am using Proxy Tracker with latest Matomo, here are the specs:

on a specific domain used for tracking matomo-server.com.

I am using this matomo-server.com to track multiple websites: tracked-domain-1.com and tracked-domain-2.com, by adding the matomo folder in the sites and using also the Token for the UserTrackingAPI.

Each of the tracked-domain-1.com and tracked-domain-2.com have the JS code added that looks like this:

<!-- Matomo -->
<script>
  var _paq = window._paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//tracked-domain-2.com/matomo/";
    _paq.push(["setTrackerUrl", u+"matomo.php"]);
    _paq.push(["setSiteId", "hashed-value-here"]);
    var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0];
    g.type="text/javascript"; g.async=true; g.defer=true; g.src=u+"matomo.php"; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->

The tracked-domain-1.com is the first website I've setup on matomo-server.com and the primary domain.

The issue I have now is that inside Matomo's dashboard for tracked-domain-2.com, I am seeing clicks and URLs from tracked-domain-1.com:

matomo proxy tracker

Any idea what what's the issue and solution here? Is there any way I can troubleshoot this to find what's causing this?

It's confusing to see 2 sites in the same dashboard : \

Thank you!

jkdn0921s commented 4 hours ago

I'm having the same problem here - glad it's not just me!

arnvctslpsdoo commented 4 hours ago

Yep, same issue on my end as well :|

navirados commented 4 hours ago

Same issue happening on my side too.

siioiool commented 4 hours ago

I can confirm this issue on my Proxy Tracker setup as well. I'd note that i can see the issue on the tracked-domain-2.com but not on tracked-domain-1.com Matomo dashboard.

earthyowll commented 4 hours ago

Experiencing the same glitch. Looks like it's not isolated.

algbthris commented 4 hours ago

I’m hitting this issue too. Any suggestions for a fix?

wrtz008 commented 4 hours ago

I can confirm this issue on my Proxy Tracker setup as well. I'd note that i can see the issue on the tracked-domain-2.com but not on tracked-domain-1.com Matomo dashboard.

Yes same for me, seeing it only on the tracked-domain-2.com Matomo dashboard.