Basic Optivo Pixel Implementation
Enable the Optivo library on your website in under 5 minutes
What You’ll Need
Before getting started, make sure you have the following:
- Ability to add JavaScript code to your website or access to Google Tag Manager
- Access to configure your checkout success page
Basic Installation
Add the following code snippet just before the closing </body> tag on every page of your website. This loads the Optivo library and initialises it with your unique site ID.
<script src="https://id.optivo.digital/id.v1.min.js"></script>
<script>
window._OPTIVO.init('YOUR-SITE-ID');
</script>
Replace YOUR-SITE-ID with the site ID provided in your Optivo dashboard. The library will automatically begin identifying visitors as soon as the page loads.
Conversion Tracking
To track conversions, add the following snippet to your checkout success or thank-you page. This should fire once per completed transaction.
<script>window._OPTIVO.conversion();</script>
The conversion call sends a signal to the Optivo platform so it can attribute the conversion back to the original visitor identification event.
Verification
Once you’ve added the pixel to your site, open your browser’s developer tools and navigate to the Console tab. If the library is loaded correctly, you should see the following message:
[OPTIVO]: Active on this page.
If you don’t see this message, double-check that the script tag is loading without errors in the Network tab and that your site ID is correct.
Library Hosting
The Optivo identity library is hosted on our global CDN at https://id.optivo.digital/id.v1.min.js. This ensures fast load times and automatic updates as new versions are released. We recommend loading it directly from our CDN rather than self-hosting, so you always have the latest version.
If you have specific requirements around self-hosting the library, please get in touch and we can provide a downloadable package.
Sign Up Today
Want to keep on top of all things from Optivo, including news, thought pieces, white papers, and product releases?
By clicking Sign Up you're confirming that you agree with our Terms and Conditions