This guide helps you troubleshoot problems with ShahiLandin’s analytics tracking, including views, conversions, and external integrations.
Views Not Being Tracked
Symptom
Landing page statistics show zero views despite receiving traffic.
Solutions
Problem 1: Analytics Not Enabled
Solution:
- Go to ShahiLandin → Settings → Analytics
- Ensure Enable Analytics Tracking is checked
- Click Save Changes
- Visit a landing page (in private/incognito window)
- Check statistics again in a few minutes
- Go to ShahiLandin → Settings → Analytics
- Find Track Admin Views option
- Check the box
- Save Changes
- Exclude landing pages from caching:
- Add landing page URL pattern:
- Or add to landing page HTML (bottom of page):
- Clear all caches and test again
- Check browser Console (F12) for JavaScript errors
- Common causes:
- ShahiLandin analytics is first-party (not affected by most ad blockers)
- If blocked, consider server-side tracking (see advanced options)
- View page source (right-click → View Page Source)
- Search for
shahilandin-analytics - If not found:
- Go to Settings → Analytics
- Find Filter Bot Traffic setting
- Temporarily disable for testing
- Check if views increase
Problem 2: Logged-In Users Not Tracked
Symptom: Views tracked when logged out, but not when logged in.
Solution:
By default, ShahiLandin doesn’t track logged-in administrators to avoid skewing statistics.
To track admin views:
Note: Only enable if you need to test tracking. Keep disabled for accurate visitor statistics.
Problem 3: Caching Preventing Tracking
Symptom: Page loads from cache, tracking script doesn’t execute.
Solution:
– WP Super Cache: Settings → Advanced → Accepted Files & Rejected URIs
– W3 Total Cache: Performance → Page Cache → Never cache the following pages
– WP Rocket: Settings → Advanced Rules → Never Cache URLs
`
/landing/*
/lp/*
`
`html
`
Problem 4: JavaScript Blocked
Symptom: Tracking script exists but doesn’t execute.
Solution:
– Ad blockers (uBlock Origin, AdBlock Plus)
– Privacy extensions
– Content Security Policy (CSP) restrictions
For ad blocker issues:
For CSP issues:
Add to landing page HTML :
`html
`
Problem 5: Tracking Script Not Loaded
Symptom: Tracking code missing from page source.
Solution:
– Ensure analytics is enabled in settings
– Clear plugin cache
– Deactivate/reactivate plugin
– Check for JavaScript optimization plugins that might remove it
Problem 6: Bot Traffic Filtering
Symptom: Real visits but low view counts.
Solution:
ShahiLandin filters bot traffic by default to maintain accurate statistics.
Note: Keep bot filtering enabled for production to maintain data quality.
Conversions Not Being Tracked
Symptom
Conversion events (form submits, clicks, etc.) aren’t being recorded.
Solutions
Problem 1: Conversion Tracking Not Configured
Solution:
Conversions must be manually configured to track specific actions.
Method 1 – Track link clicks:
`html
Click Here
`
Method 2 – Track form submissions:
`html
`
Method 3 – Manual JavaScript tracking:
`html
`
Problem 2: Conversion Goal Not Defined
Solution:
– Goal Name: Newsletter Signup
– Goal Type: Form Submit
– Goal Value: 10 (optional, for revenue tracking)
Problem 3: Form Submits Before Tracking Completes
Symptom: Form submits immediately, tracking doesn’t finish.
Solution:
Add slight delay to allow tracking to complete:
`html
`
Problem 4: AJAX Forms
Symptom: AJAX form submissions don’t trigger tracking.
Solution:
Manually track conversion in AJAX success callback:
`html
`
Problem 5: Third-Party Forms
Symptom: Using Contact Form 7, Gravity Forms, or WPForms – conversions not tracked.
Solution for Contact Form 7:
`html
`
Solution for Gravity Forms:
`php
// Add to theme’s functions.php
addaction(‘gformafter_submission’, function($entry, $form) {
if (issingular(‘shahilanding’)) {
?>
`
Google Analytics Integration Issues
Symptom
Landing page statistics show in ShahiLandin but not in Google Analytics.
Solutions
Problem 1: Google Analytics Not Connected
Solution:
G-XXXXXXXXXX)Problem 2: Wrong Tracking ID Format
Solution:
G-XXXXXXXXXXUA-XXXXXXXXX-XIf using GA4:
Problem 3: Duplicate Tracking
Symptom: Events tracked twice in Google Analytics.
Solution:
– Either disable in theme settings
– Or disable in ShahiLandin settings (choose one)
Problem 4: Events Not Showing in GA
Symptom: Page views track but conversion events don’t.
Solution:
– Reports → Engagement → Events
– Look for shahilandin_conversion event
– Measurement ID is correct
– Events are being tracked in ShahiLandin
– 24-48 hour delay for non-real-time reports
Problem 5: Real-Time Not Working
Symptom: Can’t see visits in GA Real-Time reports.
Solution:
– Check Measurement ID is correct
– Disable ad blockers
– Check browser Console for errors
Mixpanel Integration Issues
Symptom
Events not appearing in Mixpanel dashboard.
Solutions
Problem 1: Mixpanel Not Configured
Solution:
To find Mixpanel token:
Problem 2: Events Delayed
Solution:
Mixpanel events may take 1-2 minutes to appear.
Problem 3: User Properties Not Sent
Symptom: Events tracked but missing user data.
Solution:
Add user properties to tracking calls:
`html
`
Facebook Pixel Issues
Symptom
Facebook Pixel not tracking landing page events.
Solutions
Problem 1: Pixel Not Installed
Solution:
To find Pixel ID:
Problem 2: Verify Pixel Installation
Solution:
Problem 3: Custom Events Not Firing
Solution:
Track custom Facebook events:
`html
`
Statistics Dashboard Issues
Problem 1: Dashboard Shows No Data
Symptom: Statistics page is empty or shows zeros.
Solution:
– Access phpMyAdmin
– Look for wpshahilandinanalytics table
– If missing, run migrations (see Database Issues)
Problem 2: Inconsistent Data
Symptom: Numbers don’t match other analytics platforms.
Solution:
Differences are normal due to:
For most accurate comparison:
Problem 3: Conversion Rate Seems Wrong
Symptom: Conversion rate calculations appear incorrect.
Solution:
Verify conversion tracking setup:
(Conversions / Views) × 100Problem 4: Data Not Updating
Symptom: Statistics stuck at old numbers.
Solution:
– ShahiLandin caches stats for 1 hour
– Clear plugin cache
– Or wait 1 hour for refresh
– Add ?refresh=1 to dashboard URL
– Some statistics update via WordPress cron
– Run: wp cron event run --due-now (WP-CLI)
Referrer Tracking Issues
Problem: Referrer Data Missing
Symptom: Referrer column shows “Direct” for all traffic.
Solution:
`html
`
`html
`
UTM Parameter Tracking
Problem: UTM Parameters Not Tracked
Symptom: Campaign parameters not showing in statistics.
Solution:
`
https://yoursite.com/landing-page/?utmsource=facebook&utmmedium=cpc&utmcampaign=springsale
`
– utm_source
– utm_medium
– utm_campaign
– utm_term
– utm_content
– Check analytics is enabled
– Verify URL parameters are correct (no spaces, special characters encoded)
– Clear cache and test again
Privacy and GDPR Compliance
Problem: Need to Disable Tracking for GDPR
Solution:
`html
`
– Go to Settings → Analytics
– Uncheck Enable Analytics Tracking
Advanced Debugging
Enable Analytics Debug Mode
Add to landing page HTML (for testing only):
`html
`
This logs all tracking events to browser Console.
Check Raw Analytics Data
Query database directly:
`sql
— Recent views
SELECT * FROM wpshahilandinanalytics
WHERE post_id = 123
ORDER BY created_at DESC
LIMIT 10;
— Conversion summary
SELECT goal, COUNT(*) as count
FROM wpshahilandinanalytics
WHERE post_id = 123 AND goal IS NOT NULL
GROUP BY goal;
`
Test Tracking with WP-CLI
`bash
Manually record a view
wp shahilandin stats record-view 123
Get statistics
wp shahilandin stats get 123
`
Getting Help
If analytics issues persist:
– Which analytics method (internal, GA, Mixpanel, etc.)
– Expected behavior vs actual behavior
– Browser and device information
– Enable analytics debug mode
– Capture any error messages
– Disable other plugins temporarily
– Test in private/incognito window
– Try different browser
– Take screenshot of Analytics settings
– Verify all API keys and IDs are correct
—
Related Articles:
Share this article
Still need help?
Our support team is ready to assist you with personalized guidance for your workspace.