Page MenuHomePhabricator

Add site to piwik.wikimedia.org for Event Metrics so we can measure traffic to tool
Closed, ResolvedPublic1 Estimated Story Points

Description

Event Timeline

fdans triaged this task as Medium priority.Jan 14 2019, 5:04 PM
fdans moved this task from Incoming to Ops Week on the Analytics board.
This comment was removed by Nuria.

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="//piwik.wikimedia.org/";
  _paq.push(['setTrackerUrl', u+'piwik.php']);
  _paq.push(['setSiteId', '19']);
  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 -->

@MusikAnimal you just need to add above beacon to all your pages in grant metrics site. This will send data to our piwik matomo instance in prod.

It will give you access to a dashboard like (example is actually wikistats dashboard):

Screen Shot 2019-01-14 at 9.34.58 AM.png (1×2 px, 411 KB)

Geographical location is based on user's language so actually not very accurate but better than nothing.

Nuria set the point value for this task to 1.
Nuria moved this task from Next Up to Ready to Deploy on the Analytics-Kanban board.
MusikAnimal renamed this task from Add site to piwik,wikimedia.org for grant metrics so we can measure traffic to tool to Add site to piwik,wikimedia.org for Event Metrics so we can measure traffic to tool.Jan 14 2019, 9:42 PM

Thanks for creating this task, and getting this set up for us! I will get Event Metrics updated shortly.

Ok, let me know when you do and we can verify there is traffic coming in.

Reedy renamed this task from Add site to piwik,wikimedia.org for Event Metrics so we can measure traffic to tool to Add site to piwik,.ikimedia.org for Event Metrics so we can measure traffic to tool.Jan 14 2019, 10:00 PM
MusikAnimal renamed this task from Add site to piwik,.ikimedia.org for Event Metrics so we can measure traffic to tool to Add site to piwik.wikimedia.org for Event Metrics so we can measure traffic to tool.Jan 14 2019, 10:04 PM
MusikAnimal moved this task from Ready to In Development on the Community-Tech-Sprint board.

Code is merged, but not yet deployed. I'm going to leave this in our "In Development" column until we verify it's working.

@Nuria We have deployed to production. I can see in the network log that requests are being made to piwik.wikimedia.org. How shall we proceed? :)

Nuria added a subscriber: jmatazzoni.

Confirmed with @MusikAnimal that he can see usage dashboard cc @jmatazzoni Closing ticket