Troubleshooting
In case tracking data is not being collected for your site, here are a few things you should check:
- Did you add
da_tracker.middleware.TrackerMiddleware
to your site's MIDDLEWARE_CLASSES
(located inside settings.py)?
- Did you restart your web server afterwards, so that the new settings will take effect?
- When you added your site to Django Analytics, did you include all the sub-domains that it is served on? For example, if your website is available on both groovypillows.com and www.groovypillows.com, you should create the domain in Django Analytics as groovypillows.com and add www.groovypillows.com as an alias.
- Are there currently any users signed into your site? If not, try signing in yourself and visiting a few pages.
- When visiting a page as a signed in user, view the page's source. Can you see our script tag at the bottom of the page, just before the closing
</body>
tag? It should look something like this: <script type="text/javascript" async="async" src="https://trk2.djangoanalytics.com/c.js?d=ehre82tTZa......."></script>
- The
Django Analytics middleware logs errors using the django.analytics
logger. Ensure that this logger is enabled in your log settings, and check the log for error messages.
In case these suggestions did not help you solve the issue, please contact us and we'll gladly help.