Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wrtz008 opened this issue Nov 26, 2024 · 8 comments
Open

Comments

@wrtz008
Copy link

wrtz008 commented Nov 26, 2024

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

  • Matomo version: 5.1.2
  • MySQL version: 10.6.20-MariaDB-ubu2204
  • PHP version: 8.3.14
  • Ubuntu 22.04

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
Copy link

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

@arnvctslpsdoo
Copy link

Yep, same issue on my end as well :|

@navirados
Copy link

Same issue happening on my side too.

@siioiool
Copy link

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
Copy link

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

@algbthris
Copy link

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

@wrtz008
Copy link
Author

wrtz008 commented Nov 26, 2024

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.

@wrtz008
Copy link
Author

wrtz008 commented Nov 26, 2024

Update on this issue:

  • i've deleted tracked-domain-2.com completely from Matomo dashboard
  • then re-added it
  • then re-added settings for Proxy Tracker
  • created a new JS from Matomo
  • used the new JS (that has the new Token for Proxy Tracker) and embedded it in the pages on tracked-domain-2.com

and .. voila, it is not showing the tracked-domain-1.com stats inside the tracked-domain-2.com Matomo visitor log.

I've then run the crontab again and seems it is only showing visitors for tracked-domain-2.com.
I'll keep checking in the next few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants