Integration Guides
Choose your platform below for specific instructions on how to install the Savri tracking script.
HTML / Vanilla JavaScript
EasyFor static sites or custom-built websites. Paste the script directly into HTML.
WordPress
EasyInstall via theme, plugin or header settings. Works with all WordPress sites.
Next.js
MediumFor Next.js 13+ with App Router or Pages Router. Includes SPA navigation.
React (Single Page App)
MediumFor React apps with react-router or similar. Handles client-side navigation.
Shopify
EasyAdd via theme settings in Shopify admin. No coding required.
Squarespace
EasyAdd via Code Injection in Squarespace settings.
Vue.js / Nuxt
MediumFor Vue 2/3 apps and Nuxt projects. Composables and plugin support.
Webflow
EasyAdd via Custom Code in Project Settings.
Wix
EasyAdd via Custom Code in Wix Dashboard.
Hugo / Jekyll / Gatsby / Astro
EasyFor static sites and JAMstack. Simple script in the head tag.
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
| Attribute | Description | Required |
|---|---|---|
| data-site-id | Your unique site ID from the dashboard | Yes |
| data-api | API endpoint for tracking data | Yes |
| defer | Loads the script asynchronously without blocking | Recommended |
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
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.