Disclaimer: This website requires JavaScript to function properly. Some features may not work as expected. Please enable JavaScript in your browser settings for the best experience.

HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

JSON tracking requests

Shows the structure common to JSON tracking requests in Optimizely Recommendations and the additional elements needed for each request type, with examples.

Elements are mandatory unless they are labeled as optional, and the data type for each value is assumed to be string unless otherwise noted.

📘

Note

All numbers are 64-bit integers, like Java longs.

Indentation and extra whitespace in the JSON response examples are added for readability of the JSON data; spaces are not required in the actual JSON responses.

For information about adding customAttributes and customer elements to a page tracking request, see Add customAttributes or customer elements (optional).