Skip to content

Page script external #272

Answered by orestbida
gh4l3b asked this question in Q&A
Mar 22, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @gh4l3b,

you should be able to achieve this desired configuration using google's consent mode. Perhaps this discussion might come in handy.

You can use the .loadScript() method inside the onAccept and onChange callbacks to load external scripts like gtag etc. Check the API for more details and examples.

The plugin does not yet support toggling of individual services inside a category. Such configuration will be possible when v3 comes out. As of now, you'd need to treat the service as a category itself, which might not be the desired behavior.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@gh4l3b
Comment options

@orestbida
Comment options

@gh4l3b
Comment options

Answer selected by gh4l3b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants