Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleProfile JSON structure
{
   "id":"<profileId>",
   "version":"1.0",
   "createdAt":<timestamp milliseconds>,
   "modifiedAt":<timestamp milliseconds>, // deprecated!
   "sessions":[
	{
            "id":"<sessionId>",
            "createdAt":<timestamp milliseconds>,
            "modifiedAt":<timestamp milliseconds>, // deprecated!
            "collectApp":"<collect app name>",
            "section":"<section name>",
            "data":{
				"key":"value"
	            "countryCode":0,
                "countryName":"<a country>",
                "region":"<a region>",
                "city":"<a city>",
                "postalCode":null,
                "latitude":0.0,
                "longitude":0.0,
                "dmaCode":0,
                "areaCode":0,
                "metroCode":0
            },
            "events":[
               {
                  "id":"<eventId>",
                  "createdAt":<Timestamp milliseconds>,
                  "definitionId":"<definitionId>",
                  "data":{
					"key":"value"
                  }
               }
            ]
         }
   ],
   "attributes":[
	  {
        "collectApp": "<collect app name>",
        "section": "<section name>",
        "modifiedAt": <timestamp milliseconds>, // deprecated!
        "data": {
          "key": "value"
        }
      }
   ]
}

...