allissa_b Posted February 21, 2022 Share Posted February 21, 2022 (edited) Site URL: https://www.highridecycle.com/pricing Hi! My website uses a 3rd party booking system (MarianaTek), which has limited my conversion tracking to "intent". I'm in the process of creating a Thank You page (to pixel), but am having trouble with the callback function provided by my integrations team. In order to trigger a Thank You page upon "purchase completion", they gave me the following code: <script> var MT_CONFIG = { events: { onCheckoutComplete({ order, userId }) { ---> code goes here } } }; </script> However, when I insert a redirect to /thank-you as a code injection, I'm getting an error. So I guess my question is two-fold: What code should I add to the above callback function in order to "redirect" to my Thank You page? Am I correct in assuming I should inject the above code into the header of my pricing page (which houses the entire checkout process)? Thank you in advance! Edited February 21, 2022 by allissa_b Beyondspace 1 Link to comment
Beyondspace Posted February 27, 2022 Share Posted February 27, 2022 On 2/22/2022 at 5:06 AM, allissa_b said: Site URL: https://www.highridecycle.com/pricing Hi! My website uses a 3rd party booking system (MarianaTek), which has limited my conversion tracking to "intent". I'm in the process of creating a Thank You page (to pixel), but am having trouble with the callback function provided by my integrations team. In order to trigger a Thank You page upon "purchase completion", they gave me the following code: <script> var MT_CONFIG = { events: { onCheckoutComplete({ order, userId }) { ---> code goes here } } }; </script> However, when I insert a redirect to /thank-you as a code injection, I'm getting an error. So I guess my question is two-fold: What code should I add to the above callback function in order to "redirect" to my Thank You page? Am I correct in assuming I should inject the above code into the header of my pricing page (which houses the entire checkout process)? Thank you in advance! I've give solution via PM, kindly check if it meets your requirement BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment