For example, when users click on a JavaScript link, or when they click on a tab (which triggers a JS event), or when they interact with elements of the user interface, you can still track these interactions with Matomo. However, on modern web applications, user interactions do not necessarily involve loading a new page. You can customise the page URL to track by using the function setCustomUrl, learn more in the FAQ How do I set a custom URL using the Matomo Javascript tracker? Manually trigger eventsīy default, Matomo tracks page views when the JavaScript tracking code loads and executes on each page view. You can do so simply: _paq.push() Īdvanced users can also dynamically generate the page name, for example, using PHP: _paq.push() īy default, Matomo uses the URL of the current page as the Page URL in reports. If you track multiple sub-domains in the same website, you may want your page titles to be prefixed by the sub-domain make it easy for you to see the traffic and data for each sub-domain. JavaScript tracker features Custom page titleīy default Matomo uses the title of the HTML page to track the page title, you can customise it by using the function setDocumentTitle: _paq.push() Workarounds are to either remove the prototype JS library or to overwrite the JSON object manually (see above e.g. prototype js library overwrites the browser's JSON API and causes issues for example with custom variables resulting in errors (see #16596).This polyfill would need to be loaded before the Matomo JS tracker is loaded. If you need to support IE7 and older then you could load a polyfill that makes window.JSON available such as JSON3. Click here to see a full list of supported browsers. The JavaScript tracker runs on all browsers that support the JSON API. Older versions still work as expected and will track your visitors, but we highly recommend that you update your pages to use the most recent tracking code. If your Matomo tracking code doesn't look like this one, you may be using the deprecated version. You can push to the _paq array even after the matomo.js file has been loaded and run. G.type='text/javascript' g.async=true g.src=u+'matomo.js' s.parentNode.insertBefore(g,s) Var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script') copy and paste the JavaScript tracking code into your pages, just after the opening tag (or within the section).click on "Tracking Code" in the left menu (under the "Measurables" or "Websites" menu).click on the "administration" (cog icon) in the top right menu.log in to Matomo with your admin or Super User account.To find the tracking code for your website, follow the steps below: To use all the features described in this page, you need to use the latest version of the tracking code. This guide will explain how you can use the JavaScript tracking client to customize the way some of the web analytics data is recorded in Matomo (formerly Piwik). You can use the JavaScript tracking client to track any application that supports JavaScript: for example websites!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |