-
data-cookiecategory on script only works the first time. If a user clicks a second time on accept or deny consent, the script is not enabled or disabled. There is a solution? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
orestbida
Apr 5, 2023
Replies: 1 comment 3 replies
-
Yes, this is by design; If you want to have more control you can use the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You cannot change the behavior of the
<script>
elements. There is no easy way to achieve the end result you'd like to get to, you'd need to adapt each script so that it can be used inside theonAccept
andonChange
callbacks.E.g. the following snippet:
can be adapted to: