Hello. I am seeing some strange behavior in my site, which I recently moved to Matomo. It seems as if a single user (i.e. the same IP, computer, etc) has a visit, two pages are seein within seconds, and it is split to two visits in Matomo.

I asked Matomo's support, they say they cannot support this because its from the plugin. So I'm trying here...

Anyone else seeing this?

here's my code, seems to be fine, but maybe some error in the implementation?

var _paq = _paq || [];(function(){var u=(("https:" == document.location.protocol) ? "https://MYCLOUDADDRESS/" : "http://MYCLOUDADDRESS/");_paq.push(["setSiteId", "9"]);_paq.push(["setTrackerUrl", u+"matomo.php"]);_paq.push(["setDoNotTrack", 1]);if (!window.matomo_search_results_active) {_paq.push(["trackPageView"]);}_paq.push(["setIgnoreClasses", ["no-tracking","colorbox"]]);_paq.push(["enableLinkTracking"]);var d=document,g=d.createElement("script"),s=d.getElementsByTagName("script")[0];g.type="text/javascript";g.defer=true;g.async=true;g.src=u+"matomo.js";s.parentNode.insertBefore(g,s);})();

Ron

Issue fork matomo-3310599

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mertero created an issue. See original summary.

grimreaper’s picture

Title: Code splits a single session into sevearl Matomo visits? » Code splits a single session into several Matomo visits?
Category: Bug report » Support request

lachlan.reynolds@innocraft.com made their first commit to this issue’s fork.