I have been trying to integrate Facebook Pixel with Partytown into my Angular 15 app, which uses @scullyio/scully SSG plugin with puppeteer to prerender the pages.
Partytown works perfectly in development mode and with ng build, however, the prerender process with scully gives an error, which is getting saved in the pre-rendered HTML as well, and it won't work in production mode possibly because of that.
I have tried to disable the pixel code during the prerender, but it did not work, and even if I remove the error from the rendered HTML, it will give the same error: Error: * not found.
My code after prerender:
`
`
Could someone give me guidance on what should I try next? I am out of options as of now. I had no issues integrating it with Nuxt prerender, only with Scully.
I have been trying to integrate Facebook Pixel with Partytown into my Angular 15 app, which uses @scullyio/scully SSG plugin with puppeteer to prerender the pages.
Partytown works perfectly in development mode and with ng build, however, the prerender process with scully gives an error, which is getting saved in the pre-rendered HTML as well, and it won't work in production mode possibly because of that.
I have tried to disable the pixel code during the prerender, but it did not work, and even if I remove the error from the rendered HTML, it will give the same error: Error: * not found.
My code after prerender:
`
`
Could someone give me guidance on what should I try next? I am out of options as of now. I had no issues integrating it with Nuxt prerender, only with Scully.