Complete guide to setting up automated legal compliance, privacy policies, and cookie consent for your business.
Sign up for StackBloom and choose a ComplianceBloom plan. You can start with a 14-day free trial on any tier.
Add your domain in the dashboard. Our scanner will crawl your site to identify all cookies, tracking scripts, and data collection points.
Answer a few simple questions about your data practices. We'll generate customized, attorney-vetted Privacy Policies and Terms of Service.
Copy the single line of JavaScript and paste it into your website <head>. This activates your cookie banner and data request portal.
You can find your unique Compliance ID (e.g., SB_COMP_8273) in your ComplianceBloom Dashboard under "Site Settings".
Copy and paste the following script tag into the <head> of every page on your website.Important: It must be the very first script in your head to correctly intercept trackers before they load.
<script defer data-id="YOUR_COMPLIANCE_ID" src="https://cdn.stackbloom.io/compliance.js" ></script>
Refresh your website and look for the ComplianceBloom cookie banner. You can also verify via the dashboard's "Connection Test" tool.
You can check the user's current consent status using the StackBloom.getConsent() helper:
if (window.StackBloom && window.StackBloom.getConsent('marketing')) {
// Safe to load marketing pixels/tags
loadFacebookPixel();
} else {
// User has not opted-in to marketing cookies
console.log('Marketing cookies blocked');
}Trigger custom logic when a user updates their preferences via the banner:
window.addEventListener('stackbloom-consent-updated', (event) => {
const { preferences } = event.detail;
console.log('Updated preferences:', preferences);
if (preferences.analytics) {
initGoogleAnalytics();
}
});Automatically blocks non-essential cookies until the user gives consent. Detects user location to show the correct legal notice (GDPR vs CCPA).
Policies are hosted by ComplianceBloom and update automatically when laws change. You can also export them as HTML or embed them directly.
Users can submit Data Subject Access Requests through a dedicated portal. You receive notifications and a workflow to fulfill requests within legal deadlines.
All banners and policies are available in over 25 languages. The system automatically detects the user's browser language.
Install the "StackBloom Compliance" plugin or add the script tag to your header.php. The plugin handles automatic cookie blocking for common WP plugins.
Use next/script with strategy="beforeInteractive" in your root layout. Ensure it's the first script loaded to correctly block third-party trackers.
Add the script to your theme.liquid file. Our script integrates with Shopify's Consent API to ensure consistent tracking across the platform.
Paste the script tag at the very top of your <head> section. This ensures our scanner can intercept other scripts before they set cookies.