spree_gtm 0.0.21 → 0.0.22
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 +2 -3
- 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: 69b2960dabeca1818dc18a09460a3786d39884d7
|
4
|
+
data.tar.gz: 5aa2318378f2a87976dab0efd556f79670be4c1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9705ed684b66d088664d0baa276185f0c5df2face98a058d742f30db8b7b9e21cd0df439913000ee8da8ed9bb93939872889730e85b633d91d29bc9bff2363a8
|
7
|
+
data.tar.gz: 8eaee7c1520a3b61e78f79ba04946e216b31965ec8aca3e285dd9f9dde193a166af911033aeab01b5bc0f17e023f5be2cf6d341125afc543ad420255173c346a
|
@@ -16,14 +16,13 @@
|
|
16
16
|
dataLayer.push({'transactionEmail': '<%= @order.email %>'});
|
17
17
|
<% end %>
|
18
18
|
|
19
|
-
<% if current_page?('/cart')
|
20
|
-
dataLayer.push({
|
19
|
+
<% if current_page?('/cart') %>
|
20
|
+
dataLayer.push({
|
21
21
|
<%=raw @order.line_items.map { |line_item| "{ 'sku': '#{h line_item.variant.sku}',
|
22
22
|
'name': '#{h line_item.variant.product.name}',
|
23
23
|
'category': '',
|
24
24
|
'price': #{h line_item.price},
|
25
25
|
'quantity': #{h line_item.quantity}}" } .join(",") %>
|
26
|
-
]
|
27
26
|
});
|
28
27
|
<% end %>
|
29
28
|
|
data/spree_gtm.gemspec
CHANGED