analytics-rails 0.3.0 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/analytics/rails/extensions/action_view/base.rb +2 -2
- data/lib/analytics/rails/version.rb +1 -1
- data/test/dummy/log/test.log +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2563146a9f29dfdccb49f44b3c63c9ba619574e9
|
4
|
+
data.tar.gz: 871add710bc594de772fbcbcef93fde0cd526f7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22fa215df53421ea806854ff8ca92f0224a336a41130907589483a114dae995851f396dda5d7a51d1c1fdba0bf6324df8278c31e9f4ac53f622d7e34da4bb929
|
7
|
+
data.tar.gz: 7b86f73cac06c5e65f101c130fbd5641e7535c0a2f53efb61554b1eabb728ad1868d3d38c03cd246222b1a3f0546bf98a01d21edaf8b47f0660864660e529bb5
|
@@ -9,7 +9,7 @@ module Analytics
|
|
9
9
|
options = args.extract_options!
|
10
10
|
id = args.first
|
11
11
|
variables = options.to_json
|
12
|
-
content_tag :script, <<-SCRIPT.
|
12
|
+
content_tag :script, <<-SCRIPT.html_safe, type: 'text/javascript'
|
13
13
|
(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){
|
14
14
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
15
15
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
@@ -25,7 +25,7 @@ module Analytics
|
|
25
25
|
options = args.extract_options!
|
26
26
|
args = args.map(&:to_json).join(', ')
|
27
27
|
variables = options.to_json
|
28
|
-
content_tag :script, <<-SCRIPT.
|
28
|
+
content_tag :script, <<-SCRIPT.html_safe, type: 'text/javascript'
|
29
29
|
ga("send", "event", #{args}, #{variables});
|
30
30
|
SCRIPT
|
31
31
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -106,3 +106,15 @@ TagTest: test_include
|
|
106
106
|
-------------------
|
107
107
|
TagTest: test_event
|
108
108
|
-------------------
|
109
|
+
-------------------
|
110
|
+
TagTest: test_event
|
111
|
+
-------------------
|
112
|
+
---------------------
|
113
|
+
TagTest: test_include
|
114
|
+
---------------------
|
115
|
+
-------------------
|
116
|
+
TagTest: test_event
|
117
|
+
-------------------
|
118
|
+
---------------------
|
119
|
+
TagTest: test_include
|
120
|
+
---------------------
|