ShahiLanding

Analytics Tracking Issues

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:

  1. Go to ShahiLandin → Settings → Analytics
  2. Ensure Enable Analytics Tracking is checked
  3. Click Save Changes
  4. Visit a landing page (in private/incognito window)
  5. Check statistics again in a few minutes
  6. 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:

  7. Go to ShahiLandin → Settings → Analytics
  8. Find Track Admin Views option
  9. Check the box
  10. Save Changes
  11. 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:

  12. Exclude landing pages from caching:
  13. 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

  14. Add landing page URL pattern:
  15. `
    /landing/*
    /lp/*
    `

  16. Or add to landing page HTML (bottom of page):
  17. `html




    `

  18. Clear all caches and test again
  19. Problem 4: JavaScript Blocked

    Symptom: Tracking script exists but doesn’t execute.

    Solution:

  20. Check browser Console (F12) for JavaScript errors
  21. Common causes:
  22. – Ad blockers (uBlock Origin, AdBlock Plus)
    – Privacy extensions
    – Content Security Policy (CSP) restrictions

    For ad blocker issues:

    • ShahiLandin analytics is first-party (not affected by most ad blockers)
    • If blocked, consider server-side tracking (see advanced options)
    • For CSP issues:
      Add to landing page HTML :
      `html

      `

      Problem 5: Tracking Script Not Loaded

      Symptom: Tracking code missing from page source.

      Solution:

    • View page source (right-click → View Page Source)
    • Search for shahilandin-analytics
    • If not found:
    • – 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.

    • Go to Settings → Analytics
    • Find Filter Bot Traffic setting
    • Temporarily disable for testing
    • Check if views increase
    • 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:

    • Edit landing page in WordPress admin
    • Scroll to Analytics & Goals meta box
    • Define conversion goals:
    • – Goal Name: Newsletter Signup
      – Goal Type: Form Submit
      – Goal Value: 10 (optional, for revenue tracking)

    • Update page
    • Test conversion 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:

    • Go to ShahiLandin → Settings → Integrations
    • Find Google Analytics section
    • Enter your Measurement ID (format: G-XXXXXXXXXX)
    • Click Save Changes
    • Visit a landing page and check GA in 24-48 hours (real-time for immediate testing)
    • Problem 2: Wrong Tracking ID Format

      Solution:

    • Google Analytics 4: Use Measurement ID format G-XXXXXXXXXX
    • Universal Analytics (deprecated): Use UA-XXXXXXXXX-X
    • If using GA4:

    • Log into Google Analytics
    • Admin → Data Streams → Select your stream
    • Copy Measurement ID (starts with G-)
    • Paste into ShahiLandin settings
    • Problem 3: Duplicate Tracking

      Symptom: Events tracked twice in Google Analytics.

      Solution:

    • Check if your theme also adds Google Analytics
    • Remove duplicate tracking:
    • – 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:

    • ShahiLandin sends custom events to GA
    • Check if events appear in GA:
    • – Reports → Engagement → Events
      – Look for shahilandin_conversion event

    • If missing, verify:
    • – 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:

    • Visit landing page in private/incognito window
    • Open GA in another window/tab
    • Go to Reports → Real-time → Overview
    • Should see visit within 30 seconds
    • If not:
    • – 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:

    • Go to ShahiLandin → Settings → Integrations
    • Find Mixpanel section
    • Enter your Project Token
    • Enable Track Page Views and Track Conversions
    • Save Changes
    • To find Mixpanel token:

    • Log into Mixpanel
    • Click Project Settings (gear icon)
    • Copy Project Token
    • Problem 2: Events Delayed

      Solution:
      Mixpanel events may take 1-2 minutes to appear.

    • Check Live View in Mixpanel for real-time events
    • Regular reports may have slight delay
    • 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:

    • Go to ShahiLandin → Settings → Integrations
    • Find Facebook Pixel section
    • Enter your Pixel ID (15-16 digit number)
    • Save Changes
    • To find Pixel ID:

    • Facebook Business Manager → Events Manager
    • Data Sources → Your Pixel
    • Copy Pixel ID
    • Problem 2: Verify Pixel Installation

      Solution:

    • Install Facebook Pixel Helper browser extension
    • Visit your landing page
    • Extension icon should show pixel detected
    • Click icon to see events being fired
    • 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:

    • Ensure at least one landing page exists
    • Ensure analytics is enabled
    • Check date range filter – expand to “All Time”
    • Verify landing pages have received visits
    • Check database tables exist:
    • – 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:

    • Bot filtering: ShahiLandin filters bots, GA may not
    • Tracking timing: Slight differences in when events are recorded
    • Cached pages: May affect tracking differently
    • Ad blockers: Block different trackers
    • For most accurate comparison:

    • Compare same date ranges
    • Use same time zone
    • Allow 24-48 hours for data to stabilize
    • Problem 3: Conversion Rate Seems Wrong

      Symptom: Conversion rate calculations appear incorrect.

      Solution:
      Verify conversion tracking setup:

    • Test conversion manually
    • Check if it appears in dashboard
    • Formula: (Conversions / Views) × 100
    • Ensure conversions are tracking correctly (see above)
    • Problem 4: Data Not Updating

      Symptom: Statistics stuck at old numbers.

      Solution:

    • Clear cache:
    • – ShahiLandin caches stats for 1 hour
      – Clear plugin cache
      – Or wait 1 hour for refresh

    • Force refresh:
    • – Add ?refresh=1 to dashboard URL

    • Check cron jobs:
    • – 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:

    • HTTPS to HTTP: Referrer lost when downgrading protocols
    • Privacy settings: Some browsers hide referrer
    • Meta tag interference: Check for:
    • `html

      `

    • To capture more referrer data:
    • `html

      `

      UTM Parameter Tracking

      Problem: UTM Parameters Not Tracked

      Symptom: Campaign parameters not showing in statistics.

      Solution:

    • Ensure URL includes UTM parameters:
    • `
      https://yoursite.com/landing-page/?utmsource=facebook&utmmedium=cpc&utmcampaign=springsale
      `

    • ShahiLandin captures these automatically:
    • utm_source
      utm_medium
      utm_campaign
      utm_term
      utm_content

    • View in StatisticsSources tab
    • If not showing:
    • – 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:

    • Use consent management plugin (Cookie Notice, Complianz)
    • Conditionally load tracking based on consent:
    • `html

      `

    • Or disable tracking entirely:
    • – 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:

    • Provide details:
    • – Which analytics method (internal, GA, Mixpanel, etc.)
      – Expected behavior vs actual behavior
      – Browser and device information

    • Check Console (F12):
    • – Enable analytics debug mode
      – Capture any error messages

    • Test in isolation:
    • – Disable other plugins temporarily
      – Test in private/incognito window
      – Try different browser

    • Verify settings:
    • – Take screenshot of Analytics settings
      – Verify all API keys and IDs are correct

      Related Articles:

    • Analytics Tracking Feature Guide
    • Performance Issues
    • Cache and Plugin Conflicts

Share this article

Was this article helpful?

Help us improve our documentation

Still need help?

Our support team is ready to assist you with personalized guidance for your workspace.

Submit a support ticket