Third-party widget on the Thank You page

Third-party widget on the Thank You page

AdamPk
Shopify Partner
1 0 0

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

Replies 0 (0)