Troubleshooting
After you installed the Swetrix tracking script on your website, you should check if the integration is working properly. Visit your Swetrix dashboard, if you see the charts and numbers, then everything is working as expected. Enjoy!
But if there is no data to display, or your visit is not counted, there might be something wrong with your integration. Read below to find out how to troubleshoot the most common issues.
Check if the script is installed correctly
The first thing you should do is to check if the script is installed correctly. You can do this by opening the developer tools in your browser and checking the console for any errors.
You should also check the "Network" tab to see if the script is loaded correctly and if it sends any requests to the Swetrix servers.
Open your website
Open the website you installed Swetrix script on.
Open DevTools
Open the developer tools in your browser, you can do this by pressing F12 for Chrome and Firefox, or Ctrl + Shift + C for Safari (alternatively, right-click anywhere on the page and press the "Inspect" button).
Check the Network tab
Click on the "Network" tab in the developer tools (it will be empty at first, so you need to reload the page).
Look for Swetrix requests
Search for swetrix related requests in the list of requests. You should see a bunch of POST requests to api.swetrix.com, and the status of these requests should be 201.
Visits are not appearing in the Dashboard
Don't worry if you don't see any visits in the dashboard right away. There may be a small delay (up to 10 seconds) before they appear. That's because we cache the data for a short period of time to reduce the load on our servers, instead of sending it to the database right away.
In case you don't see any visits even after a delay, make sure you don't have an ad-blocker or a similar extension active, as it may interfere with the script. Try visiting your website in a different browser or device to see if the issue persists.
Common issues and how to fix them
Help us improve Swetrix
Was this page helpful to you?