Overview
The Optimizely Data Platform (ODP) JavaScript tag helps you track your website events (like page views) and customer information.
Copy the tag from your account
Follow the steps below to copy and install your tracking tag. If you have already installed the tracking tag, learn how to verify installation and troubleshoot issues.
- Go to Account Settings > Integrations > JavaScript Tag.
- Below the embed code, select Copy to Clipboard.
- Place the snippet on every page you would like to track events and customer information. We recommend placing the snippet before the closing
</head>
element of your site.
Verify that the tag is properly installed
If you are not seeing any of the website events, verify that you have installed the tracking tag properly and that it is firing correctly:
- Go to Account Settings > Integrations.
- Locate your Tracker ID, which is unique to each ODP account.
- Open a page on your website and right-click anywhere on the page.
- Select View page source or View source.
- Use CTRL-F or CMD-F to search for the Tracking ID that you copied.
- If the tracking tag appears, verify that the code has been copied and pasted correctly from your integration information in your account settings.
If the tracking tag does not appear or is incorrect, follow these steps to install it properly. If your tracking tag appears and has been copied and pasted correctly, verify that it is firing:
- Open a page on your website and right-click anywhere on the page.
- Select Inspect Element or Inspect. A toolbar will appear at the bottom or side of your screen.
- Click the Network tab, then refresh your page.
- Click the Name column to sort the elements alphabetically, then look for zaius-min.js.
- Next to zaius-min.js, you should see 304 Not Modified or 200 OK in the Status column.
If you see any other status or the .js code is not found, your tracking code may not be firing correctly. Contact Support for further troubleshooting steps and assistance.