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

[Bug] Error - missing clientKey when client key has been provided #2326

Open
vladcel-fe opened this issue Apr 2, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@vladcel-fe
Copy link

Summary

We have added Growthbook script following this documentation page to enable visual editor - https://docs.growthbook.io/guide/google-tag-manager-and-growthbook

This is the code that we have used. Client key and domain replaced with "xxxxx".

<script async data-client-key="xxxxx" data-api-host="xxxxx.yyyyy.com" src="https://cdn.jsdelivr.net/npm/@growthbook/growthbook/dist/bundles/auto.min.js"
></script>

Expected Behavior

Script loads successfully and we can perform experiments using visual editor.

Current Behavior

We receive an error from https://cdn.jsdelivr.net/npm/@growthbook/growthbook/src/GrowthBook.ts
"Missing clientKey" so we can't use visual editor for experiments.

@vladcel-fe vladcel-fe added the bug Something isn't working label Apr 2, 2024
@jdorn
Copy link
Member

jdorn commented Apr 2, 2024

Do you have an example page where it's throwing this error you can link to? I'm not able to reproduce

@Birello336
Copy link

Hi, had the same problem. You need to use " Support document.write" setting in GTM

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants