]> git.evergreen-ils.org Git - Evergreen.git/blob - docs/RELEASE_NOTES_NEXT/Administration/lp1517298_matomo.adoc
LP1517298: Matomo Support with library org settings
[Evergreen.git] / docs / RELEASE_NOTES_NEXT / Administration / lp1517298_matomo.adoc
1 Matomo Support
2 ^^^^^^^^^^^^^^
3 Support for the open source web analytics platform Matomo is now 
4 native to Evergreen. Support is on an org unit level so different 
5 libraries can have separate or no analytics. Once you setup 
6 a Matomo service you will need the URL and site ID. Typically 
7 Matomo will give you a block of javascript you can insert into 
8 web sites. One line will look like :
9
10 var u="http://mylibrary.lib/matomo/";
11
12 The full URL in the double quotes will be your URL.  Another line 
13 will look like:  
14
15 _paq.push(['setSiteId', '1']);
16
17 In this case the number 1 will be your site ID.  
18
19 These are set by YOAUSes opac.analytics.matomo_url and 
20 opac.analytics.matomo_id respectively. There is also a boolean 
21 setting called opac.analytics.use_matomo which determines if 
22 it is used at all. Three new permsisions control access to 
23 these: 
24
25 UPDATE_ORG_UNIT_SETTING.opac.analytics.matomo_id
26 UPDATE_ORG_UNIT_SETTING.opac.analytics.matomo_url
27 UPDATE_ORG_UNIT_SETTING.opac.analytics.use_matomo
28