Creating an experiment using the automation API
This tutorial provides a detailed guide on executing fundamental tasks within our platform. You will learn how to:
- create a new experiment,
- push and modify code into the variant of the experiment,
- create a new segment for the experiment,
- create a new goal for the experiment,
- partially update the experiment with the goal and the segment, and finally,
- launch the experiment in the Kameleoon editor.
These operations will be demonstrated using our automation API in conjunction with the Kameleoon code editor, allowing for efficient and streamlined experimentation.
Authorization
To access the automation API, you must first obtain an access token by providing your client_id
and client_secret
to the authorization endpoint. Use this token as a Bearer Token in the Authorization header of your HTTPS requests.
How to find the client_id
and the client_secret
To obtain your access token in your Kameleoon account, you need to collect the client_id
and client_secret
.
To do this, navigate to My Profile located in the top right corner of the page. Once you’re on that page then, click on See My API Credentials located at the top center.
You will find your client_id
and client_secret
there. Below is an example of what their values may look like:
Once you gathered the client_id and client_secret, send a POST request to https://api.kameleoon.com/. Below is an example of that request:
curl \
-H "Content-Type: application/x-www-form-urlencoded" \ -d 'grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET' \"https://api.kameleoon.com/oauth/token"
After the request is successfully sent, you will receive a server response as a JSON object that contains the access token. Below is an example of the server response:
{
"access_token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJLQU1FTEVPT05fQkFDS19PRkZJQ0UiLCJzdWIiOiJtaWNrYWVsLmdAYWxsb3BuZXVzLmNvbSIsImF1ZCI6IkJBQ0tfT0ZGSUNFIiwidHlwIjoiQUNDRVNTX1RPS0VOIiwiZXhwIjoxNTc3MzY1Nzc3fQ.Ulfz_dw1zGbyRJZMZwpn5STzWCVnrbXbL2UYQ6VhFb1sN81cVHJuljl3RsIMbTLz8NwyCUfMTQLZkLBz2ChnDA"
}
Accessing the automation API using the access token
Once you have obtained your access token, you can send standard REST API calls as HTTPS requests. The access token must be in the authorization request header. Below is an example of a cURL request:
curl \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET' \
"https://api.kameleoon.com/oauth/token"
All API requests must be made over HTTPS. Calls made using plain HTTP will fail. Additionally, API requests without authentication will also be unsuccessful.
Using the automation api to perform specific operations
Once you gain access to the automation API, you will be able to perform specific tasks.
Create a new experiment
Required parameters in the payload
Name | Type | Description |
---|---|---|
baseURL | String | URL of the experiment page you want to load in the graphic editor. |
name | String | Name of your experiment. |
siteId | String | siteId of the project on which you want to create the experiment. |
type | String | Type of experiment (e.g, DEVELOPER for code-based experiments). Please refer to the automation API reference for the list of allowable values for this parameter. |
To create a new code-based A/B test, (for instance, named Experiment_1
) using the automation API, you must first obtain the siteId
.
To find the siteId
, log in to your Kameleoon account.
Then, navigate to the bottom left corner of the page and select Projects under the Admin section, as illustrated in the screenshot below:
Once you go to your selected project, click on Edit.
Next, you will be redirected to this page:
The siteId
is the 5-digit number in the page URL; in this example, it is 29353.
Once you have the siteID
, include it in the payload with the baseURL
, experiment name
, and experiment type
. Then, send a POST request to the /experiments (CREATE NEW EXPERIMENT)
endpoint:
curl -L -X POST 'https://api.kameleoon.com/experiments' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Authorization: Bearer eyJraWQiOiJLYW1lbGVvb24iLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIyOTU0OS1hYXRpcXVlLWthbWVsZW9vbi1jb20iLCJhdWQiOiIyOTU0OS1hYXRpcXVlLWthbWVsZW9vbi1jb20iLCJkb21haW4iOiJrYW1lbGVvb24iLCJpc3MiOiJodHRwOlwvXC9hcGkua2FtZWxlb29uLmNvbVwvYW1cL2thbWVsZW9vblwvb2lkYyIsImV4cCI6MTczNDU3NjQxMiwiaWF0IjoxNzM0NTY5MjEyLCJqdGkiOiJHUWV2TUNGdFN5c3NnWEs0VnA5UFBZUHlzXzBWTmxoR0ZtNVZtRnpQLVAwIiwidXNlcm5hbWUiOiJhYXRpcXVlQGthbWVsZW9vbi5jb20ifQ.KesGMwv9yZWuPeqxaZfsTKfN1mQgR8SUorYJDJYFed-IzGwOLypml_AyO291G0kSR62Pse9OFNJHqMHYbJNdGzSDemvIrrzqH5PA_Wj4TJFXB8eyf_FbRohVbD_6wiA0MUuq7LGTDkUE6TTBD6fxVD6YAtGIyewyUaejVVCL2gQ2fgqYz84QhNA3Va1obQVZtmsb97N6XGRw8sx163v3eA8nKMBtn0eD7vk1aCS6CLWaAtsXtUHIZxOPkWCmyJQAZ12kvtG2Zly8N8deqeJ6B-REsIFnVCTwCE5OEQCwvVYIRjm6rCAoaigjpQsmiKsQpLZRB3xTnVt0kbcumWO77Q' --data-raw '{"baseURL":"https://test-site.fr/","name": "Experiment_1", "siteId": 29353,"type":"DEVELOPER"}'
A successful API request will return the following JSON object:
{
"id":283505,"siteId":29353,"name":"Experiment_1","siteCode":"f17c21u1ag","baseURL":"https://test-site.fr/","type":"DEVELOPER","tags":[],"trackingTools":[],"status":"draft","dateCreated":"2024-12-20T16:30:39.055054758","goals":[],"autoOptimized":false,"deviations":{"origin":0.5,"1053310":0.5},"respoolTime":{},"variations":[1053310],"dateModified":"2024-12-20T16:30:39.054675832","dateStatusModified":"2024-12-20T16:30:39.054675832","isArchived":false,"collectingDataEnabled":true,"createdBy":29549,"schedules":[],"attributionWindow":604800000,"executeCodeForReference":true,"isMultipleTestingCorrection":false,"isLegacyEditor":false
}
Go back to your experiments dashboard of your Kameleoon account and refresh the screen. Experiment_1
, has been published:
Push and modify javascript code into the variant of the new experiment
Required parameters in the payload
Name | Type | Description |
---|---|---|
jsCode | String | JS code you want to update/change/add. |
name | String | Name of your variation. |
experiment id | String | Unique id of the experiment the variation belongs to. |
Once you have created an experiment, you can update its variant (Variation 1
) with code. For instance, if you want to push the following code:
Kameleoon.API.Core.runWhenElementPresent("#bloc-567, .cta-button, #bloc-789", function (elements) {
document.querySelector(".cta-button, #bloc-789").innerText = "More new text";});
runWhenElementPresent()
is a method from our activation API that executes a JavaScript function (callback) as soon as a specific element appears in the DOM.
Before pushing this code, you will need the Variation ID
and Experiment ID
for Experiment_1
. To find the variation ID of Variation 1
, navigate to the experiments dashboard in your Kameleoon account and click on Experiment_1
where both the Variation ID
and Experiment ID
will be displayed:
Include in the payload the Variation ID
, the Experiment ID
, the jsCode
and the variation name
.
Then, send a PATCH request to the /variations/:variationId (PARTIALLY UPDATE A VARIATION)
endpoint:
curl -L -X PATCH 'https://api.kameleoon.com/variations/1053310' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Authorization: Bearer eyJraWQiOiJLYW1lbGVvb24iLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIyOTU0OS1hYXRpcXVlLWthbWVsZW9vbi1jb20iLCJhdWQiOiIyOTU0OS1hYXRpcXVlLWthbWVsZW9vbi1jb20iLCJkb21haW4iOiJrYW1lbGVvb24iLCJpc3MiOiJodHRwOlwvXC9hcGkua2FtZWxlb29uLmNvbVwvYW1cL2thbWVsZW9vblwvb2lkYyIsImV4cCI6MTczNDU4NDEyMiwiaWF0IjoxNzM0NTc2OTIyLCJqdGkiOiJGT1Z5XzhNWU9BM3M1TUJyWmpiUGQxMFEzem9SbjdVM3J4bDZqaUdnN3RVIiwidXNlcm5hbWUiOiJhYXRpcXVlQGthbWVsZW9vbi5jb20ifQ.TEWJCSDXQf_47_C86xpR8HLjkE6TUXrbP3vNFPs4YH9lC9XL-3kdFBfEGjpnSqcYZQ6NMS6_nzE7FAAS2b1AontMR2ZPmrafGmvjD3s7Rd8CQtRCkGcV6o3K4kDKhhIc-Gs1fxDVqI0XGsZRCqlKedtmLo07OLxjsp3CC6jddd5HS_khss4MwTLOS0FjVGVIXq8a5R3lvkgmzdmTULK98naIAtzAG_uVWwelDOVvqFB1HkUTNx66ijFH-Dv_fi_cfk2FoCzGAgkguO3i9CvjUXIzsDYcqCEhy7YjY8P3ZQZ45E_7IzbPxuQpE1yKJx9duNNyfxyHAylXfK-iUxjgow’ –data-raw ‘{
"experimentId": 283505,
"jsCode": "Kameleoon.API.Core.runWhenElementPresent(".cta-button, #bloc-789", function (elements) {
document.querySelector(".cta-button, #bloc-789").innerText = "Text";})",
}’
A successful API request will return the following JSON object:
{
"id":1053310,"siteId":29353,"name":"Variation 1","color":1,"jsCode":"Kameleoon.API.Core.runWhenElementPresent("#bloc-567, .cta-button, #bloc-789", function (elements) {
document.querySelector(".cta-button, #bloc-789").innerText = "Text";})","isJsCodeAfterDomReady":false,"widgetTemplateInput":{},"forceNoFlicker":false,"experimentId":283505,"customJson":"{}"
}
Then, go back to your experiment dashboard and open Variation 1
of Experiment_1
in the code editor as shown below:
The JS Console will be updated with the code pushed using the API:
Now that you have injected some code into the variation, you can to modify the code. For instance, you want to update the inner text of the .CTA button from Text
to Updated text
. You will send a PATCH request to the same endpoint as above, only updating the JS code in the request body:
curl -L -X PATCH 'https://api.kameleoon.com/variations/1053310' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Authorization: Bearer eyJraWQiOiJLYW1lbGVvb24iLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIyOTU0OS1hYXRpcXVlLWthbWVsZW9vbi1jb20iLCJhdWQiOiIyOTU0OS1hYXRpcXVlLWthbWVsZW9vbi1jb20iLCJkb21haW4iOiJrYW1lbGVvb24iLCJpc3MiOiJodHRwOlwvXC9hcGkua2FtZWxlb29uLmNvbVwvYW1cL2thbWVsZW9vblwvb2lkYyIsImV4cCI6MTczNDU4NDEyMiwiaWF0IjoxNzM0NTc2OTIyLCJqdGkiOiJGT1Z5XzhNWU9BM3M1TUJyWmpiUGQxMFEzem9SbjdVM3J4bDZqaUdnN3RVIiwidXNlcm5hbWUiOiJhYXRpcXVlQGthbWVsZW9vbi5jb20ifQ.TEWJCSDXQf_47_C86xpR8HLjkE6TUXrbP3vNFPs4YH9lC9XL-3kdFBfEGjpnSqcYZQ6NMS6_nzE7FAAS2b1AontMR2ZPmrafGmvjD3s7Rd8CQtRCkGcV6o3K4kDKhhIc-Gs1fxDVqI0XGsZRCqlKedtmLo07OLxjsp3CC6jddd5HS_khss4MwTLOS0FjVGVIXq8a5R3lvkgmzdmTULK98naIAtzAG_uVWwelDOVvqFB1HkUTNx66ijFH-Dv_fi_cfk2FoCzGAgkguO3i9CvjUXIzsDYcqCEhy7YjY8P3ZQZ45E_7IzbPxuQpE1yKJx9duNNyfxyHAylXfK-iUxjgow’ –data-raw ‘{
"experimentId": 283505,
"jsCode": "Kameleoon.API.Core.runWhenElementPresent("#bloc-567, .cta-button", function (elements) {
document.querySelector(".cta-button, #bloc-789").innerText = "Updated Text";})",
}’
Once you have received a successful API response, go back to the code editor to Experiment_1
and refresh the page to see the updated code:
Create a new segment to target visitors of a given page URL
Required parameters in the payload
Name | Type | Description |
---|---|---|
conditionsData | Object | This object defines the targeting conditions to precisely target users based on certain specifications. For more information, please refer to our automation API documentation for the detailed structure of this object |
name | String | Your segment name. |
segment type | String | STANDARD for a segment being used in an experiment. Please refer to our automation API documentation to see other allowable values for this type of segment. |
siteId | String | Please refer to create a new experiment section for instructions on how to retrieve this code. |
Once you have created an experiment and updated its variation, you will want to associate a segment with it.
Segments are created to precisely target visitors under certain conditions. For instance, if you want to expose visitors that browse a specific webpage that exactly matches a certain URL (e.g., wwww.site-test.com
), you can create a New_segment
targeting PAGE_URL
.
To create a new segment, send a POST request to the /segments (CREATE A NEW SEGMENT)
endpoint.
Include in the payload the conditionsData
, segmentType
and siteId
, which will be represented in the following cURL request:
curl -L -X POST 'https://api.kameleoon.com/segments' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Authorization: Bearer eyJraWQiOiJLYW1lbGVvb24iLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIyOTU0OS1hYXRpcXVlLWthbWVsZW9vbi1jb20iLCJhdWQiOiIyOTU0OS1hYXRpcXVlLWthbWVsZW9vbi1jb20iLCJkb21haW4iOiJrYW1lbGVvb24iLCJpc3MiOiJodHRwOlwvXC9hcGkua2FtZWxlb29uLmNvbVwvYW1cL2thbWVsZW9vblwvb2lkYyIsImV4cCI6MTczNDU3NjQxMiwiaWF0IjoxNzM0NTY5MjEyLCJqdGkiOiJHUWV2TUNGdFN5c3NnWEs0VnA5UFBZUHlzXzBWTmxoR0ZtNVZtRnpQLVAwIiwidXNlcm5hbWUiOiJhYXRpcXVlQGthbWVsZW9vbi5jb20ifQ.KesGMwv9yZWuPeqxaZfsTKfN1mQgR8SUorYJDJYFed-IzGwOLypml_AyO291G0kSR62Pse9OFNJHqMHYbJNdGzSDemvIrrzqH5PA_Wj4TJFXB8eyf_FbRohVbD_6wiA0MUuq7LGTDkUE6TTBD6fxVD6YAtGIyewyUaejVVCL2gQ2fgqYz84QhNA3Va1obQVZtmsb97N6XGRw8sx163v3eA8nKMBtn0eD7vk1aCS6CLWaAtsXtUHIZxOPkWCmyJQAZ12kvtG2Zly8N8deqeJ6B-REsIFnVCTwCE5OEQCwvVYIRjm6rCAoaigjpQsmiKsQpLZRB3xTnVt0kbcumWO77Q' --data-raw '{
"name": "New segment",
"description": "Target by webpage",
"siteId": 29353,
"segmentType": "STANDARD",
"conditionsData": {
"firstLevelOrOperators": [true],
"firstLevel": [
{
"conditions": [
{
"targetingType": "PAGE_URL",
"weight": 1,
"url": "wwww.site-test.com",
"matchType": "EXACT",
"include": true
}
]
}
]
}
}'
A successful API request will return the following JSON object:
{
"id":298314,"name":"New segment","description":"Target by webpage","conditionsData":{"firstLevelOrOperators":[],"firstLevel":[{"orOperators":[],"conditions":[{"id":1822233,"targetingType":"PAGE_URL","weight":1,"url":"wwww.site-test.com","matchType":"EXACT","include":true}]}]},"siteId":29353,"audienceTracking":false,"audienceTrackingEditable":true,"isFavorite":false,"dateCreated":"2024-12-20T17:01:11.284544295","dateModified":"2024-12-20T17:01:11.315915641","tags":[],"experimentAmount":0,"personalizationAmount":0,"experiments":[],"personalizations":[],"createdBy":29549,"hasSegmentCondition":false,"usedBySegmentCondition":false,"segmentType":"STANDARD","featureFlagAmount":0
}
Create a new goal for the experiment
Required parameters in the payload
Name | Type | Description |
---|---|---|
description | String | a description of your goal (e.g, Number of times CTA button was clicked) |
name | String | Name of your goal (e.g, Clicks on CTA) |
siteId | String | Please refer to create a new experiment section for instructions on how to retrieve this code. |
params | Object | This includes the specifications for the element you want to track, such as the button you are monitoring for the number of clicks. |
To determine what you want to improve in an experiment, it must be linked to a main goal and optional goals. These goals are success metrics for your campaign.
For instance, for Experiment_1
, your goal is to track the number of clicks on the .CTA button you added in this step. Include in the payload a description
of your goal, name
of the goal, siteId
, and params
which is an object that will contain the Css selectore which will identify the .CTA button for this goal.
Then send a POST request to the /goals (CREATE A NEW GOAL)
endpoint:
curl -L -X POST 'https://api.kameleoon.com/goals' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Authorization: Bearer eyJraWQiOiJLYW1lbGVvb24iLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIyOTU0OS1hYXRpcXVlLWthbWVsZW9vbi1jb20iLCJhdWQiOiIyOTU0OS1hYXRpcXVlLWthbWVsZW9vbi1jb20iLCJkb21haW4iOiJrYW1lbGVvb24iLCJpc3MiOiJodHRwOlwvXC9hcGkua2FtZWxlb29uLmNvbVwvYW1cL2thbWVsZW9vblwvb2lkYyIsImV4cCI6MTczNDYyNzA2NSwiaWF0IjoxNzM0NjE5ODY1LCJqdGkiOiJ5UGEzMVlzV2E2SkFydklXaW5sal9pZmdSa285bF9sZ21Qb3BESHhtaWZrIiwidXNlcm5hbWUiOiJhYXRpcXVlQGthbWVsZW9vbi5jb20ifQ.UqNwlrYAuuN1iBEjtTlhzk9t-4XSRJHB7h6rNwFtKAcFpfs_P574Kp4vea9pnldSUHSJrDrpq-Btstxly36uE6v5B8NEXdH_CkZXkwQ1QfETnPEdKH-m3C90LrQaePmcfV7QD1ycNoEWfkQ2Ybi-_-3oUuKeQiAcWlKNWyDHf4QdyH87_OldWr_gFpxj_hv_KVxAHc-a1688o2YsgHpziBd-1Cump6elcFmMtLa5T_qq78QFybtfzJobj7Zpr_SuXLuizwmyOyZi9RJv6zy_8dBQ_GqCZKIprH6bMIryJNKIQh3p5HvQeMJIJ_XWtBn0t7jM3ikzLpVrWZ-RyXBu_A ' --data-raw '{
"description": "Number of time CTA button was clicked",
"hasMultipleConversions": true,
"mentalistWeight": 0,
"name": "Clicks on CTA",
"params": {
"customSelectors":[
{
"id": string,
"mode":"CUSTOM",
"selector":".cta-button, #bloc-789"
}
]
},
"siteId": 29353,
"status": "ACTIVE",
"tags": [
"string"
],
"type": "CLICK"
}'
A successful API request will return the following JSON object:
{
"id":361517,"name":"Clicks on CTA","siteId":29353,"description":"Number of times CTA button was clicked","isMainGoal":false,"mentalistWeight":0.0,"hasMultipleConversions":true,"type":"CLICK","params":{"customSelectors":[{"id":186564,"mode":"CUSTOM","selector":"xyz"}]},"dateCreated":"2024-12-20T20:00:52.271629543","trackingTools":["GOOGLE_ANALYTICS4"],"isActive":true,"isArchived":false,"dateModified":"2024-12-20T20:00:52.271641718","tags":["string"],"isTargetingSegmentMentalist":false,"createdBy":29549,"experimentAmount":0,"personalizationAmount":0,"experiments":[],"personalizations":[],"featureFlagAmount":0,"status":"ACTIVE","accessLimiters":[]
}
After successfully creating a goal and a segment for Experiment_1
, you can use the automation API to link them to to launch your campaign.
Update the experiment with goal and segment then launch
Required parameters in the payload
Name | Type | Description |
---|---|---|
targetingSegmentId | String | Segment Id you want to associate your experiment with. |
goals | Array | goal Id(s) you want to associate your experiment with. |
deviations | Object | Used to specify how you will divide the visitor traffic between the control and variation. |
mainGoalId | String | This is the goal id to associate to your campaign as the main goal. In this example, it is the id of the goal you created in the previous step |
status | String | Status of your experiment. Acceptable values are ONLINE , PAUSED , DRAFT , STOPPED , PLANNED , DIVERTED . |
To link the segment and the goal created in the previous steps to launch your campaign, you must partially update Experiment_1
with the automation API.
Include in the payload the targetingSegmentId
, goalId
, and deviations
(this is the traffic distribution between the original and variation 1). Remember to split visitor traffic evenly at 50/50 before activation.
Then, send a PATCH request to the /experiments/:experimentId (PARTIALLY UPDATE EXPERIMENT)
endpoint.
You need to add ?action=ACTIVATE
to the request header to activate the experiment, which translates to: /experiments/:experimentId?action=ACTIVATE
.
This cURL request above will be formatted as follows:
curl -L -X PATCH 'https://api.kameleoon.com/experiments/283505?action=ACTIVATE' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Authorization: Bearer eyJraWQiOiJLYW1lbGVvb24iLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIyOTU0OS1hYXRpcXVlLWthbWVsZW9vbi1jb20iLCJhdWQiOiIyOTU0OS1hYXRpcXVlLWthbWVsZW9vbi1jb20iLCJkb21haW4iOiJrYW1lbGVvb24iLCJpc3MiOiJodHRwOlwvXC9hcGkua2FtZWxlb29uLmNvbVwvYW1cL2thbWVsZW9vblwvb2lkYyIsImV4cCI6MTczNDczNDEzNiwiaWF0IjoxNzM0NzI2OTM2LCJqdGkiOiI1RHFaZ3FaUjMyRnNqcHJ4b2FVTHdaSWZuWVNGa0kxd0Q1VzE2dTk5eE5rIiwidXNlcm5hbWUiOiJhYXRpcXVlQGthbWVsZW9vbi5jb20ifQ.hPTz2zC38EA0eBWqx65a7y0EvKh_bpfAA7CFCcqlCPhtP-X0pnmxI2YSoC8vu4A65Q524zPzerTiq9mxB3LBvwkfze2NPshfN942o6Mv0mwpQrss4R6v-nshWwwAXs2rHfx68EvL_mtXmsLlqy7Ke-9HwfYBhzwHuePsLQBK_puN1ZP0xxskIGcdHh8W1gjCeEdpm7UFaj2dYLwXi3n5aoGDM6zEILRbVtMqaLEODQeomFKE-8QnXmP-be6al4oXNOAXDEoCvCuEpF53n0n2FJOonj-u0knwJFFgya8IxDop_w0Cqaf930eHLXPeQkDmtiGREFSpL2_aVzJF3UUrCQ' --data-raw ‘{
"targetingSegmentId":298314,
"goals":[361517],
"deviations":{"origin":0.5, "1053310":0.5},
"mainGoalId":361517,
"status":online,
}’
A successful API request will return the following JSON object:
{
"id":283505,"siteId":29353,"name":"Experiment_1","siteCode":"f17c21u1ag","baseURL":"https://test-site.fr/","type":"DEVELOPER","tags":[],"trackingTools":[{"name":"KAMELEOON_TRACKING"}],"status":"active","dateCreated":"2024-12-20T16:30:39","goals":[361517],"targetingSegmentId":298314,"mainGoalId":361517,"autoOptimized":false,"deviations":{"origin":0.5,"1053310":0.5},"respoolTime":{},"targetingConfiguration":"SAVED_TEMPLATE","variations":[1053310],"dateModified":"2024-12-20T21:48:05.073341353","dateStarted":"2024-12-20T21:48:05.073533301","dateStatusModified":"2024-12-20T21:48:05.073533301","isArchived":false,"collectingDataEnabled":true,"createdBy":29549,"schedules":[],"attributionWindow":604800000,"executeCodeForReference":true,"isMultipleTestingCorrection":false,"isLegacyEditor":false
}
Go to your experiment dashboard and refresh the page:
The status of Experiment_1 is Online indicating that your campaign has been successfully launched.