Skip to content
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

Scripts blocked with 'script-tag' type should run when the user clicks accept without reload #85

Open
nklido opened this issue Feb 23, 2022 · 2 comments

Comments

@nklido
Copy link

nklido commented Feb 23, 2022

Steps to reproduce

  1. Add a script e.g. google tag manager to a webpage
<script type="text/plain" data-consent="googletagmanager">
  // tag manager code here
</script>
  1. Add google tag manager as a service in CookieConsent config
services: {
  google_tag_manager: {
    category: 'marketing',
    type: 'script-tag',
    search: 'googletagmanager',
    language: {
    locale: {
        en: {
          name: 'Google tag manager'
        }
      }
    }
  }
}
  1. Visit website and click accept all cookies

expected behavior: Google tag manager is re-inserted with type="text/javascript" and runs

actual behavior: Nothing happens. The tag manager script will run after user reloads the page

@ksaltik
Copy link

ksaltik commented Sep 5, 2022

This script don't support Tag Manager. Google Consent Mode something they develop. This script need s to support it if you use Tag Manager you cannot use this scipt

@megasaab
Copy link

Should it work if a accept only needed type of cookie?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants