Integration Guides

Choose your platform below for specific instructions on how to install the Savri tracking script.

General installation

Regardless of platform, the basic principle is the same: add our script to the <head> tag on your site.

<script defer data-site-id="DIN-SAJT-ID" data-api="https://savri.io" src="https://savri.io/script.js"> </script>

Attributes

AttributeDescriptionRequired
data-site-idYour unique site ID from the dashboardYes
data-apiAPI endpoint for tracking dataYes
deferLoads the script asynchronously without blockingRecommended

Important: Don't forget data-api

The data-api attribute must be included for tracking data to be sent to the correct server. Without it, the script won't work.

AI prompt for integration

AI prompt for integration

I want to install the Savri (savri.io) tracking script on my site. The script looks like this: <script defer data-site-id="MY-SITE-ID" data-api="https://savri.io" src="https://savri.io/script.js"></script> My site/platform is: [DESCRIBE YOUR SETUP - e.g. "WordPress with Elementor", "Next.js 14 with App Router", "Shopify", "custom PHP site"] I also want to enable these extensions (optional): - data-outbound-links (track external link clicks) - data-file-downloads (track file downloads) - data-forms (track form submissions) - data-scroll-depth (track scroll depth) Help me: 1. Where exactly should I place the script in my setup? 2. How do I verify it's working? 3. If I have a SPA (Single Page Application), is navigation handled automatically? 4. Do I need to configure Content Security Policy (CSP)? 5. Give me the complete code I should use

Can't find your platform?

Most platforms support adding custom scripts in the header. Search for "header scripts", "code injection" or "custom code" in your platform's documentation.

Need help? Contact us and we'll help you out.