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!