Hi all,
I am having an odd issue with the post-purchase page additional scripts section; for whatever reason, that section is loading inside an iframe during the checkout process. From what I’m seeing, the object responsible for calling that is {{ content_for_layout }} which seems a bit odd, as the scripts should be pulling into the head tag, where this is pulling into the body inside main.
Ideally, I’d like to get rid of the iframe so these scripts can fire properly. Alternatively, I’m wondering if it is possible to fire some tracking code (a dataLayer.push specifically) in checkout.liquid only when a post-purchase upsell is accepted.
I saw this thread that seemed like it might work for what I’m looking for, but I want to make sure I know what I’m doing before trying it.
Any insights would be greatly appreciated!