analytics-rails 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,7 @@ module Analytics
|
|
|
5
5
|
|
|
6
6
|
def google_analytics_include_tag(account)
|
|
7
7
|
if ::Rails.env.production?
|
|
8
|
-
script = <<-SCRIPT
|
|
8
|
+
script = <<-SCRIPT
|
|
9
9
|
var _gaq = _gaq || [];
|
|
10
10
|
_gaq.push(['_setAccount', '#{account}']);
|
|
11
11
|
_gaq.push(['_trackPageview']);
|
|
@@ -15,7 +15,7 @@ module Analytics
|
|
|
15
15
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
16
16
|
})();
|
|
17
17
|
SCRIPT
|
|
18
|
-
content_tag(:script,
|
|
18
|
+
content_tag(:script, script.html_safe, :type => 'text/javascript')
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
|
data/test/dummy/log/test.log
CHANGED
|
@@ -73,3 +73,9 @@ Connecting to database specified by database.yml
|
|
|
73
73
|
Connecting to database specified by database.yml
|
|
74
74
|
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
75
75
|
[1m[35m (0.0ms)[0m rollback transaction
|
|
76
|
+
Connecting to database specified by database.yml
|
|
77
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
78
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
79
|
+
Connecting to database specified by database.yml
|
|
80
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
81
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: analytics-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-06-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|