Commit d299eee
committed
Add static Matomo integration to theme
** Why are these changes being introduced:
* We want to receive web traffic reports about users to our digital
exhibits platforms, and have defined a site profile within Matomo for
this purpose.
** Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/post-36
** How does this address that need:
* This creates a separate javascript file in the theme, matomo.js, which
has the needed JS calls to our Matomo instance. I'm hard-coding the
property ID within this partial because there is no need for different
sites to use different profiles.
** Document any side effects to this change:
* This approach means that changes to our Matomo setup will require code
changes to the theme, and also - as far as this change goes - means
that sites which don't use our theme will not be included in our
analytics. Ultimately this integration should probably be handled at
the module level, but for now we've just got a theme to deal with.1 parent e44cf65 commit d299eee
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
0 commit comments