Where is the Unique Identifiers in Matomo Analytics Tracking Code


<!-- 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="https://peripheralsystems.matomo.cloud/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '1']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src='https://cdn.matomo.cloud/peripheralsystems.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Matomo Code -->

Matomo code does have unique identifiers; they're just structured differently than Google Analytics.

Here are the unique identifiers in your code:

  1. setSiteId: '1' - This is your unique site identifier within the Matomo instance. This tells Matomo which website/property the analytics data belongs to.
  2. peripheralsystems.matomo.cloud - This is your unique Matomo Cloud subdomain. This is specific to your Matomo Cloud account.

So the combination of:

  • Your subdomain: peripheralsystems.matomo.cloud
  • Your site ID: 1

...is what makes this code unique to your account and website.

How it compares to Google Analytics:

  • Google Analytics: Uses a tracking ID like G-XXXXXXXXXX or UA-XXXXXXXXX-1
  • Matomo Cloud: Uses a subdomain + site ID combination

If you had multiple websites in your Matomo account, you'd use the same subdomain but different site IDs (1, 2, 3, etc.).

If you're self-hosting Matomo (not using Matomo Cloud), you'd replace yoursite.matomo.cloud with your own server URL, making it even more customized.

So yes, this code is already personalized to your account - the "peripheralsystems" subdomain is your unique identifier!