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: ab62ec12468e89dd8bc18ac3defc1357a58f6a01
4
- data.tar.gz: 386fe36af1793d1c9982d15576a5eb4527b61f08
3
+ metadata.gz: d14a2a721daf4e73676a0f2abdd08fc5fa583f52
4
+ data.tar.gz: 7b5001aa6d0b5a9e732f108dc874faddccf19d59
5
5
  SHA512:
6
- metadata.gz: e31fe76f8c86ceef1342f621ad8f850f611289bed6b1b9ea5fd846ee0b7994eea663daa4b423f0fa04ec5ecfa26fc808f1016144b49bff3c914cce07ad42d90f
7
- data.tar.gz: e0a5d253cb6ca1e0ecb0310b45729e375fdcc9715bb75cbd94f7b1fb05e6bbc0b13e1143d019e005e5833c6e1582b703e015742e197e266a1b22a3b39ce2f0e4
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,
@@ -1,5 +1,5 @@
1
1
  module GoogleDataLayer
2
2
  module Rails
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  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.6
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-13 00:00:00.000000000 Z
12
+ date: 2014-05-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties