mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
#40: add Matamo Javascript call
This commit is contained in:
parent
f2fe2ac6a4
commit
495ccd3a3d
2 changed files with 51 additions and 36 deletions
|
@ -20,4 +20,19 @@ html
|
|||
- flash.each do |name, msg|
|
||||
= content_tag :div, msg, class: name
|
||||
= yield
|
||||
|
||||
javascript:
|
||||
<!-- 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="//localhost:8085/";
|
||||
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
||||
_paq.push(['setSiteId', '1']);
|
||||
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 -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue