google_data_layer-rails 0.0.6 → 0.0.7
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: d14a2a721daf4e73676a0f2abdd08fc5fa583f52
|
4
|
+
data.tar.gz: 7b5001aa6d0b5a9e732f108dc874faddccf19d59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6f9c13b35b90c5a44b3f98e3cb204588eb1a8d382677be769bb36bcd6daba064104e681182c0c593631c93cb693d56517f06bb5017a495820c8f509b4d02d4f
|
7
|
+
data.tar.gz: bb30c4697b658e71c97fd4737953f7682ebd6d56e3ab5149ad0de21d5dad5e34e8e0cdd75e6b7f938d97fba9c746767756ba5b241bf2f89a3274cbd2033a4c8b
|
@@ -23,6 +23,12 @@ module GoogleDataLayerHelper
|
|
23
23
|
<script type="text/javascript">
|
24
24
|
var dataLayer = #{dataLayer.to_json};
|
25
25
|
|
26
|
+
var dataLayerEvent = function(eventName, params) {
|
27
|
+
params['interactionType'] = eventName;
|
28
|
+
params['event'] = 'key interaction';
|
29
|
+
dataLayer.push(params);
|
30
|
+
};
|
31
|
+
|
26
32
|
var dataLayerPushVirtualPageViewEvent = function (pageName) {
|
27
33
|
dataLayer.push({
|
28
34
|
'page_virtualName': pageName,
|
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.7
|
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-05-
|
12
|
+
date: 2014-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|