Debugging Analytics Issues: Troubleshooting Common Problems

Home / Everything About / Everything About Analytics / Debugging Analytics Issues: Troubleshooting Common Problems

Something is wrong. Traffic numbers look off. An event isn't firing. A parameter is empty. Data is missing. Your analytics is broken. But where is the problem. Is it your tracking code. Is it your analytics platform. Is it your website. Debugging analytics is about finding the problem systematically. You check each component. You isolate the issue. You fix it. Good debugging saves hours of frustration.

This article explains how to debug common analytics problems.

Start With Real-Time Reports

Real-time reports show what's happening now. If an event isn't firing, real-time reports show you immediately. If traffic is missing, real-time reports reveal it.

Open real-time reports. Perform the action that should generate data. Do you see it in real-time. If yes, the tracking works. If no, it's broken.

Real-time reports isolate when the problem started. Did it work yesterday but not today. Something changed. Did it work in staging but not production. Your environments differ.

Check Your Tracking Code

Use browser developer tools. Open the Network tab. Look for requests to your analytics platform. Do they appear. If yes, tracking code is firing. If no, the code isn't running.

Check the Console tab for errors. JavaScript errors might prevent tracking from running. Look for red error messages. They tell you what broke.

Check that your analytics script loaded. Most platforms show a status in the console. "Script loaded successfully" or "Waiting for consent" or similar. Look for messages.

Verify Your Data Layer**

Open the Console. Type your data layer variable name. Check that it exists. Check that it contains data. If the data layer is empty, events can't access data.

Check timing. Is the data layer populated before events fire. Open the Console. Perform the action. Check the data layer. Does it have the right data at the right time.

Compare to expectations. You expect product_id in the data layer. Do you see it. You expect user_type. Do you see it. Missing fields are debugging clues.

Isolate the Problem Component

Analytics involves multiple components. Your website. Your data layer. Your tracking code. Your tag manager. Your analytics platform. Which component is broken.

Test each component separately. Does your website have the data. Check the data layer. Does the tracking code access it. Check the Network tab. Does it send to your analytics platform. Check the platform's logs. Is it receiving the data.

When you find which component is broken, you can fix it specifically. If it's the data layer, talk to your developers. If it's tracking code, check your configuration. If it's the platform, check their settings.

Check For Common Mistakes**

Certain mistakes are common. Check for them first. Consent not given. If you require consent, did the visitor consent. If not, tracking is disabled.

Ad blockers. Some visitors use ad blockers. They block analytics. That's why you see less traffic than expected.

Filters. Does a filter exclude the data you're looking for. You created a filter that excludes internal traffic. But you're testing from your office. You don't see data because the filter excludes you.

Wrong property or view. Are you looking at the right analytics property. The right view. You created a view that only shows mobile traffic. Desktop traffic won't appear there.

Use Tag Manager Preview Mode**

If you use a tag manager, enable preview mode. It shows what would fire without actually sending data. You can see each tag. Each event. Each action trigger.

Preview mode is powerful for debugging. Perform an action. Watch the preview pane. See every tag that fires. See the order. See what data is sent. If something isn't firing, you see that immediately.

Contact Your Analytics Provider**

If you can't find the problem, contact your analytics provider. Provide details. What's not working. What troubleshooting you've done. What you found. Good troubleshooting information helps them help you faster.

Many providers have support teams. Email support. Chat support. Phone support depending on your plan. Use them. That's what they're there for.

Frequently asked questions

Analytics shows no data. Where do I start?

An event fires but has no data in parameters.

Traffic numbers are lower than expected.

Everything looks good in staging but breaks in production.

How do I know if ad blockers are blocking analytics?

How long does debugging usually take?