Page MenuHomePhabricator

Measure how many unique people visit the Timeline
Closed, ResolvedPublic1 Estimated Story Points

Description

  1. Get a Matomo Code from Analytics
  2. Add code to the timeline (might need to update webpack configuration)

Event Timeline

@Nuria Could you create a new project/account for the InteractionTimeline ? If you send me the JS code I should be able to integrate it without a problem.

@dbarratt Nuria's on vacation this week, here's your piwik snippet, you're site 14! :)

<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(["setDomains", ["*.tools.wmflabs.org/interaction-timeline"]]);
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//piwik.wikimedia.org/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', '14']);
    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>
<noscript><p><img src="//piwik.wikimedia.org/piwik.php?idsite=14" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
dbarratt set the point value for this task to 1.

@dbarratt I made the site stats viewable to anonymous users (you still have to login with your ldap account when you visit piwik.wikimedia.org, but don't need to log in to piwik itself. Let me know if that's good, and if you need to actually administer the settings, I can make you a user and send you the password.

@Milimetric Thanks!

@TBolliger If I did this correctly, stats should start showing up in https://piwik.wikimedia.org/index.php?module=CoreHome&action=index&date=yesterday&period=day&idSite=14
if they don't start coming in then I probs did something wrong. :)

Does this not capture Firefox users?

Does this not capture Firefox users?

Piwik itself doesn't discriminate, but it could be that adblock software blocks the tracking, yes.

Oh, and piwik should be set up to respect DNT, so maybe Firefox has that turned on by default now?

It might, and I also have an adblocker... it's OK, we're not using these metrics to hit super strict KPIs.

Oh, and piwik should be set up to respect DNT,

It is set, yes.

so maybe Firefox has that turned on by default now?

No, it is not turned on by default per mozilla's policy:
https://blog.mozilla.org/netpolicy/2011/11/09/dnt-cannot-be-default/
Also dnt adoption as of mozilla latest report was 11% thus FF data should be coming through. The number of users per day seems quite small (~5 daily) on this tool, so that is why you are probably not seeing a broad browser profile.

@dbarratt Yes, data is in piwik for the last couple of days