Do you find all information about us and our services?
Extensions by Category
📡 5. JavaScript Tracking Configuration
This section covers the configuration of the client-side JavaScript tracker for the JaJuMa Matomo Analytics extension, which is responsible for collecting pageview data and other user interactions directly from the user's browser.
Navigate to JaJuMa -> Matomo Analytics -> Configuration
and expand the Javascript Tracking section.
🔑 5.1 General
Enable Matomo Analytics JS Tracker
- Yes (Default): Enables the standard JavaScript pageview tracking.
- No: Disables the standard JavaScript pageview tracking.
Load JS Tracker after user interaction
- Yes (Recommended): The Matomo tracking script will only be loaded and executed after the first user interaction on the page (e.g., a click, scroll, or keypress).
- No: The Matomo tracking script will be loaded immediately as the page builds.
Why this is the most important performance setting:
Google uses a set of metrics called Core Web Vitals (CWV) to measure user experience, and these metrics are a direct ranking factor in search results. A primary cause of poor CWV scores is "render-blocking JavaScript," where the browser must download and run a script before it can display the page's main content.
By setting this option to Yes, you defer the Matomo script, removing it from the initial page rendering path.
This directly improves two key metrics:
- Largest Contentful Paint (LCP):
The page's main content can render faster because it's not waiting for the analytics script. - Total Blocking Time (TBT):
The page becomes interactive sooner because the main thread is not blocked by script execution.
This results in a faster-feeling website for your users and can positively impact your SEO.
Track One Domain + Subdomains in One Website
- Yes: Tracks visitors across your main domain and all subdomains as a single, continuous journey.
- No (Default): Treats visits to different subdomains
(e.g.,shop.yourdomain.comandblog.yourdomain.com) as separate visits from different users.
If you select Yes, you must also configure the Cookie Domain.
- Cookie Domain: To track users across all subdomains, set this to
*.yourdomain.com(replaceyourdomain.comwith your actual domain).
Enable Heartbeat
- Yes: Sends a "ping" to Matomo periodically to accurately measure the time spent on the last page of a visit.
- No (Default): Heartbeat is disabled.
By default, analytics tools cannot know how long a user spent on the last page they visited because there is no subsequent page load to create a timestamp. The heartbeat solves this problem.
- Heartbeat Interval: Set the frequency of the ping in seconds (e.g.,
30). A ping is only sent if the browser tab is active.
Track Users with JS disabled
- Yes: Adds a small, invisible 1x1 pixel image (
<noscript>tag) to the page. This allows for basic tracking of visitors who have JavaScript disabled in their browsers. - No (Default): No tracking pixel is added.
📞 Need Help?
Still have questions or need help with your configuration? Our expert team is here to assist. Please don't hesitate to contact our support team for personalized assistance.
Ready to unlock these features for your store?
The JaJuMa Matomo Analytics is the all-in-one solution for privacy-focused, performance-friendly analytics in your Magento store.
Find all you need to know and more valuable insights about Hyvä and Magento.
Expertly curated by JaJuMa:
Your central resource for everything Hyvä.
Your central resource for everything Magento.