This message was deleted.
# ask-questions
w
This message was deleted.
h
hard to say. Looks kind of like the GTM sample code I wrote for our GTM tutorial. At minimum, your <script> tag is missing the
id="growthbook-sdk"
attribute at the top of your snippet. Devil's in the details though especially with async loading using GTM...
g
To give you some context, I’ll attach the prompt I used to give me this output and it’s based on the growthbook GTM tutorial if that’s the one you’re referring to. I struggled to fully understand what I needed to do since I come from a marketing background and never touch code. In my first screenshot, on which line should I add
id="growthbook-sdk"
?
h
oh I see, you've got the id in the other <script> tag which actually loads the .js file. That will probably work...
You can try it and see what happens. If you grab our devtools Chrome extension, it should help you verify that the SDK is successfully set up and triggering features/experiments
g
Thanks for that tip! I’ll likely publish it next week when I have some backup just in case. I have downloaded the extension so I’ll make sure to use that also.
134 Views