Check that tracking works
See your first visit in Real-time, and fix common mistakes.
After you install the script, make one test visit. It takes about one minute.
Make a test visit
- Open your website in a new browser tab, as a normal visitor would.
- In Dodolytics, open the website and click Real-time in the sidebar.
- Wait up to 10 seconds. The page updates by itself.
- You see 1 current visitor, your page in the list of recent pageviews, and your country on the map.
Real-time shows the visitors of the last 5 minutes. Your test visit stays there for 5 minutes after your last page.
You can also click Websites in the sidebar. A website with data shows the status Active.
Check the script in your browser
If no visit shows, look at the page in your browser's developer tools:
- On your website, right-click the page and choose Inspect (or press F12).
- Open the Network tab and reload the page.
- Type
trackerin the filter box. You must seetracker.jswith status 200. - Then type
collect. You must see one request tocollectfor the page load.
- No
tracker.js: the script is not on the page. Check that you published or saved the change, and clear your site's cache. tracker.jsis blocked or red: an ad blocker or a privacy extension can stop it. Try a private window with extensions off.tracker.jsloads, but there is nocollectrequest: thedata-website-idpart of the script is missing or changed. Copy the script again from Settings.
Common mistakes
- Wrong website ID. Each website has its own ID. A script copied from another website sends data to that website.
- The script is on one page only. Put it in a shared header or template so that every page has it.
- A cache plugin or a CDN serves an old copy of your pages. Clear the cache after you add the script.
- You test on
localhost, or you excluded your own visits. The script does not count a local address, a browser that you excluded, or an IP address in Settings › Exclude visits. See Exclude your own visits. - Allowed hostnames are on, and you test on another domain. With this setting on, visits from other domains (also
localhost) are not counted. See Settings › Hostnames.
Your own visits are counted, the same as any other visitor's, unless you exclude them. Keep this in mind when you look at a small website's numbers.
Still no data? Read No data shows.
Related articles
Still need help? Ask on our feedback board or see all topics.