How to Fix Weebly Tracking Events Not Firing | OpsBlu Docs

How to Fix Weebly Tracking Events Not Firing

Fix GA4, GTM, and pixel events not firing on Weebly — header/footer code injection, paid plan requirements, and App Center integration debugging

General Guide: See Events Not Firing for universal debugging steps.

Weebly-Specific Causes

Plan Limitations

  • Free plan: No header/footer code injection
  • Cannot add custom JavaScript without paid plan
  • App Center options are limited

Code Placement Issues

  • Code not saved properly in Settings
  • Code in wrong location (header vs footer)
  • Special characters breaking code syntax

Page-Specific Loading

  • Code only loading on some pages
  • Blog pages have different structure
  • Product pages (Performance plan) require separate handling

Conflicts

  • Multiple tracking implementations
  • App Center apps conflicting with manual code
  • JavaScript errors from other sources

Diagnostic Steps

Step 1: Verify Plan Supports Code Injection

  1. Check your Weebly plan (Personal, Professional, or Performance required)
  2. If on Free plan, upgrade or use limited App Center options

Step 2: Check Code Placement

  1. Go to Settings > SEO
  2. Verify code is in Header Code section
  3. Confirm code is properly formatted

Step 3: View Page Source

  1. Visit your live site (not editor preview)
  2. Right-click > View Page Source
  3. Search for your tracking code (Ctrl+F)
  4. Confirm it appears in the <head> section

Step 4: Check Browser Console

  1. Open DevTools (F12)
  2. Go to Console tab
  3. Look for JavaScript errors
  4. Check for blocked resources

Step 5: Test with Debugging Tools

Google Analytics:

Meta Pixel:

GTM:

  • Use GTM Preview Mode
  • Verify container is loading

Weebly-Specific Fixes

Fix 1: Republish Site

After adding or changing code:

  1. Go to Weebly editor
  2. Click Publish
  3. Wait for publish to complete
  4. Clear browser cache
  5. Test on live site

Fix 2: Remove Conflicting Apps

If using App Center tracking apps AND manual code:

  1. Choose one method only
  2. Remove App Center tracking apps
  3. Or remove manual code and use apps

Fix 3: Fix Code Syntax

Common issues:

<!-- Wrong: Smart quotes from copy/paste -->
<script>
fbq('init', '123456789');  <!-- These quotes are wrong -->
</script>

<!-- Correct: Straight quotes -->
<script>
fbq('init', '123456789');
</script>

Fix: Copy code to plain text editor first, then paste into Weebly.

Fix 4: Blog Page Tracking

Weebly blogs may need separate handling:

  1. Verify header code applies to blog pages
  2. Check blog-specific settings
  3. Test on individual blog posts

Fix 5: Ecommerce Events (Performance Plan)

For product tracking:

  1. Verify you're on Performance plan
  2. Check DOM selectors match your theme:
// Verify these selectors work on your theme
document.querySelector('.wsite-com-product-title')
document.querySelector('.wsite-com-product-price')
document.querySelector('.wsite-com-add-to-cart')
  1. Adjust selectors if your theme uses different classes

Common Issues & Solutions

Issue Cause Solution
No events at all Free plan Upgrade to paid plan
Code not in source Not published Republish site
Partial tracking Code syntax error Check for special characters
Some pages only Page-specific code Use global Header Code
Ecommerce missing Wrong plan Upgrade to Performance
Duplicate events Multiple implementations Remove duplicates

Verification Checklist

  • On paid Weebly plan
  • Code is in Header Code section
  • Site is published (not just saved)
  • Code appears in page source
  • No JavaScript errors in console
  • No conflicting App Center apps
  • Events appear in platform dashboards
  • Tested in incognito mode