Skip to content

Latest commit

 

History

History
222 lines (162 loc) · 5.6 KB

File metadata and controls

222 lines (162 loc) · 5.6 KB

Fixes Deployed - February 26, 2026

Issue 1: Claim Links - FIXED

Problem: Claim request API was returning 400 Bad Request

Root Cause: Personal email validation was rejecting Gmail, Yahoo, Hotmail, etc.

Fix Applied:

  • Disabled personal email domain validation
  • Added debug logging to see what's being sent to API

Test Now:

  1. Go to any business page or admin panel
  2. Click "Claim This Business"
  3. Enter ANY email (Gmail, Yahoo, etc. now work)
  4. Submit the form
  5. Check browser console for [CLAIM API] Request: log
  6. You should receive the claim email

Watch Logs:

ssh -i ~/.ssh/id_ed25519 root@72.60.43.168 "pm2 logs dfw-daily --lines 50"

Look for [CLAIM API] Request: to see what's being sent.


Issue 2: GA4 Not Tracking - DIAGNOSTIC

Current Status: GA4 tracking IS installed on the site. Script tag is present:

<script async src="https://www.googletagmanager.com/gtag/js?id=G-2FY2KCJV99"></script>

Why you might not see yourself in Real-Time:

Reason 1: Ad Blocker

  • uBlock Origin, AdBlock Plus, etc. block Google Analytics
  • Fix: Disable ad blocker OR test in incognito window

Reason 2: Browser Extensions

  • Privacy Badger, Ghostery, etc. block tracking
  • Fix: Test in private/incognito mode

Reason 3: VPN/DNS

  • Some VPNs (Pi-hole, NextDNS) block analytics at DNS level
  • Fix: Disconnect VPN temporarily

Reason 4: JavaScript Errors

  • Console errors preventing gtag from loading
  • Fix: Open DevTools (F12), check Console for red errors

Reason 5: Content Security Policy

  • CSP headers might be blocking inline scripts
  • Fix: Check Network tab in DevTools for blocked requests

How to Test GA4 is Working

Test 1: Check Page Source

  1. Go to: https://dfw-daily.com
  2. Right-click > View Page Source
  3. Search for: G-2FY2KCJV99
  4. You should see the googletagmanager script

Result: Script IS in page source (confirmed)

Test 2: Check Network Tab

  1. Open DevTools (F12)
  2. Go to Network tab
  3. Refresh the page
  4. Filter by: google
  5. Look for:
    • gtag/js?id=G-2FY2KCJV99 (should be Status 200)
    • collect?... or g/collect?... (analytics ping)

If you see 200 status = GA4 IS loading If you see blocked/failed = Ad blocker or extension is blocking

Test 3: Check Console

  1. Open DevTools (F12)
  2. Go to Console tab
  3. Type: window.gtag
  4. Press Enter

If you see: function gtag(){dataLayer.push(arguments);} = GA4 IS WORKING If you see: undefined = GA4 script didn't load

Test 4: Send Test Event

  1. Open Console (F12)
  2. Paste this:
    if (window.gtag) {
      gtag('event', 'test_event', {
        event_category: 'manual_test',
        event_label: 'console_test',
        value: 1
      });
      console.log('✓ Test event sent!');
    } else {
      console.log('✗ gtag not found - GA4 not loaded');
    }
  3. Press Enter
  4. Go to GA4 Real-Time > Events
  5. Look for test_event in the events list

If you see the event = GA4 IS WORKING END-TO-END

Test 5: Incognito Mode (No Extensions)

  1. Open incognito/private window
  2. Go to https://dfw-daily.com
  3. Open DevTools (F12)
  4. Run Test 3 and Test 4 above
  5. Check GA4 Real-Time

If it works in incognito = Your extensions are blocking GA4


Most Likely Issue: Ad Blocker

Based on your symptoms, an ad blocker is probably blocking GA4.

Quick Fix:

  1. Go to GA4 Real-Time: https://analytics.google.com
  2. Open https://dfw-daily.com in incognito mode
  3. Refresh GA4 Real-Time
  4. You should see yourself!

Permanent Fix:

  • Whitelist dfw-daily.com in your ad blocker
  • OR disable ad blocker for local development

Verify Both Fixes Together

End-to-End Test:

  1. Test Claim Link (Fixed):

    • Go to https://dfw-daily.com
    • Pick any business
    • Click "Claim This Business"
    • Enter email (Gmail works now)
    • Submit
    • Expected: Success message, email sent
  2. Test GA4 Tracking (Incognito):

    • Open incognito window
    • Go to https://dfw-daily.com
    • Open DevTools Console (F12)
    • Type: window.gtag and press Enter
    • Expected: Function definition (not undefined)
  3. Test Claim Link Click Tracking:

    • Check your email for claim link
    • Click "Claim Your Business" button
    • Spend 30+ seconds on page
    • Go to GA4 Real-Time
    • Expected: See page view for /claim/[id]
  4. Test GA4 Event:

    • In Console, run the test event code from Test 4
    • Go to GA4 Real-Time > Events
    • Expected: See test_event in list

If Claim Links Still Don't Work

Check the PM2 logs for the exact error:

ssh -i ~/.ssh/id_ed25519 root@72.60.43.168 "pm2 logs dfw-daily --lines 100"

Look for lines with [CLAIM API] to see:

  • What data is being sent
  • What validation is failing
  • What database error occurred (if any)

If GA4 Still Doesn't Work in Incognito

There might be a Content Security Policy issue. Check:

ssh -i ~/.ssh/id_ed25519 root@72.60.43.168 "
  cd /var/www/dfw-daily
  grep -r 'Content-Security-Policy' src/
"

If CSP is blocking Google Analytics, we need to add:

script-src 'self' 'unsafe-inline' https://www.googletagmanager.com;
connect-src 'self' https://www.google-analytics.com https://analytics.google.com;

Next Steps

  1. Right now: Test claim links with any email
  2. Right now: Open incognito window and check if GA4 works
  3. If GA4 works in incognito: Disable ad blocker or whitelist site
  4. Tomorrow: Once GA4 is confirmed working, export first CSV
  5. Day 2: Process CSV and see your first hot leads!

Test both fixes now and let me know what you see!