Skip to content
MENUMENU
  • Why Matomo?
    • Flexibility
    • Privacy Protection
    • Product Features
    • Open Source
    • No Data Sampling
    • GDPR
    • Google Analytics Alternative
    • 100% Data Ownership
  • Use Cases
    • No Limitations
    • Intranet Analytics
    • Cookieless Tracking
    • Tracking Personal Data
    • Complete Analytics
    • Log Analytics
  • On-Premise
    • Matomo On-Premise
    • On-Premise vs Cloud
    • Download for free
    • Marketplace
    • Support Plans
  • Pricing
  • Live Demo
  • Resources
    • Blog
    • Help
    • Integrations
    • Contact the Matomo team
    • List of all features
    • Get involved
  • Log in >TRY IT FOR FREE
  • Home
  • Help
  • Tracking data
  • JavaScript tracking

JavaScript tracking - How to

Setup Matomo to track multiple websites without revealing the Matomo server URL footprint which appears in the Javascript code in all websitesSet a custom URL using the Matomo Javascript trackerSet a custom page title using the Matomo javascript titleCreate new visit whenever a user visits my website using a new campaign or a new website referrerTell Matomo to track Unique Visitors based on the Visitor ID cookie, instead of using IP AddressCreate new visit on demand, so that several users using the same computer or browser are counted separatelyGet the time elapsed between two actions or two events in the same visit or even across multiple visitsTrack a website within an iframeEnable third party tracking cookies, as well as the existing first party cookiesTrack Page Scrolls or Page Scroll Depth in MatomoEnable Secure cookie flags in all tracking cookiesRemove the tracked domain or hostname from all page URLs

Support

  • Knowledge Base
  • Changelog
  • Glossary
  • Forums
  • Developers
  • Issue tracker
  • By industry
  • Contact support
  • Campaign URL builder

News

  • Blog
  • Newsletter
  • Matomo in the press

Compare

  • Google Analytics vs Matomo
  • Hotjar vs Matomo
  • WP-Statistics vs Matomo

About us

  • About Matomo
  • Contact us
  • Press
  • Contributors
  • Careers
  • History
  • Download Matomo
  • GitHub
  • Piwik is now Matomo
  • Open source

Privacy

  • Data ownership
  • GDPR
  • Security
  • Privacy policy
© 2022 matomo.org

Sign up for our newsletter

We are constantly adding new features and content to the leading All-In-One Analytics Platform that gives you control over your data. If you want to stay up to date with everything that is happening, feel free to subscribe below. You can unsubscribe at any time from it. The newsletter service uses MadMimi. Learn more about it within our privacy Policy page.


no thanks

{"cookieName":"wBounce","isAggressive":false,"isSitewide":true,"hesitation":"500","openAnimation":false,"exitAnimation":false,"timer":"","sensitivity":"","cookieExpire":"60","cookieDomain":"","autoFire":"","isAnalyticsEnabled":false}