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 +4 -4
- data/app/views/spree/gtm/_google_tag_manager_head.html.erb +1 -19
- data/spree_gtm.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a516b43e5dbb9521e988c5b3895cce4f7f06e69f
|
4
|
+
data.tar.gz: 3ae83ff5718c00da516054d8bd46e9f9c89d834a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 %>
|
data/spree_gtm.gemspec
CHANGED