spree_gtm 0.0.11 → 0.0.12
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 +10 -9
- data/spree_gtm.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dee96403e97437406ed71fbca6c0c27536a7fee6
|
4
|
+
data.tar.gz: a031b1936f09a034b1c6c2d0585f44108826b02f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f97c0266f332987c2375570c5509bb73c607ef0ba48e3813fc35419cc266728c2ef014b338cf1713dd0d9cc259504b991490ff3f542c8b2a4543f30fbe9741e9
|
7
|
+
data.tar.gz: 2d22eefaa822f84185266edcd826406e823f76aa373f1c87829e58cc43a5a29e6f80714b3f631a65e1f17b7e5304d6e49f5d18b89d956f2b9c89c89bde3ee63a
|
@@ -18,17 +18,18 @@
|
|
18
18
|
<% if @order.present? and @order.user.present? %>
|
19
19
|
dataLayer.push({'userid': '<%= @order.user.id %>'});
|
20
20
|
<% end %>
|
21
|
-
<% if @order.present?
|
21
|
+
<% if @order.present? %>
|
22
22
|
|
23
23
|
dataLayer.push({
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
24
|
+
'transactionId': '<%= @order.number %>',
|
25
|
+
'transactionAffiliation': 'Yourcompanyname',
|
26
|
+
'transactionTotal': <%= @order.total %>,
|
27
|
+
'transactionTax': <%= @order.additional_tax_total %>,
|
28
|
+
'transactionShipping': <%= @order.adjustments.shipping.sum(:amount) %>,
|
29
|
+
'transactionCity': '<%= @order.bill_address.city %>',
|
30
|
+
'transactionState': '<%= @order.bill_address.state_text %>',
|
31
|
+
'transactionZip': '<%= @order.bill_address.zipcode %>',
|
32
|
+
'transactionEmail': '<%= @order.email %>',
|
32
33
|
'transactionProducts': [
|
33
34
|
<%=raw @order.line_items.map { |line_item| "{ 'sku': '#{h line_item.variant.sku}',
|
34
35
|
'name': '#{h line_item.variant.product.name}',
|
data/spree_gtm.gemspec
CHANGED
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.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stanislav O. Pogrebnyak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-12-
|
12
|
+
date: 2016-12-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|