mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
#40: add Matamo Javascript call
This commit is contained in:
parent
f2fe2ac6a4
commit
495ccd3a3d
2 changed files with 51 additions and 36 deletions
70
Gemfile.lock
70
Gemfile.lock
|
@ -1,41 +1,41 @@
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actioncable (5.1.5)
|
actioncable (5.1.6)
|
||||||
actionpack (= 5.1.5)
|
actionpack (= 5.1.6)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
websocket-driver (~> 0.6.1)
|
websocket-driver (~> 0.6.1)
|
||||||
actionmailer (5.1.5)
|
actionmailer (5.1.6)
|
||||||
actionpack (= 5.1.5)
|
actionpack (= 5.1.6)
|
||||||
actionview (= 5.1.5)
|
actionview (= 5.1.6)
|
||||||
activejob (= 5.1.5)
|
activejob (= 5.1.6)
|
||||||
mail (~> 2.5, >= 2.5.4)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
actionpack (5.1.5)
|
actionpack (5.1.6)
|
||||||
actionview (= 5.1.5)
|
actionview (= 5.1.6)
|
||||||
activesupport (= 5.1.5)
|
activesupport (= 5.1.6)
|
||||||
rack (~> 2.0)
|
rack (~> 2.0)
|
||||||
rack-test (>= 0.6.3)
|
rack-test (>= 0.6.3)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||||
actionview (5.1.5)
|
actionview (5.1.6)
|
||||||
activesupport (= 5.1.5)
|
activesupport (= 5.1.6)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubi (~> 1.4)
|
erubi (~> 1.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
||||||
activejob (5.1.5)
|
activejob (5.1.6)
|
||||||
activesupport (= 5.1.5)
|
activesupport (= 5.1.6)
|
||||||
globalid (>= 0.3.6)
|
globalid (>= 0.3.6)
|
||||||
activemodel (5.1.5)
|
activemodel (5.1.6)
|
||||||
activesupport (= 5.1.5)
|
activesupport (= 5.1.6)
|
||||||
activerecord (5.1.5)
|
activerecord (5.1.6)
|
||||||
activemodel (= 5.1.5)
|
activemodel (= 5.1.6)
|
||||||
activesupport (= 5.1.5)
|
activesupport (= 5.1.6)
|
||||||
arel (~> 8.0)
|
arel (~> 8.0)
|
||||||
activesupport (5.1.5)
|
activesupport (5.1.6)
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
i18n (~> 0.7)
|
i18n (>= 0.7, < 2)
|
||||||
minitest (~> 5.1)
|
minitest (~> 5.1)
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
addressable (2.5.2)
|
addressable (2.5.2)
|
||||||
|
@ -103,7 +103,7 @@ GEM
|
||||||
globalid (0.4.1)
|
globalid (0.4.1)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
hashie (3.5.7)
|
hashie (3.5.7)
|
||||||
i18n (0.9.5)
|
i18n (1.0.0)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
jquery-rails (4.3.1)
|
jquery-rails (4.3.1)
|
||||||
rails-dom-testing (>= 1, < 3)
|
rails-dom-testing (>= 1, < 3)
|
||||||
|
@ -158,19 +158,19 @@ GEM
|
||||||
pry (>= 0.10.4)
|
pry (>= 0.10.4)
|
||||||
public_suffix (3.0.2)
|
public_suffix (3.0.2)
|
||||||
rack (2.0.4)
|
rack (2.0.4)
|
||||||
rack-test (0.8.3)
|
rack-test (1.0.0)
|
||||||
rack (>= 1.0, < 3)
|
rack (>= 1.0, < 3)
|
||||||
rails (5.1.5)
|
rails (5.1.6)
|
||||||
actioncable (= 5.1.5)
|
actioncable (= 5.1.6)
|
||||||
actionmailer (= 5.1.5)
|
actionmailer (= 5.1.6)
|
||||||
actionpack (= 5.1.5)
|
actionpack (= 5.1.6)
|
||||||
actionview (= 5.1.5)
|
actionview (= 5.1.6)
|
||||||
activejob (= 5.1.5)
|
activejob (= 5.1.6)
|
||||||
activemodel (= 5.1.5)
|
activemodel (= 5.1.6)
|
||||||
activerecord (= 5.1.5)
|
activerecord (= 5.1.6)
|
||||||
activesupport (= 5.1.5)
|
activesupport (= 5.1.6)
|
||||||
bundler (>= 1.3.0)
|
bundler (>= 1.3.0)
|
||||||
railties (= 5.1.5)
|
railties (= 5.1.6)
|
||||||
sprockets-rails (>= 2.0.0)
|
sprockets-rails (>= 2.0.0)
|
||||||
rails-controller-testing (1.0.2)
|
rails-controller-testing (1.0.2)
|
||||||
actionpack (~> 5.x, >= 5.0.1)
|
actionpack (~> 5.x, >= 5.0.1)
|
||||||
|
@ -184,9 +184,9 @@ GEM
|
||||||
rails-i18n (5.1.1)
|
rails-i18n (5.1.1)
|
||||||
i18n (>= 0.7, < 2)
|
i18n (>= 0.7, < 2)
|
||||||
railties (>= 5.0, < 6)
|
railties (>= 5.0, < 6)
|
||||||
railties (5.1.5)
|
railties (5.1.6)
|
||||||
actionpack (= 5.1.5)
|
actionpack (= 5.1.6)
|
||||||
activesupport (= 5.1.5)
|
activesupport (= 5.1.6)
|
||||||
method_source
|
method_source
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.18.1, < 2.0)
|
thor (>= 0.18.1, < 2.0)
|
||||||
|
|
|
@ -20,4 +20,19 @@ 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:
|
||||||
|
<!-- 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…
Reference in a new issue