BOES
BOES

Reputation: 159

Google Enhanced Ecommerce, set_checkout_option

I integrated Google Enhanced Ecommerce on a project and integrated calls for the various checkout steps (billing address, shipping address, shipping method and payment method). I'm correctly sending the 'set_checkout_option' event and I set the steps for GA administration, but I still see the steps not populated. Has anyone been in the same situation?

PS: Billing address I think it is always populated because of course it is step 1 and it takes it automatically with the 'begin_checkout' event.

enter image description here

enter image description here

Upvotes: 1

Views: 2204

Answers (1)

Pavol Biely
Pavol Biely

Reputation: 65

You have to add the checkout_step parameter when calling the checkout_progress event.

gtag('event', 'checkout_progress', {
    "checkout_step": 2,
    "items": [...]

});
gtag('event', 'set_checkout_option', {
    "checkout_step": 2,
    "checkout_option": "payment_method",
    "value": "paypal"
});

Upvotes: 4

Related Questions