-
-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat]: Allow customisation of script type
on accept (mainly for use with Partytown)
#487
Comments
Hi @spacedawwwg, this feature is already implemented in v3. However, since this is a very tiny code addition, we can also implement it in v2. |
Boom 💥 |
@orestbida If you look at the screenshot, first script is now active Thanks |
the first script in the screenshot has a cookieconsent/src/utils/scripts.js Lines 164 to 170 in 1efe109
The |
@spacedawwwg please try this branch and let me know if that fixes it! |
cookieconsent/src/cookieconsent.js
Line 1624 in 540c235
It would be nice to be able to change the type to
type="text/partytown"
and trigger aptupdate
after consent is givenhttps://partytown.builder.io/partytown-scripts#dynamically-appending-scripts
Idea 💡
on a script you add
data-type="text/partytown"
change line 1624 to:
then a user can handle their own callback
What do you think?
The text was updated successfully, but these errors were encountered: