#Partytown with GTM scripts

3 messages · Page 1 of 1 (latest)

blazing jungle
#

I am using partytown package to load my GTM script. But I am seeing this error , and don't know why. Any idea? Thank you

My code is like this in astro.config.js:
import sanity from "astro-sanity";
export default defineConfig({
integrations: [
partytown({
config :{
forward: ["dataLayer.push"]
}
})
]
})

tame grove
dusk ether
#

hey @tame grove I'm facing same issue as Nerea, but I dont understand how to solve it.

I'm using Netlify, so this link should be helpfull. https://docs.netlify.com/routing/redirects/rewrites-proxies/#proxy-to-another-service

This is the url https://partytown--dat-landing.netlify.app/load-board/

I tried

  for = "/*"
  [headers.values]
    Access-Control-Allow-Origin = "https://bat.bing.com, https://cdn.callrail.com, https://msn.com"

but is not working.
should we add something on netlify.toml, if so what's the rule?