Skip to content

[infra,devops] How to add the 'matomo tracking id'

Ingi Erli edited this page Apr 16, 2020 · 9 revisions

The Matomo Software

https://matomo.org/

Matomo tracking-id

the javascript-snippet should go into the birdrecoveries/ui.R

  1. fetch the tracking-id and javascript.snippet from matomo.
  2. paste the snippet into the file matomo.html
  3. place the matomo.html-file into the dir inst/shiny-apps/birdrecoveries (side-by-side with ui.R)
  4. edit the ui.R code, paste tags$head(includeHTML(("matomo.html"))) into the 'dashboardBody'

Geolocation

Q&A in the Matomo-forum

 Lukas (Lukas Winkler) April 16, 2020, 9:50am #2

Hi,

As long as you have not set up GeoIP, Matomo can only guess the location and therefore maps the language of the browser roughly to a country.

So you have to go to the System->Geolocation settings on the admin page and set up which geolocation database should be downloaded. The default is the DB-IP and while it is a bit imprecise, it it free and licenced und a creative commons license.

You can also use the free maxmind db, but for this you need to sign up and agree to their strict license terms.

Geolocate

https://matomo.org/docs/geo-locate/

  1. vänstermenyn
  2. geolocation

Svar i matmo-forum 2020-04-16 ::

Maxmind put the free databases behind a login and another license starting this year:

https://dev.maxmind.com/geoip/geoip2/geolite2/

Here are the license agreements:
https://www.maxmind.com/en/geolite2/eula 

se även här (frågan ställd i matomo-forum 2020-04-16) :

https://archive.org/details/screenshot20200416geolocationadministrationmatomo

Geolocate, suggestion from Lukas Winkler

Follow this advice

Matomo Admin

and then :

mark the correct radiobutton