Troubleshooting

Common Integration Problems

Last updated February 27, 2026

Common Integration Problems

Here are solutions for the most common integration issues across popular platforms.

WordPress

Problem: Banner appears but doesn't block cookies from plugins. Fix: Many WordPress plugins (analytics, ads, caching) inject scripts directly. Use LegalBanner's script activation pattern to control them:

``html `

Replace type="text/javascript" with type="text/plain" and add the data-lb-category attribute. LegalBanner will activate the script only after consent.

Tip: Some caching plugins may cache the page without the banner. Add the LegalBanner script URL to your cache exclusions.

Shopify

Problem: Consent banner conflicts with Shopify's built-in cookie banner. Fix: Disable Shopify's native cookie banner in your theme settings before installing LegalBanner. Having two consent banners confuses visitors and can cause compliance issues. Problem: Scripts in theme.liquid load before consent. Fix: Move third-party scripts from the theme template into `

Single-Page Apps (SPA)

Problem: Banner only appears on the first page load. Fix: This is expected behavior. LegalBanner stores consent in a cookie, so returning visitors don't see the banner again. The SDK checks for existing consent on each page navigation.

Script Activation Not Working

Problem: Third-party scripts aren't activating after consent. Checklist: 1. Verify the
type attribute is text/plain (not text/javascript) 2. Verify the data-lb-category value matches a valid category: essential, functional, analytics, marketing` 3. Make sure the script tag is in the page HTML (not dynamically injected after load) 4. Check the browser console for errors

Need More Help?

If your platform isn't listed here or the solutions don't work, contact our support team with your site URL and a description of the issue.