GTM push is including previous checkout inside the purchase
up vote
0
down vote
favorite
google tag manager - i am calling a checkout and then a purchase consecutively... It seems the "checkout" portion is included in the final "purchase".
see the results from this below.......... i get the first checkout event fine. the second event for purchase contains the first checkout json?
try {
dataLayer.push({
'event': 'ecommerce_checkout',
'eventCategory': 'Ecommerce',
'eventAction': 'Checkout',
'ecommerce': {
'checkout': {
'actionField': {
'step': 5,
'option': 'checkoutstep5'
},
'products': [{
'name': 'test',
'id': 10101,
'category': 'Testing',
}]
}
}
}); } catch (egtm) {}
try {
dataLayer.push({
'event': 'ecommerce_purchase',
'eventCategory': 'Ecommerce',
'eventAction': 'Purchase',
'ecommerce': {
'purchase': {
'actionField': {
'id': 111,
'revenue': 10
},
'products': [{
'name': 'test',
'id': 10101,
'price': 10,
'category': 'test',
'variant': 'test',
'quantity': 1
}]
}
}
}); } catch (egtm) {}
Resulting GTM :
{
gtm: {start: 11111111111, uniqueEventId: 429},
event: 'ecommerce_purchase',
eventCategory: 'Ecommerce',
eventAction: 'Purchase',
ecommerce: {
checkout: {
actionField: {step: 5, option: 'checkoutstep5'},
products: [
{
name: 'test',
id: 10101,
category: 'Testing',
price: '10',
variant: '',
quantity: 1
}
]
},
purchase: {
actionField: {id: '145245', revenue: '10.00'},
products: [
{
name: 'test',
id: 10101,
category: 'Testing',
price: '10',
variant: '',
quantity: 1
}
]
}
}
}
google-tag-manager
add a comment |
up vote
0
down vote
favorite
google tag manager - i am calling a checkout and then a purchase consecutively... It seems the "checkout" portion is included in the final "purchase".
see the results from this below.......... i get the first checkout event fine. the second event for purchase contains the first checkout json?
try {
dataLayer.push({
'event': 'ecommerce_checkout',
'eventCategory': 'Ecommerce',
'eventAction': 'Checkout',
'ecommerce': {
'checkout': {
'actionField': {
'step': 5,
'option': 'checkoutstep5'
},
'products': [{
'name': 'test',
'id': 10101,
'category': 'Testing',
}]
}
}
}); } catch (egtm) {}
try {
dataLayer.push({
'event': 'ecommerce_purchase',
'eventCategory': 'Ecommerce',
'eventAction': 'Purchase',
'ecommerce': {
'purchase': {
'actionField': {
'id': 111,
'revenue': 10
},
'products': [{
'name': 'test',
'id': 10101,
'price': 10,
'category': 'test',
'variant': 'test',
'quantity': 1
}]
}
}
}); } catch (egtm) {}
Resulting GTM :
{
gtm: {start: 11111111111, uniqueEventId: 429},
event: 'ecommerce_purchase',
eventCategory: 'Ecommerce',
eventAction: 'Purchase',
ecommerce: {
checkout: {
actionField: {step: 5, option: 'checkoutstep5'},
products: [
{
name: 'test',
id: 10101,
category: 'Testing',
price: '10',
variant: '',
quantity: 1
}
]
},
purchase: {
actionField: {id: '145245', revenue: '10.00'},
products: [
{
name: 'test',
id: 10101,
category: 'Testing',
price: '10',
variant: '',
quantity: 1
}
]
}
}
}
google-tag-manager
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
google tag manager - i am calling a checkout and then a purchase consecutively... It seems the "checkout" portion is included in the final "purchase".
see the results from this below.......... i get the first checkout event fine. the second event for purchase contains the first checkout json?
try {
dataLayer.push({
'event': 'ecommerce_checkout',
'eventCategory': 'Ecommerce',
'eventAction': 'Checkout',
'ecommerce': {
'checkout': {
'actionField': {
'step': 5,
'option': 'checkoutstep5'
},
'products': [{
'name': 'test',
'id': 10101,
'category': 'Testing',
}]
}
}
}); } catch (egtm) {}
try {
dataLayer.push({
'event': 'ecommerce_purchase',
'eventCategory': 'Ecommerce',
'eventAction': 'Purchase',
'ecommerce': {
'purchase': {
'actionField': {
'id': 111,
'revenue': 10
},
'products': [{
'name': 'test',
'id': 10101,
'price': 10,
'category': 'test',
'variant': 'test',
'quantity': 1
}]
}
}
}); } catch (egtm) {}
Resulting GTM :
{
gtm: {start: 11111111111, uniqueEventId: 429},
event: 'ecommerce_purchase',
eventCategory: 'Ecommerce',
eventAction: 'Purchase',
ecommerce: {
checkout: {
actionField: {step: 5, option: 'checkoutstep5'},
products: [
{
name: 'test',
id: 10101,
category: 'Testing',
price: '10',
variant: '',
quantity: 1
}
]
},
purchase: {
actionField: {id: '145245', revenue: '10.00'},
products: [
{
name: 'test',
id: 10101,
category: 'Testing',
price: '10',
variant: '',
quantity: 1
}
]
}
}
}
google-tag-manager
google tag manager - i am calling a checkout and then a purchase consecutively... It seems the "checkout" portion is included in the final "purchase".
see the results from this below.......... i get the first checkout event fine. the second event for purchase contains the first checkout json?
try {
dataLayer.push({
'event': 'ecommerce_checkout',
'eventCategory': 'Ecommerce',
'eventAction': 'Checkout',
'ecommerce': {
'checkout': {
'actionField': {
'step': 5,
'option': 'checkoutstep5'
},
'products': [{
'name': 'test',
'id': 10101,
'category': 'Testing',
}]
}
}
}); } catch (egtm) {}
try {
dataLayer.push({
'event': 'ecommerce_purchase',
'eventCategory': 'Ecommerce',
'eventAction': 'Purchase',
'ecommerce': {
'purchase': {
'actionField': {
'id': 111,
'revenue': 10
},
'products': [{
'name': 'test',
'id': 10101,
'price': 10,
'category': 'test',
'variant': 'test',
'quantity': 1
}]
}
}
}); } catch (egtm) {}
Resulting GTM :
{
gtm: {start: 11111111111, uniqueEventId: 429},
event: 'ecommerce_purchase',
eventCategory: 'Ecommerce',
eventAction: 'Purchase',
ecommerce: {
checkout: {
actionField: {step: 5, option: 'checkoutstep5'},
products: [
{
name: 'test',
id: 10101,
category: 'Testing',
price: '10',
variant: '',
quantity: 1
}
]
},
purchase: {
actionField: {id: '145245', revenue: '10.00'},
products: [
{
name: 'test',
id: 10101,
category: 'Testing',
price: '10',
variant: '',
quantity: 1
}
]
}
}
}
google-tag-manager
google-tag-manager
asked 17 hours ago
tebowner
216
216
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53343728%2fgtm-push-is-including-previous-checkout-inside-the-purchase%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown