Skip to content

wrong JS tracking code #303

@nicolas-roche

Description

@nicolas-roche

Hello,

I cannot figure why matomo gives me a wrong URL (using matomo.php instead of piwik.php) into the Javascript tracker it provides to me (via the IHM and the web service).

This append on upgraded VM (from piwik) on both 3.8.1 and 3.9.1 versions.
On a new 3.9.1 instance, I get the same error from the IHM but I get a correct JS from web services.

Could you help me, I guess I miss something in the configuration ?
Thanks.

<!-- Matomo -->
<script type="text/javascript">
  var _paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//matomo-test.example.org/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '27']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Matomo Code -->

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions