bigbro 0.9 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bigbro.rb +7 -9
- metadata +2 -1
data/lib/bigbro.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'bigbro/railtie' if defined? Rails
|
2
2
|
|
3
3
|
module BigBro
|
4
|
-
Version = '0.9'
|
4
|
+
Version = '0.9.1'
|
5
5
|
|
6
6
|
module Helpers
|
7
7
|
# Embeds the optimized Analytics code and the noscript tag with
|
@@ -25,14 +25,12 @@ module BigBro
|
|
25
25
|
code = ''
|
26
26
|
code.concat javascript_tag(%(
|
27
27
|
var _gaq = #{ga_cmds.to_json};
|
28
|
-
|
29
|
-
|
30
|
-
(
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
} catch (err) {}
|
35
|
-
});
|
28
|
+
try {
|
29
|
+
(function(d,t,a) {
|
30
|
+
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
31
|
+
g[a]=a;g.src='#{ga_host}/ga.js';s.parentNode.insertBefore(g,s);
|
32
|
+
})(document, 'script', 'async');
|
33
|
+
} catch (err) {}
|
36
34
|
))
|
37
35
|
|
38
36
|
code.concat(content_tag(:noscript,
|