Matomo: Preventing duplicate page tracking

This documentation is part of the Getting started guide. View the full guide here: Discover how to efficiently set up and utilize Matomo for your analytics requirements..

👋 Welcome to the Stackhero documentation!

Stackhero provides a Matomo cloud solution that streamlines web analytics:

  • Unlimited websites, members, segments, goals, and data retention: track everything you need, for as long as you need it.
  • Effortless updates: keep your analytics platform current with a single click.
  • Custom domain name with HTTPS: run Matomo at a secure, branded URL, such as https://analytics.your-company.com.
  • High performance and strong security: your data runs on private, dedicated infrastructure for reliability and privacy.

With Stackhero, you can launch Matomo analytics in minutes and manage all your sites from one place. Try our Matomo cloud hosting to simplify analytics and focus on what matters.

Matomo differentiates between pages like index.html and INDEX.html. If case sensitivity is not crucial for your site, you can normalize URLs by adding the following code to your Matomo JavaScript Tracking tag:

// Add this code:
_paq.push(['setCustomUrl', location.href.toLowerCase()]);
// Just before this line:
// _paq.push(['trackPageView']);

For additional guidance, check out the official Matomo FAQ.