@dindu-nuffin opened this Issue on July 2nd 2018

I have a locally installed Matomo analytics server.
My "Trusted Matomo Hostname" settings is
#screenshot

I created website and added it to matomo for the test purposes
#screenshot

Then I added javascript tracking code on all pages of test website
My "JavaScript Tracking" settings
#screenshot
and tracking code

<!-- Matomo -->
<script type="text/javascript">
  var _paq = _paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//matomo.localhost:666/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', '3']);
    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+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Matomo Code -->

I visit website by hostname "matomo-test.localhost" from the same machine or by ip "192.168.7.141:156" address from another machine.
In developer tools I can see that piwik.js is loaded and sending statistics
#screenshot

But in the dashboard I cannot see any visits.
#screenshot

What am I doing wrong?

@fdellwing commented on July 2nd 2018 Contributor

In the dev tools there have to be calls to piwik.php or it is not setup properly.

@dindu-nuffin commented on July 2nd 2018
@fdellwing commented on July 2nd 2018 Contributor

Ok, I do see a DNT header being sent. Matomo will, with default settings, respect that header and don't track anything. You can, however change this behaviour under Settings -> Privacy -> Users opt-out.

@dindu-nuffin commented on July 2nd 2018

@fdellwing thanks! I understood what the problem is.

@Findus23 commented on July 2nd 2018 Member

@dindu-nuffin If you have more questions about Matomo in the future, please ask them on the forum.

This Issue was closed on July 2nd 2018
Powered by GitHub Issue Mirror