Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] Matomo Analytics getting started #13127

Closed
dindu-nuffin opened this issue Jul 2, 2018 · 5 comments
Closed

[question] Matomo Analytics getting started #13127

dindu-nuffin opened this issue Jul 2, 2018 · 5 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@dindu-nuffin
Copy link

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
Copy link
Contributor

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

@dindu-nuffin
Copy link
Author

@fdellwing
Copy link
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
Copy link
Author

@fdellwing thanks! I understood what the problem is.

@Findus23 Findus23 added the answered For when a question was asked and we referred to forum or answered it. label Jul 2, 2018
@Findus23
Copy link
Member

Findus23 commented Jul 2, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants