card-mod-google_analytics 0.15 → 0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/card/mod/google_analytics.rb +4 -0
- data/set/all/google_analytics.rb +2 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0de74c365d5c25330e6b24b9454b9b580526aa77046ed0020499bbb50380b962
|
4
|
+
data.tar.gz: be2d96154864171ceb8dd23c56dfa48dbef15bc1a68f675dd87f7036e73f659a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28a8cde16ad4b5f22b881e6a74fb9433bcde714f93497eedae13953dcb5739ac070fc3962ac7bba1da9c9c84ab315bd350af1e9ef78d57e6b9eae4022dd1886a
|
7
|
+
data.tar.gz: 99c0997514c559e8c8825650cfa853fd133333aa44cc72a01ee5d21ead14fa5185e2b6c5338b0f16d83ebaa2e5e21264e3b766d95f761a13eff748c542a39337
|
data/set/all/google_analytics.rb
CHANGED
@@ -40,16 +40,14 @@ def track_page_from_server?
|
|
40
40
|
end
|
41
41
|
|
42
42
|
format :html do
|
43
|
+
basket[:head_views].unshift :google_analytics_snippets
|
44
|
+
|
43
45
|
delegate :google_analytics_keys, to: :card
|
44
46
|
|
45
47
|
def body_tag klasses=""
|
46
48
|
super { "#{render(:google_analytics_noscript)}\n\n#{yield}" }
|
47
49
|
end
|
48
50
|
|
49
|
-
def views_in_head
|
50
|
-
super.unshift :google_analytics_snippets
|
51
|
-
end
|
52
|
-
|
53
51
|
view :google_analytics_snippets, unknown: true, perms: :none do
|
54
52
|
haml :google_analytics_snippets if google_analytics_keys.present?
|
55
53
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-google_analytics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.16'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philipp Kühl
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-05-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: card
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
rubygems_version: 3.2.
|
74
|
+
rubygems_version: 3.2.33
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Google Analytics support for decko
|