google_data_layer-rails 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/app/helpers/google_data_layer_helper.rb +4 -3
- data/lib/google_data_layer/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b27bdc124605b9c392557f4854c02507c35acb86
|
4
|
+
data.tar.gz: bd5b1cd55b7ad6835a96d325ee42ed66aa450cee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 239b8842331210f342d45821b190785e2fcfd327e1de335a514484942dafc3c9008e9bf315ef65859fac53685523df09a75f6e6ef368dff7ee648264e4b3f9c3
|
7
|
+
data.tar.gz: 56d485ae3aad5e0e47acc120cab3be9e2a422a8c4740635a8b664ace2711ca212f1271ffe88f64686e665f2740a1ae560453b1965cdccb7181ab39010cfc100f
|
data/README.md
CHANGED
@@ -20,6 +20,10 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
TODO: Write usage instructions here
|
22
22
|
|
23
|
+
## TODOs
|
24
|
+
- Make the gem more object-oriented
|
25
|
+
- Improve implementation to avoid possible collisions with javascript variables and flash symbol names.
|
26
|
+
|
23
27
|
## Contributing
|
24
28
|
|
25
29
|
1. Fork it
|
@@ -11,14 +11,15 @@ module GoogleDataLayerHelper
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
def google_data_layer_embed_code
|
14
|
+
def google_data_layer_embed_code(additional_properties = "")
|
15
15
|
%Q{
|
16
16
|
<!-- Google Data Layer -->
|
17
17
|
<script type="text/javascript">
|
18
18
|
var dataLayer = [{
|
19
19
|
'ga_id': '#{GoogleDataLayer::Rails::Config.google_id}',
|
20
20
|
'page_pageName': '#{@google_data_layer_page_name.to_s}',
|
21
|
-
'page_pageType': '#{@google_data_layer_page_type.to_s}'
|
21
|
+
'page_pageType': '#{@google_data_layer_page_type.to_s}',
|
22
|
+
#{additional_properties}
|
22
23
|
}];
|
23
24
|
|
24
25
|
var dataLayerPushVirtualPageViewEvent = function (pageName) {
|
@@ -41,4 +42,4 @@ module GoogleDataLayerHelper
|
|
41
42
|
<!-- End Google Tag Manager -->
|
42
43
|
}.html_safe
|
43
44
|
end
|
44
|
-
end
|
45
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_data_layer-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Federico Rebora
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-04-
|
12
|
+
date: 2014-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|