mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +01:00
#40: move matomo call to head
This commit is contained in:
parent
a0f2b0cdc2
commit
d58e0091bb
1 changed files with 11 additions and 11 deletions
|
@ -6,6 +6,17 @@ html
|
||||||
= javascript_include_tag 'vendor/modernizr'
|
= javascript_include_tag 'vendor/modernizr'
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
= auto_discovery_link_tag(:rss, params.merge(format: :rss))
|
= auto_discovery_link_tag(:rss, params.merge(format: :rss))
|
||||||
|
javascript:
|
||||||
|
var _paq = _paq || [];
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="//analytics.leipzig.codefor.de/";
|
||||||
|
_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);
|
||||||
|
})();
|
||||||
|
|
||||||
body
|
body
|
||||||
.row
|
.row
|
||||||
|
@ -21,14 +32,3 @@ html
|
||||||
- flash.each do |name, msg|
|
- flash.each do |name, msg|
|
||||||
= content_tag :div, msg, class: name
|
= content_tag :div, msg, class: name
|
||||||
= yield
|
= yield
|
||||||
javascript:
|
|
||||||
var _paq = _paq || [];
|
|
||||||
_paq.push(['trackPageView']);
|
|
||||||
_paq.push(['enableLinkTracking']);
|
|
||||||
(function() {
|
|
||||||
var u="//analytics.leipzig.codefor.de/";
|
|
||||||
_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);
|
|
||||||
})();
|
|
||||||
|
|
Loading…
Reference in a new issue