Skip to content

GTM Script loaded in <script> but not running #17

Answered by dargmuesli
arthurgorecki asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @arthurgorecki, thanks for checking out this repo.
This repo continues the work done on nuxt-cookie-control and was published as a major release of v2 with breaking changes and Vue 3 support only. I recommend reading this repo's README and comparing the definitions in there with your code.

I see that you use cookies.(necessary|optional).cookies e.g., which is called cookies.(necessary|optional).targetCookieIds in v2. Also, the following properties do not exist anymore:

  • cookies.(necessary|optional).async
  • cookies.(necessary|optional).accepted
  • cookies.(necessary|optional).declined
  • cookies.(necessary|optional).initialState

To react to cookies being accepted or declined you could watch

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dargmuesli
Comment options

Answer selected by dargmuesli
Comment options

You must be logged in to vote
1 reply
@dargmuesli
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #15 on January 06, 2023 06:13.