WordPress
Multiple ways to install Besökskollen on WordPress. Choose what works best for you.
Difficulty: Easy
Takes about 5 minutes
Option 1: Official Plugin (Recommended)
The easiest way is to use our official WordPress plugin.
- 1. Download Savri Analytics plugin
- 2. Go to Plugins → Add New → Upload Plugin
- 3. Select the zip file and click "Install Now"
- 4. Activate the plugin
- 5. Go to Settings → Savri Analytics
- 6. Paste your Site ID and save
Plugin features
- • Easy installation without coding
- • Optional tracking of external links, downloads, forms
- • Exclude administrators from statistics
- • Works with all themes and caching plugins
Option 2: Via theme
Most modern themes have a field for header scripts.
- 1. Go to Appearance → Customize in WordPress admin
- 2. Look for a section called "Header Scripts", "Custom Code" or similar
- 3. Paste your tracking script
- 4. Click "Publish"
Option 3: Third-party plugin
Use a free plugin to add the script manually:
- 1. Install the plugin "Insert Headers and Footers" by WPBeginner
- 2. Go to Settings → Insert Headers and Footers
- 3. Paste the script in the "Scripts in Header" field
- 4. Click "Save"
<script defer data-site-id="DIN-SAJT-ID" data-api="https://besokskollen.se" src="https://besokskollen.se/script.js"> </script>
Option 4: functions.php
For developers who prefer to add the script via code:
- 1. Go to Appearance → Theme Editor
- 2. Open
functions.php - 3. Add the following code at the end of the file:
function add_besokskollen_script() {
echo '<script defer data-site-id="DIN-SAJT-ID" data-api="https://besokskollen.se" src="https://besokskollen.se/script.js"></script>';
}
add_action('wp_head', 'add_besokskollen_script');Important for child themes
If you're using a child theme, add the code to the child theme's functions.php so it won't be overwritten during theme updates.
WooCommerce
Besökskollen works automatically with WooCommerce. All pageviews on product pages, categories and checkout are tracked as usual.
To track specific e-commerce events (add to cart, purchase etc.), see our guide for custom events.
Need help?
See all integration guides →