Get started with the ODP Web SDK
How to set up the Web SDK to track events and customer information using Optimizely Data Platform (ODP).
Before getting started with the ODP Web SDK, you should be familiar with the schemas and data structure of ODP. SeeUnderstand ODP.
Step 1. Implement the JavaScript tag
The first step to working with the Web SDK is to add the JavaScript tag to your web pages where you would like to trackCustomer andEvent data. For instructions, seeimplement the the ODP JavaScript tag.
📘
NoteYou should place the Web SDK snippet before the closing
</head>element of your site.
The ODP JavaScript tag automatically passes the cookie identifier.
Step 2. Add code to send customer and event data
After implementing the JavaScript tag, you can send customer and event data to ODP by adding custom JavaScript code to your web pages.
Updated 26 days ago