https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
c

cool-morning-48923

01/17/2024, 2:22 PM
Hello everyone, pls help me, I'm trying to settings my first A/B experiment, but without success, I can't view the changes after start experiment, by the way, i can't view it on preview mode also. I used script directly in my HTML without installing first (the last screen) What I'm doing wrong?
r

rhythmic-agent-34208

01/17/2024, 8:18 PM
Hi Anyshoara, thanks for reaching out. The first thing I noticed is that in your code snippet, you are not sending any data to your data source within the ​`trackingCallback`​, only logging the info to the console. Is that intentional? If so, are you storing the data using a different approach? This is important if you want to be able to analyze your experiment's results. Which Data Source and/or Data Warehouse are you using? GA4? Segment? Something else?
Can you please send me a screenshot of the full Experiment page and the detail page for the SDK Connection? Are you using URL Targeting?
c

cool-morning-48923

01/17/2024, 10:10 PM
Hi, trackingCallback is for sending events, but for testing I put only console log to view response I will send event for GA4, like this: dataLayer.push({ event: 'viewed_experiment', experiment_id: experiment.key, variant_id: result.key, }); the problem is that I dont seen any change
Detail page for the SDK Connection
r

rhythmic-agent-34208

01/23/2024, 10:34 AM
Hi Anyshoara, I noticed that your SDK connection is only configured to work in the Production environment. Is that the same environment the Visual Editor changes were made in, and the same environment from which you're trying to launch the preview?
Based on the screenshot you sent of the SDK detail page, it looks like the SDK is configured correctly.
And just to clarify, are the changes you made in the Visual Editor simple text changes?
In order to help troubleshoot further, I'd need for you to open Chrome Developer Tools --> GrowthBook and send me some screenshots of what you see
c

cool-morning-48923

01/25/2024, 12:40 PM
yes, SDK connection is only configured to work in the Production environment, is the same environment the Visual Editor changes I made and I'm trying to launch the preview for te simple text change
r

rhythmic-agent-34208

01/25/2024, 4:59 PM
Can you please send me some screenshots of what you see when you open the Chrome Developer tools? Navigate to the page you're changing with the Visual Editor. Open Chrome Developer Tools: OPTION + COMMAND + j on Mac CONTROL + SHIFT + j on Windows Click on the double right-facing arrows on the right side of the navbar to show the dropdown. Click on GrowthBook. You should see something like this: Click the down arrows on the right of each feature for more debugging info: Can you send me some screenshots from here?
c

cool-morning-48923

01/26/2024, 9:47 PM
her is my screen
we found the error, forgot to call function loadFeatures() after init growthbook, thanks for help!
6 Views