Skip to content

Change subfolder matomo for final Matomo JS code #96

@wrtz008

Description

@wrtz008

Hi
Is it possible to give it a different name to the subfolder "/matomo/" when cloning the git and as such in final JS code have a different subfolder name?

i.e. instead of //trackedsite.com/matomo/ to have //trackedsite.com/xyz/

Will this interfere with how the tracker proxy works?

<!-- Matomo -->
<script>
  var _paq = window._paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//trackedsite.com/xyz/";
    _paq.push(["setTrackerUrl", u+"matomo.php"]);
    _paq.push(["setSiteId", "site_ID_here"]);
    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.php"; 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