google_data_layer-rails 0.0.1 → 0.0.2

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: 0828139d476819ec3a587acc34f8d903cc591bd4
4
- data.tar.gz: 62ffb0dd4362aea6544a044b70cef0ec4ec4df23
3
+ metadata.gz: a39e4f63a2de78a9aa6013bd40c5d2c544cc8996
4
+ data.tar.gz: d63757aa732e1d08c871bdec2b7130818f10154c
5
5
  SHA512:
6
- metadata.gz: cbd56216b36c72acdefdda74aea14b77d27bfdabc8bff555f2bac4312ac8cb431de53fb463a217d6722b2f7cf993a1e79d5d82aaba6a04d318f37dd4fe6ec85b
7
- data.tar.gz: 9e30f13b780f65ffaab111bad63a09dfe697579fa44fe189adc21903a36188d4cdb86bf5165ce5ea5acd023b12b3612cddc7821b41c90777e413d14e1ac5a575
6
+ metadata.gz: 2858cadcce72fef54b617cd21eb2e7466ff71648e1a617cc095b4d58fb5db89c9f846e45f4e26ef090f302eee70090a47b6ed9a21ed8160a37820fab222ed0c0
7
+ data.tar.gz: 171d4eb31a6a86b2352e0862a8f9e0e1d26d4e4564567eb11188771091943d7af167aeed279886ddc14166a4940271ce4d776ac2291098c7145cca688d83b9e7
@@ -7,7 +7,7 @@ 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
- "googleDataLayerPushVirtualPageViewEvent('#{virtual_page}');"
10
+ "dataLayerPushVirtualPageViewEvent('#{virtual_page}');"
11
11
  end
12
12
  end
13
13
 
@@ -15,14 +15,14 @@ module GoogleDataLayerHelper
15
15
  %Q{
16
16
  <!-- Google Data Layer -->
17
17
  <script>
18
- var googleDataLayer = [{
18
+ var dataLayer = [{
19
19
  'ga_id': '#{GoogleDataLayer::Rails::Config.google_id}',
20
20
  'page_pageName': '#{@google_data_layer_page_name.to_s}',
21
21
  'page_pageType': '#{@google_data_layer_page_type.to_s}'
22
22
  }];
23
23
 
24
- var googleDataLayerPushVirtualPageViewEvent = function (pageName) {
25
- googleDataLayer.push({
24
+ var dataLayerPushVirtualPageViewEvent = function (pageName) {
25
+ dataLayer.push({
26
26
  'page_virtualName': pageName,
27
27
  'event': 'gtm.view'
28
28
  });
@@ -35,9 +35,9 @@ module GoogleDataLayerHelper
35
35
  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
36
36
  <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
37
37
  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
38
- j=d.createElement(s),dl=l!='googleDataLayer'?'&l='+l:'';j.async=true;j.src=
38
+ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
39
39
  '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
40
- })(window,document,'script','googleDataLayer','GTM-57THDK');</script>
40
+ })(window,document,'script','dataLayer','GTM-57THDK');</script>
41
41
  <!-- End Google Tag Manager -->
42
42
  }.html_safe
43
43
  end
@@ -1,5 +1,5 @@
1
1
  module GoogleDataLayer
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
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.1
4
+ version: 0.0.2
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-15 00:00:00.000000000 Z
12
+ date: 2014-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties