Skip to main content
menu-icon.png

 

x
Optimizely Knowledge Base

Access the datafile for a Full Stack project

This article includes general information about datafiles and how to access the datafile. For details about using the datafile in an Optimizely Full Stack SDK or accessing the datafile via CDN or REST API, check out our developer documentation instead.
relevant products:
  • Optimizely X Full Stack

HIS ARTICLE WILL HELP YOU:
  • Access the datafile for an Optimizely X Full Stack project
  • Debug and troubleshoot an Optimizely X Full Stack experiment

The datafile is a JSON representation of your Optimizely X Full Stack project. It contains all the instructions needed to run your experiments.

The datafile is updated immediately after changes to your experiments, but it may take a few seconds to upload to the content delivery network (CDN). It’s important that you can update your experiments within seconds. If you’re experiencing delays longer than a minute, please contact Optimizely support.

See additional resources
Here are all our articles about the Optimizely dashboard, which you'll use to create projects, add collaborators, manage privacy settings, and more: 

Here's our developer documentation, where you'll find code samples, full references for our SDKs, and getting started guides.

In general, you don’t need to access the datafile, but it can be handy if your experiments don’t update as expected. The datafile can help you debug a Full Stack experiment and confirm expected updates.

Access the datafile

Here's how to access the datafile for your Full Stack project, with step-by-step instructions below:

datafile-open.gif

  1. Navigate to Settings > Datafile.

  2. Find the SDK Key/Primary URL for the project and environment whose datafile you want to access.

  3. Click the SDK Key/Primary URL to open the CDN link in a new browser tab or window.

 

Here's how the datafile looks when you open the CDN link:

datafile.png

Here's the datafile in properly formatted JSON:

{  
   "version":"4",
   "rollouts":[  
      {  
         "experiments":[  
            {  
               "status":"Running",
               "key":"10599896553",
               "layerId":"10610974864",
               "trafficAllocation":[  
                  {  
                     "entityId":"10590665899",
                     "endOfRange":2500
                  }
               ],
               "audienceIds":[  

               ],
               "variations":[  
                  {  
                     "variables":[  

                     ],
                     "id":"10590665899",
                     "key":"10590665899",
                     "featureEnabled":true
                  }
               ],
               "forcedVariations":{  

               },
               "id":"10599896553"
            }
         ],
         "id":"10610974864"
      },
      {  
         "experiments":[  
            {  
               "status":"Not started",
               "key":"10649362172",
               "layerId":"10655341843",
               "trafficAllocation":[  
                  {  
                     "entityId":"10649442572",
                     "endOfRange":0
                  }
               ],
               "audienceIds":[  

               ],
               "variations":[  
                  {  
                     "variables":[  

                     ],
                     "id":"10649442572",
                     "key":"10649442572",
                     "featureEnabled":false
                  }
               ],
               "forcedVariations":{  

               },
               "id":"10649362172"
            }
         ],
         "id":"10655341843"
      }
   ],
   "anonymizeIP":false,
   "projectId":"7452770098",
   "variables":[  

   ],
   "featureFlags":[  
      {  
         "experimentIds":[  

         ],
         "rolloutId":"10610974864",
         "variables":[  
            {  
               "defaultValue":"hello world",
               "type":"string",
               "id":"10602266450",
               "key":"my_checkout_string"
            },
            {  
               "defaultValue":"false",
               "type":"boolean",
               "id":"10609413076",
               "key":"my_checkout_boolean"
            }
         ],
         "id":"10559519109",
         "key":"checkout_feature_2"
      },
      {  
         "experimentIds":[  

         ],
         "rolloutId":"10655341843",
         "variables":[  
            {  
               "defaultValue":"hello world",
               "type":"string",
               "id":"10650852695",
               "key":"my_newsletter_string"
            },
            {  
               "defaultValue":"true",
               "type":"boolean",
               "id":"10673230261",
               "key":"my_newsletter_boolean"
            }
         ],
         "id":"10666501164",
         "key":"newsletter_feature"
      }
   ],
   "experiments":[  
      {  
         "status":"Running",
         "key":"SPRING-2018",
         "layerId":"10458354984",
         "trafficAllocation":[  
            {  
               "entityId":"10452864724",
               "endOfRange":5000
            },
            {  
               "entityId":"10483000780",
               "endOfRange":10000
            }
         ],
         "audienceIds":[  

         ],
         "variations":[  
            {  
               "variables":[  

               ],
               "id":"10483000780",
               "key":"Promo"
            },
            {  
               "variables":[  

               ],
               "id":"10452864724",
               "key":"Nonpromo"
            }
         ],
         "forcedVariations":{  

         },
         "id":"10446158200"
      },
      {  
         "status":"Not started",
         "key":"Search_test",
         "layerId":"10796610506",
         "trafficAllocation":[  
            {  
               "entityId":"10791100929",
               "endOfRange":2500
            },
            {  
               "entityId":"10791100929",
               "endOfRange":5000
            },
            {  
               "entityId":"10801580842",
               "endOfRange":7500
            },
            {  
               "entityId":"10801580842",
               "endOfRange":10000
            }
         ],
         "audienceIds":[  
            "10621991955"
         ],
         "variations":[  
            {  
               "variables":[  

               ],
               "id":"10801580842",
               "key":"Var1"
            },
            {  
               "variables":[  

               ],
               "id":"10791100929",
               "key":"Var2"
            }
         ],
         "forcedVariations":{  

         },
         "id":"10800520584"
      },
      {  
         "status":"Not started",
         "key":"test",
         "layerId":"10839941503",
         "trafficAllocation":[  
            {  
               "entityId":"10817015713",
               "endOfRange":5000
            },
            {  
               "entityId":"10844700076",
               "endOfRange":10000
            }
         ],
         "audienceIds":[  
            "10621991955"
         ],
         "variations":[  
            {  
               "variables":[  

               ],
               "id":"10817015713",
               "key":"var1"
            },
            {  
               "variables":[  

               ],
               "id":"10844700076",
               "key":"var2"
            }
         ],
         "forcedVariations":{  

         },
         "id":"10839283415"
      },
      {  
         "status":"Paused",
         "key":"SEARCH_RESULTS_ALGORITHM",
         "layerId":"8244614304",
         "trafficAllocation":[  
            {  
               "entityId":"8246802115",
               "endOfRange":2500
            },
            {  
               "entityId":"10804270884",
               "endOfRange":3333
            },
            {  
               "entityId":"8248861685",
               "endOfRange":5833
            },
            {  
               "entityId":"10804270884",
               "endOfRange":6667
            },
            {  
               "entityId":"8249740299",
               "endOfRange":9167
            },
            {  
               "entityId":"10804270884",
               "endOfRange":10000
            }
         ],
         "audienceIds":[  
            "7452562905"
         ],
         "variations":[  
            {  
               "variables":[  

               ],
               "id":"8246802115",
               "key":"Var_1"
            },
            {  
               "variables":[  

               ],
               "id":"8249740299",
               "key":"Var_2"
            },
            {  
               "variables":[  

               ],
               "id":"8248861685",
               "key":"Var_3"
            },
            {  
               "variables":[  

               ],
               "id":"10804270884",
               "key":"Var_4"
            }
         ],
         "forcedVariations":{  

         },
         "id":"8240007452"
      },
      {  
         "status":"Paused",
         "key":"checkout-feature-new_test",
         "layerId":"10601386507",
         "trafficAllocation":[  
            {  
               "entityId":"10612001646",
               "endOfRange":5000
            },
            {  
               "entityId":"10627161961",
               "endOfRange":10000
            }
         ],
         "audienceIds":[  

         ],
         "variations":[  
            {  
               "variables":[  
                  {  
                     "id":"10601107491",
                     "value":"false"
                  },
                  {  
                     "id":"10615684379",
                     "value":"hello world"
                  }
               ],
               "id":"10612001646",
               "key":"variation_1",
               "featureEnabled":true
            },
            {  
               "variables":[  
                  {  
                     "id":"10601107491",
                     "value":"false"
                  },
                  {  
                     "id":"10615684379",
                     "value":"hello world"
                  }
               ],
               "id":"10627161961",
               "key":"variation_2",
               "featureEnabled":true
            }
         ],
         "forcedVariations":{  

         },
         "id":"10616792732"
      },
      {  
         "status":"Not started",
         "key":"checkout-feature-new-2_test",
         "layerId":"10592126539",
         "trafficAllocation":[  
            {  
               "entityId":"10617272848",
               "endOfRange":5000
            },
            {  
               "entityId":"10632620312",
               "endOfRange":10000
            }
         ],
         "audienceIds":[  

         ],
         "variations":[  
            {  
               "variables":[  
                  {  
                     "id":"10601107491",
                     "value":"false"
                  },
                  {  
                     "id":"10615684379",
                     "value":"hello world"
                  }
               ],
               "id":"10617272848",
               "key":"variation_1",
               "featureEnabled":true
            },
            {  
               "variables":[  
                  {  
                     "id":"10601107491",
                     "value":"false"
                  },
                  {  
                     "id":"10615684379",
                     "value":"hello world"
                  }
               ],
               "id":"10632620312",
               "key":"variation_2",
               "featureEnabled":true
            }
         ],
         "forcedVariations":{  

         },
         "id":"10618381383"
      }
   ],
   "audiences":[  
      {  
         "id":"7452562905",
         "conditions":"[\"and\", [\"or\", [\"or\", {\"type\": \"custom_attribute\", \"name\": \"USER_AGENT\", \"value\": \"Mobile\"}, {\"type\": \"custom_attribute\", \"name\": \"USER_AGENT\", \"value\": \"\"}]]]",
         "name":"Mobile web user"
      },
      {  
         "id":"10621991955",
         "conditions":"[\"and\", [\"or\", [\"or\", {\"type\": \"custom_attribute\", \"name\": \"Chrome-users\", \"value\": \"\"}]]]",
         "name":"Chrome users"
      }
   ],
   "groups":[  
      {  
         "policy":"random",
         "trafficAllocation":[  

         ],
         "experiments":[  

         ],
         "id":"10805270510"
      }
   ],
   "attributes":[  
      {  
         "id":"7467011421",
         "key":"USER_AGENT"
      },
      {  
         "id":"10194563393",
         "key":"Chrome-users"
      },
      {  
         "id":"10797061028",
         "key":"NEW_VISITOR"
      },
      {  
         "id":"10802200872",
         "key":"LOCATION"
      }
   ],
   "botFiltering":false,
   "accountId":"2986201432",
   "events":[  
      {  
         "experimentIds":[  

         ],
         "id":"7452800144",
         "key":"ebet"
      },
      {  
         "experimentIds":[  
            "8240007452"
         ],
         "id":"7463002034",
         "key":"SEARCH_EVENT_CLICK"
      },
      {  
         "experimentIds":[  

         ],
         "id":"7465572265",
         "key":"ebet1"
      },
      {  
         "experimentIds":[  

         ],
         "id":"10798639292",
         "key":"my_conversion"
      }
   ],
   "revision":"103"
}