google_data_layer-rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35687c6b651ecf36b7062c7dfc69d46cdd31d5f4
|
4
|
+
data.tar.gz: 5d9513e895534ba53fc8f350bd333ec32a8d372d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e90a901d82773e9d0f66eeb837bb448325797e524d9f5502f8c97254dbb26d027b4da2ede8f0f90bec998148e86669d40dc47c4eedf561cc54f5159c4cbfdae
|
7
|
+
data.tar.gz: 12565b8cd22599c5c45a078bb1f05ca6deb8bd278e49407f0adcb5a7fa58c8790817b2e57d2e8076d1db1fff22f0c9d8c1403d57f86641b26c679100f4abdbea
|
@@ -7,14 +7,14 @@ module GoogleDataLayerHelper
|
|
7
7
|
def google_data_layer_push_virtual_page_code
|
8
8
|
virtual_page = flash[:data_layer_virtual_page_view_event]
|
9
9
|
if virtual_page
|
10
|
-
"dataLayerPushVirtualPageViewEvent('#{virtual_page}')
|
10
|
+
"<script type=\"text/javascript\">dataLayerPushVirtualPageViewEvent('#{virtual_page}');</script>".html_safe
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
14
|
def google_data_layer_embed_code
|
15
15
|
%Q{
|
16
16
|
<!-- Google Data Layer -->
|
17
|
-
<script>
|
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}',
|
@@ -26,7 +26,7 @@ module GoogleDataLayerHelper
|
|
26
26
|
'page_virtualName': pageName,
|
27
27
|
'event': 'gtm.view'
|
28
28
|
});
|
29
|
-
}
|
29
|
+
};
|
30
30
|
</script>
|
31
31
|
<!-- end Google Data Layer -->
|
32
32
|
|
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.3
|
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-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|