Skip to content
MENUMENU
  • Why Matomo?
    • 100% Data Ownership
    • Privacy Protection
    • Product Features
    • Open Source
    • Flexibility
    • No Data Sampling
    • GDPR
    • Google Analytics Alternative
  • Use Cases
    • Complete Analytics
    • Intranet Analytics
    • Consent-Free Tracking
    • Tracking Personal Data
    • Marketing Attribution
    • No Limitations
    • Log Analytics
  • Cloud
  • On-Premise
    • Matomo On-Premise
    • On-Premise vs Cloud
    • Download for free
    • Marketplace
    • Support Plans
  • Pricing
    • Pricing
    • Contact Sales
  • Resources
    • NEW! 2025 Ethical Marketing Field Guide
    • Help
    • Blog
    • Guides
    • Masterclasses
    • Case Studies
    • Integrations
    • Contact the Matomo team
    • List of all features
    • Get involved
  • Log inHelpTRY 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 a new visit when 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 visitsEnable third party tracking cookies, as well as the existing first party cookiesTrack a website within an iframeTrack Page Scrolls or Page Scroll Depth in MatomoEnable Secure cookie flags in all tracking cookiesRemove the tracked domain or hostname from all page URLsEnable file:// protocol trackingFormat CSS Class Selectors for Matomo Tracking

Company

  • About Matomo
  • History
  • Contributors
  • Hiring
  • Contact Us
  • Partner Programme

Support

  • Help Centre
  • Developers
  • Contact support

Sales

  • Contact Sales
  • Plans & Pricing

Product

  • Tag Manager
  • WordPress Plugin
  • URL Campaign Builder
  • Integrations
  • Open Source
  • Download Matomo
  • Changelog
  • Issue Tracker
  • GitHub
  • Feedback Panel
  • BigQuery & Data Warehouse Export

Privacy

  • Cookie Notice
  • Data ownership
  • GDPR
  • Security
  • Matomo Cloud Privacy Policy
  • Website Privacy Policy

Resources

  • Blog
  • Case Studies
  • Newsletter
  • Guides
  • Masterclasses
  • Matomo in the Press
  • Press Enquiries
  • GDPR Timeline
  • How to Check Website Traffic

Comparisons

  • vs Google Analytics
  • vs Amplitude
  • vs Adobe Analytics vs Google Analytics
  • vs Piwik PRO
  • vs Firebase
  • vs Plausible
  • vs Fathom
  • vs Hotjar
  • vs WP-Statistics
  • Top Web Analytics Tools

Industries

  • BanksĀ 
  • EnterpriseĀ 
  • Financial InstitutionsĀ 
  • Fintech
© 2025 matomo.org