All things Shopify and commerce
Hello,
I'm using "Additional scripts" to insert a div element and an external third-party script (which subsequently fills that div element with a floating widget) on the Thank You page. Additional scripts are now deprecated though so I'm looking for a way to implement the same functionality using a supported method.
In short, I need to add the following snippet to the Thank You page.
<div id="dekovacka-wrapper" data-entity="<SOME_ID>"></div> <script type="text/javascript" src="https://app.dekovacka.cz/thankyou.js" async defer></script>
When I looked into the loaded script, all it does is that it loads some HTML from an external source an places it in the provided div "dekovacka-wrapper". The result is a floating widget which pops up when the customer reaches the Thank You page.
As far as I understand from the docs we are now supposed to use one of these two options - App blocks or Pixels. Pixel seems to be out of the question though because it does not support rendering custom content. However a similar constraint is mentioned with App blocks as well (https://shopify.dev/docs/api/checkout-ui-extensions/2025-01#security). Is there a way to achieve the same result as with the "Additional scripts"?
Thanks
Adam
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025