Hello everyone, pls help me, I'm trying to settin...
# ask-questions
c
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
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
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
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
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
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
her is my screen
we found the error, forgot to call function loadFeatures() after init growthbook, thanks for help!