Replies: 1 comment 1 reply
-
Hi, you should append the script asynchronously too |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm attempting to activate a script once a user gives cookie consent, using the custom event
ptupdate
. My approach involves listening for a consent event and then dispatchingptupdate
, but it's not working as expected. Here's the brief setup:I even tried triggering
window.dispatchEvent(new CustomEvent('ptupdate'))
directly in the Chrome DevTools console, but still no response from Partytown. Does anyone know why this might be happening or how to fix it?This is the cookie consent library I'm using: https://cookieconsent.orestbida.com/
Thanks for any help! :)
Beta Was this translation helpful? Give feedback.
All reactions