I'm making an enhanched ecommerce tracking with google analytics. I'm following the existing implementation in gtag.js. I have 4 checkout steps including shipping method data, payment method data, pending payment, and also paid (purchase). I've made the codes for each step below:
1. Shipping Method
<script>
gtag('event', 'set_checkout_option', {
"checkout_step": 1,
"checkout_option": "shipping method",
"value": ""
});
</script>
2. Payment Method
<script>
gtag('event', 'set_checkout_option', {
"checkout_step": 2,
"checkout_option": "payment method",
"value": ""
});
</script>
3. Pending Payment
$("#order-now-action").on('click', function() {
gtag('event', 'set_checkout_option', {
"checkout_step": 3,
"checkout_option": "pending",
"id": ""
});
})
This is the checkout funnel that I created in Ecommerce Settings.
And this is a report in the checkout behavior menu. The shipping method is recorded, but why in step 2 (payment method) to step 4 (purchase) is it not recorded?
even though, in the sales performance menu, the transaction is recorded?
for steps 1-3 is in 1 page, while the purchase (step 4) I did on the backend using a single url. Is it because it's on 1 page so it's not recorded?