spree_gtm 0.0.17 → 0.0.18

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: 3a7404e716898491d4a4ce04510ad1ebdcfe446d
4
- data.tar.gz: 718c5445376067a13645e70db56359322a81dd7a
3
+ metadata.gz: a516b43e5dbb9521e988c5b3895cce4f7f06e69f
4
+ data.tar.gz: 3ae83ff5718c00da516054d8bd46e9f9c89d834a
5
5
  SHA512:
6
- metadata.gz: 6e0cc62fee75f5b83bd9189966bd6a370505d881d073917013b64bdbf8327d136f863d5873375a5d7141add1775e55108d29e9ee57fad9548810e6f88556fea2
7
- data.tar.gz: b0555398884097fc2ed7057c6e1766a4943291d0acad2d93378e5442764d7f38f7baab9de441175ec4995e2dde1e236bf7c96ae2084e61fa0e27c8d89d19df1e
6
+ metadata.gz: e2f2a9b1b9d6c8d1d13f1f6ad269a62593adf234ac123176894499f87aa004ebbb3efe39597b317271f42c6f7747b3540c45fded8d00587f3d66f402375f6024
7
+ data.tar.gz: 44e23203d43166e2b3c4cbe10ffc20fd64aa3716e2951eb28e1425526b7664da1082113f84e0ed1aaa33eea3a7081900b581ba06ea4d54f8e5aad01b4b7991d7
@@ -16,17 +16,7 @@
16
16
  dataLayer.push({'transactionEmail': '<%= @order.email %>'});
17
17
  <% end %>
18
18
 
19
- <% if current_page?('/cart') and @order.number.nill? %>
20
- dataLayer.push({'cart': [
21
- <%=raw @order.line_items.map { |line_item| "{ 'sku': '#{h line_item.variant.sku}',
22
- 'name': '#{h line_item.variant.product.name}',
23
- 'category': '',
24
- 'price': #{h line_item.price},
25
- 'quantity': #{h line_item.quantity}}" } .join(",") %>
26
- ]
27
- });
28
- <% end %>
29
-
19
+
30
20
  <% if @product %>
31
21
  dataLayer.push({'product': [
32
22
  'name': '<%= @product.name %>',
@@ -36,14 +26,6 @@
36
26
  });
37
27
  <% end %>
38
28
 
39
- <% if @category %>
40
- dataLayer.push({'category': ['name': '<%= @category.name %>']});
41
- <% end %>
42
-
43
- <% if @search %>
44
- dataLayer.push({'search': ['name': '<%= @category.name %>']});
45
- <% end %>
46
-
47
29
  <% if @order.present? and @order.user.present? %>
48
30
  dataLayer.push({'userid': '<%= @order.user.id %>'});
49
31
  <% end %>
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_gtm'
5
- s.version = '0.0.17'
5
+ s.version = '0.0.18'
6
6
  s.summary = 'some summary here'
7
7
  s.description = 'some gem description here'
8
8
  s.required_ruby_version = '>= 2.1.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_gtm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav O. Pogrebnyak