How can I install GTM in post purchase pages without getting blocked?

Hey Shopify Experts,

I’m trying to add GTM in post purchase pages but I’m getting DOMException: Blocked a frame … from accessing a cross-origin frame. From what I understand, post purchase scripts (under Settings) run on sandbox and maybe that’s what is causing the issue.

  1. If I install GTM in the checkout.liquid, will it be available in post purchase pages?
  2. Is there a way to add GTM in post purchase page without getting blocked because of an iframe issue?

Thanks. I hope someone could help me on this.

Hi @genman22 - Did you ever resolve this issue? I’m running into the same problem and Googling this problem is bringing me to all of your posts on different forums :grin: I noticed no one has answered you on any of the forums.