We recommend installing the Experro Analytics SDK on all pages that are important for understanding user behavior and commerce performance, and avoiding pages that contain highly sensitive data such as account management or payment details.
The most important pages for the SDK to be loaded on are:
- Any page with a search bar
- Search result pages (PLP)
- Browse/collection pages (PLP)
- Product detail pages (PDP)
- Cart and Checkout pages
Script Injection (recommended)
Add the SDK snippet directly to your storefront template, typically just before the closing </head> tag:
<script defer src="https://experro-pov.myexperro.com/experro-analytics-library/CUSTOM_JS_SDK_NAME.js"></script>
This method ensures the SDK loads as part of your core storefront experience and is less likely to be blocked by ad blockers.
Tip: If you have multiple layouts or templates, ensure the snippet is included in all templates that render key commerce and discovery pages.
For other loading options such as Google Tag Manager, see Load the SDK – Google Tag Manager (GTM).