Shopify checkout additional script query

Shopify checkout additional script query

barunroyhid
Shopify Partner
1 0 0

Hello all,

 

We are using this redirect script in additional script area of Shopify where we have redirected the user after purchase to another domain by getting the order id as provided by Shopify PFB the example code:

<script>
const URL = `http://example.com?orderID=${Shopify.checkout.order_id}`.
set Timeout () {
window. Location = URL.
}, 1000).
</script>

 

As by next year this additional script area are going to expire so I wanted to know how I can implement this with pixels as I am not able to find the redirect process there it is giving the GTM tag addition process.
any idea if anyone already done this feature just wanted to add simple redirect code, I hope we will get the order id from the Shopify variable.

Replies 0 (0)