betterplace-content 0.7.18 → 0.7.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/cookie_banner.html +28 -0
- data/_layouts/default.html +5 -10
- metadata +4 -5
- data/_includes/google_analytics.html +0 -63
- data/_includes/hotjar.html +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfd40f5b569afd19e44d0ed33250c6f538ba5753c36a4e4501ece4daf0478c66
|
4
|
+
data.tar.gz: 149a448ba487c539949265fd4b4107dd55b9ee2798f7e14a9f3b66abc9ad41ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 201ebb97c32e49e123a01a03664747d16aeab5f763964e23df1e6a6258c605eb328ef3b1af0c2f8559ef2ea1b60df5599e289f6b19509f62df3a3f762e37d4dc
|
7
|
+
data.tar.gz: ff821d099d7141f9ef7c9ed71e5a02b5dbdac3bd641a4698db26d184c66185dae5ddf8e0504e084e5700341ce3574b0139fd4c8eaaa3e4427edfc2406bb049cf
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<script type="text/javascript">
|
2
|
+
window.gaTrackingPath = window.location.pathname
|
3
|
+
window.gaTrackingPathDebug = undefined
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
5
|
+
window['GoogleAnalyticsObject'] = 'ga'
|
6
|
+
window.ga = window.ga || function () { (window.ga.q = window.ga.q || []).push(arguments) }
|
7
|
+
window.ga.l = 1 * new Date()
|
8
|
+
|
9
|
+
window.gaEvent = function (categorySuffix, action, label, value, nonInteraction) {
|
10
|
+
window.ga('send', {
|
11
|
+
hitType: 'event',
|
12
|
+
eventCategory: window.gaTrackingPath + ' ' + categorySuffix,
|
13
|
+
eventAction: action,
|
14
|
+
eventLabel: (label || window.location.pathname),
|
15
|
+
eventValue: (value || null),
|
16
|
+
nonInteraction: (nonInteraction || false)
|
17
|
+
});
|
18
|
+
}
|
19
|
+
</script>
|
20
|
+
|
21
|
+
<div id='cookie-banner'
|
22
|
+
data-ga-profile-id="UA-1584203-1"
|
23
|
+
data-ga-optimize-id="GTM-WK6QJ9P"
|
24
|
+
data-gtm-auth="QOG8f4h6ut68IH7uRg_6Aw"
|
25
|
+
data-gtm-id="GTM-NSNPFC"
|
26
|
+
data-gtm-preview="env-2"
|
27
|
+
data-hotjar-id='713310'
|
28
|
+
/>
|
data/_layouts/default.html
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="UTF-8" />
|
5
5
|
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport" />
|
6
|
+
<meta name='csrf-token' content='' />
|
6
7
|
|
7
8
|
<script>
|
8
9
|
if (window.innerWidth > 421) {
|
@@ -39,13 +40,6 @@ Update 2019-07-19: Another problem that came us is, that URLs endet in .html whi
|
|
39
40
|
{% endif %}
|
40
41
|
<link rel="canonical" href="{{ hostname }}{{ site.baseurl }}{{ clean_page_url }}">{% comment %}So stellen wir sicher, dass wir nicht versehentlich eine content-LOREM.betterplace.org Domain im Index haben.{% endcomment %}
|
41
42
|
|
42
|
-
<script type="application/javascript">
|
43
|
-
window.gaTrackingPath = window.location.pathname
|
44
|
-
</script>
|
45
|
-
<script src="{{ style_host }}/de/layouts/current_javascript/application"></script>
|
46
|
-
<script src="{{ style_host }}/de/layouts/current_pack/homepage"></script>
|
47
|
-
<script src="{{ style_host }}/de/layouts/current_pack/utils"></script>
|
48
|
-
|
49
43
|
{% comment %}Das content--theme legt die default.css für jedes repo ab. Nicht geil, aber OK.{% endcomment %}
|
50
44
|
<link rel="stylesheet" href="{{ style_host }}{{ site.baseurl }}/assets/css/default.css" />
|
51
45
|
|
@@ -64,9 +58,6 @@ Update 2019-07-19: Another problem that came us is, that URLs endet in .html whi
|
|
64
58
|
|
65
59
|
{{ page.head_include }}{{ site.head_include }}{{ layout.head_include }}
|
66
60
|
|
67
|
-
{% include google_analytics.html %}
|
68
|
-
{% include hotjar.html %}
|
69
|
-
|
70
61
|
{% include sharing.html sharing_host=hostname clean_page_url=clean_page_url %}
|
71
62
|
|
72
63
|
{% if site.feed_meta_in_head %}{% feed_meta %}{% endif %}
|
@@ -100,5 +91,9 @@ Update 2019-07-19: Another problem that came us is, that URLs endet in .html whi
|
|
100
91
|
|
101
92
|
{{ footer | replace_first:'<!--language-switch-content-->',language_switch_content }}
|
102
93
|
|
94
|
+
{% include cookie_banner.html %}
|
95
|
+
<script src="{{ style_host }}/de/layouts/current_javascript/application"></script>
|
96
|
+
<script src="{{ style_host }}/de/layouts/current_pack/homepage"></script>
|
97
|
+
|
103
98
|
</body>
|
104
99
|
</html>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: betterplace-content
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- betterplace.org Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -89,14 +89,13 @@ extra_rdoc_files: []
|
|
89
89
|
files:
|
90
90
|
- LICENSE.txt
|
91
91
|
- README.md
|
92
|
+
- _includes/cookie_banner.html
|
92
93
|
- _includes/footer-de.html
|
93
94
|
- _includes/footer-en.html
|
94
|
-
- _includes/google_analytics.html
|
95
95
|
- _includes/header-de.html
|
96
96
|
- _includes/header-en.html
|
97
97
|
- _includes/help_categories.html
|
98
98
|
- _includes/hero_image.html
|
99
|
-
- _includes/hotjar.html
|
100
99
|
- _includes/schema_org_structured_data.html
|
101
100
|
- _includes/searchbar-de.html
|
102
101
|
- _includes/searchbar-en.html
|
@@ -220,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
219
|
- !ruby/object:Gem::Version
|
221
220
|
version: '0'
|
222
221
|
requirements: []
|
223
|
-
rubygems_version: 3.
|
222
|
+
rubygems_version: 3.1.2
|
224
223
|
signing_key:
|
225
224
|
specification_version: 4
|
226
225
|
summary: betterplace.org's Jekyll Content Theme
|
@@ -1,63 +0,0 @@
|
|
1
|
-
<script type="text/javascript">
|
2
|
-
var ga_id;
|
3
|
-
if(window.location.host.match(/betterplace.org$/)) {
|
4
|
-
ga_id = 'UA-1584203-1';
|
5
|
-
} else {
|
6
|
-
ga_id = 'UA-1584203-5';
|
7
|
-
}
|
8
|
-
|
9
|
-
var disableStr = 'ga-disable-' + ga_id;
|
10
|
-
if (document.cookie.indexOf(disableStr + '=true') > -1) {
|
11
|
-
window[disableStr] = true;
|
12
|
-
}
|
13
|
-
function gaOptout() {
|
14
|
-
document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/';
|
15
|
-
window[disableStr] = true;
|
16
|
-
}
|
17
|
-
|
18
|
-
{% if false %}
|
19
|
-
// TODO: Re-Add/Restore with cookie banner
|
20
|
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
21
|
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
22
|
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
23
|
-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
24
|
-
{% else %}
|
25
|
-
window.ga = function() { return null; };
|
26
|
-
{% endif %}
|
27
|
-
|
28
|
-
ga('create', ga_id);
|
29
|
-
ga('set', 'anonymizeIp', true);
|
30
|
-
|
31
|
-
if(document.cookie && document.cookie.includes && document.cookie.includes('ga_dimension1=')) {
|
32
|
-
cookie_value = document.cookie.match(/ga_dimension1=([^;]*)/)[1];
|
33
|
-
if(cookie_value != 'BetterplaceOfficeIP') {
|
34
|
-
dimension_value = 'Unknown: ' + cookie_value.toString();
|
35
|
-
} else {
|
36
|
-
dimension_value = 'BetterplaceOfficeIP';
|
37
|
-
}
|
38
|
-
ga('set', 'dimension1', dimension_value);
|
39
|
-
} else {
|
40
|
-
ga('set', 'dimension1', 'VisitorIP');
|
41
|
-
}
|
42
|
-
|
43
|
-
if(window.getDevicePixelRatio!==undefined) {
|
44
|
-
ga('set', 'dimension2', window.getDevicePixelRatio()); // DevicePixelRatio (Session)
|
45
|
-
}
|
46
|
-
|
47
|
-
ga('set', 'dimension4', '{{ site.lang }}'); // Sprache der URL (Hit)
|
48
|
-
{% if page.url contains '404' %}
|
49
|
-
// Custom Code for 404 pages:
|
50
|
-
ga('set', 'dimension5', 'page-errors/404-page'); // TrackingPath (Hit)
|
51
|
-
ga('send', 'event', 'page-errors', '404-page', document.URL, {'nonInteraction': 1});
|
52
|
-
ga('send', 'exception', {
|
53
|
-
'exDescription': 'page-errors/404-page',
|
54
|
-
'exFatal': true
|
55
|
-
});
|
56
|
-
{% else %}
|
57
|
-
ga('set', 'dimension5', '{{ site.baseurl }}{{ page.url }}');
|
58
|
-
{% endif %}
|
59
|
-
|
60
|
-
ga('require', 'GTM-WK6QJ9P');
|
61
|
-
|
62
|
-
ga('send', 'pageview');
|
63
|
-
</script>
|
data/_includes/hotjar.html
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
<script>
|
2
|
-
if(window.location.host.match(/betterplace.org$/)) {
|
3
|
-
(function(h,o,t,j,a,r){
|
4
|
-
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
|
5
|
-
h._hjSettings={hjid:713310,hjsv:6};
|
6
|
-
a=o.getElementsByTagName('head')[0];
|
7
|
-
r=o.createElement('script');r.async=1;
|
8
|
-
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
|
9
|
-
a.appendChild(r);
|
10
|
-
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
|
11
|
-
}
|
12
|
-
</script>
|