Verify Installation
Confirm that Ghost Metrics is correctly tracking your website.
Method 1: Real-Time Visitors (Recommended)
The quickest way to verify your installation:
- Open your Ghost Metrics dashboard
- Navigate to Visitors → Real-time
- Open your website in a new browser tab (use incognito/private mode for best results)
- Browse a few pages on your site
- Check the Real-time report — you should see your visit appear within seconds
If you see your visit, your installation is working correctly.
Method 2: Browser Developer Tools
Check that the tracking script is loading properly:
- Open your website in your browser
- Open Developer Tools:
- Chrome/Edge: Press
F12or right-click → Inspect - Firefox: Press
F12or right-click → Inspect - Safari: Enable developer tools in preferences, then press
Cmd+Option+I
- Chrome/Edge: Press
- Go to the Network tab
- Refresh the page
- Filter by typing
container_or your Ghost Metrics domain - Look for a request to your container JavaScript file
What to look for:
- Status should be
200(success) - The file should load without errors
Method 3: Check Page Source
Verify the tracking code is present in your HTML:
- Open your website
- Right-click anywhere on the page
- Select View Page Source (or press
Ctrl+U/Cmd+U) - Press
Ctrl+F/Cmd+Fto search - Search for
ghostmetricsor_mtm - Confirm your tracking code appears in the source
Method 4: Console Check
Verify the tracking object is available:
- Open your website
- Open Developer Tools (
F12) - Go to the Console tab
- Type
_mtmand press Enter - You should see an array object returned
If you see undefined, the tracking code hasn’t loaded properly.
Common Issues and Solutions
No Data in Real-Time Report
Possible causes:
- Tracking code not installed: Check page source to confirm the code is present
- Wrong container ID: Verify you’re using the correct tracking code from your dashboard
- Caching: Clear your site’s cache and try in an incognito window
- Ad blocker: Disable any ad blockers temporarily and test again
- JavaScript error: Check the browser console for errors
Tracking Code Not in Page Source
Possible causes:
- Code not saved: Re-save your tracking code in your CMS or plugin
- Caching: Clear all caches (plugin cache, CDN, browser)
- Wrong location: Make sure code is in the header, not footer
- Theme issue: If using functions.php, verify the child theme is active
Network Request Failing
Possible causes:
- Domain typo: Double-check the Ghost Metrics domain in your tracking code
- CSP blocking: Your Content Security Policy may be blocking the script
- Firewall/proxy: Corporate firewalls may block analytics domains
- CORS issue: Rare, but contact support if you see CORS errors
Partial Tracking (Some Pages Missing)
Possible causes:
- Tracking code not on all pages: Verify the code is in a shared header template
- Single Page Application: SPAs may need additional configuration for route changes
- Conditional loading: Check if any code is preventing the script from loading on certain pages
Testing Tips
Use Incognito/Private Mode
Browser extensions and cached data can interfere with testing. Always verify in a fresh incognito window.
Check Multiple Pages
Don’t just test the homepage. Navigate through several pages to ensure tracking works site-wide.
Test Different Devices
If possible, verify tracking works on both desktop and mobile devices.
Wait a Few Minutes
While real-time data usually appears within seconds, give it 2-3 minutes before troubleshooting.
Still Having Issues?
If you’ve tried everything above and tracking still isn’t working:
- Take a screenshot of your browser’s Network tab showing the tracking request
- Note any errors in the Console tab
- Contact Support with these details
We’re happy to help you get tracking working properly.