Hello, thanks for this.
My questions are as follows:
- So the Thank You and Order Status pages are going to be deprecated a year later but we have code blocks as such in the checkout.liquid file which is shared across all the current checkout pages:
{% if downcasedPageTitle contains 'thank you' %}
...
{% endif %}
Does this mean that they will continue to work while the rest will stop working? I am confused about this because there is no dedicated liquid file for Thank You and Order Status pages that I know of.
- Does the custom pixels only work for analytics, conversion tracking code only? For example, I have some 3rd party scripts in the checkout.liquid file that I want to carry over, but although they seem to load fine when I test with the Pixel Helper, it doesn’t function as expected. Here is an example from the address validator script that we use:
which turned into:
const loadAddressValidatorScript = () => {
const head = document.head;
const script = document.createElement('script');
script.type = 'text/javascript';
script.src='https://{OUR-ID-HERE}.cloudfront.net/pobox_checker.js';
head.appendChild(script);
};
analytics.subscribe("checkout_started", event => {
loadAddressValidatorScript();
});
Is there anything wrong with the above migration? I know there are app blocks that does address validation and we have looked into them but we prefer to keep the same functionality that we have in prod if it is possible.
- We can revert anytime before the August, 13th deadline right? And when we revert all the checkout.liquid code will be preserved. I am asking this because we are having hard time testing the GTM tags in staging and we can simply test them in production and revert if we notice any issues.
Thank you very much,
Ilke