BuilderIO / partytown

Relocate resource intensive third-party scripts off of the main thread and into a web worker. πŸŽ‰

Home Page:https://partytown.builder.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[🐞] Google Publisher Tag does not work

burak-basbug opened this issue Β· comments

Describe the bug

In our platform (https://partytown.nau-test.ch/) we want to run Google Publisher Tag in Partytown context and it does not work. Below I'm also providing a reproduction URL with minimal setup. The gpt ad can be found on the element with #banner-ad id.

Reproduction

https://github.com/burakbasbug/qwik-gpt-bug-reproduction

Steps to reproduce

You can use the minimal setup of Qwik + Partytown + GPT for that:

  1. create a new qwik project npm create qwik@latest
  2. add partytown to the project npm run qwik add partytown
  3. add <QwikPartytown /> component
  4. add forwarding attribute for googletag: forward={['googletag.cmd.push']}
  5. add reverse proxy as in partytown docs
  6. add google publisher tag: you can use this generic-ad example: https://developers.google.com/publisher-tag/guides/get-started#generic-ad

Browser Info

Chrome, Safari, Firefox

Additional Information

No response