File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 35
35
< link type ="application/atom+xml " rel ="alternate " href ="{{ site.url }}/articles.xml "
36
36
title ="Current Research in Digital History - Articles Feed " />
37
37
38
+ {% if site.env == "prod" %}
39
+ <!-- Matomo -->
40
+ < script >
41
+ var _paq = window . _paq = window . _paq || [ ] ;
42
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
43
+ _paq . push ( [ 'trackPageView' ] ) ;
44
+ _paq . push ( [ 'enableLinkTracking' ] ) ;
45
+ ( function ( ) {
46
+ var u = "https://stats.rrchnm.org/" ;
47
+ _paq . push ( [ 'setTrackerUrl' , u + 'matomo.php' ] ) ;
48
+ _paq . push ( [ 'setSiteId' , '36' ] ) ;
49
+ var d = document , g = d . createElement ( 'script' ) , s = d . getElementsByTagName ( 'script' ) [ 0 ] ;
50
+ g . async = true ; g . src = u + 'matomo.js' ; s . parentNode . insertBefore ( g , s ) ;
51
+ } ) ( ) ;
52
+ </ script >
53
+ <!-- End Matomo Code -->
54
+ {% else %}
55
+ <!-- No Matomo -->
56
+ {% endif %}
38
57
</ head >
39
58
40
59
< body >
You can’t perform that action at this time.
0 commit comments