Axeptio

Connect Axeptio with Webflow to collect cookie consent, block tracking scripts until users opt in, and stay compliant with privacy regulations.

Install app
View website
View lesson
A record settings
CNAME record settings
Axeptio

How to integrate Axeptio with Webflow

Webflow sites that collect user data through analytics, advertising pixels, or third-party tools need valid consent before setting non-essential cookies. Axeptio blocks these scripts until users grant permission, keeping your site compliant with GDPR, CCPA, Law 25 (Quebec), and ePrivacy regulations.

There are two ways to integrate Axeptio with Webflow. You can add the consent script without coding by pasting a script into Webflow's custom code embed. For advanced implementations, you can build with the Webflow and Axeptio APIs using the JavaScript SDK and REST API to enable programmatic consent control.

Add the consent script with code embed

Add Axeptio's JavaScript through Webflow's custom code embed to get:

  • Automatic consent banner display on page load
  • Cookie blocking for non-essential scripts
  • Persistent user preference storage across sessions
  • Visual customization through the Axeptio dashboard

The integration requires a paid Webflow plan with custom code access.

⚠️ CRITICAL FOR GDPR COMPLIANCE: Place the Axeptio script in the Head Code section if you have tracking scripts (Google Analytics, Facebook Pixel) in your header. Place it in the Footer Code section only if all your tracking scripts also load there.

To set up the integration:

  1. Access your Axeptio dashboard and go to IntegrationGeneral
  2. Select your banner configuration and copy the provided script
  3. In Webflow, access Site SettingsCustom Code and paste the script
  4. Save your settings and publish the site

Customize banner appearance through the Axeptio dashboard. Configure cookie categories in the Cookies section using Axeptio's cookie management interface to create screens for Strictly Necessary, Preferences, Statistics, and Marketing cookies.

Build with Webflow and Axeptio APIs

The Axeptio JavaScript SDK and REST API let you build custom consent workflows, conditional script loading, and consent data synchronization.

Use these APIs when you need to:

  • Show or hide content based on consent status
  • Load tracking scripts only after users accept specific categories
  • Sync consent records to external systems

The JavaScript SDK runs in the browser, using event listeners that fire when users make consent choices. The REST API handles server-side operations like fetching consent records and statistics. For more on APIs in Webflow, see the intro to Webflow's APIs and the REST API introduction for developers.

Conditionally load scripts based on consent

Add this code to your Webflow Footer Code section after the Axeptio script:

axeptio.on('cookies:complete', function(choices) {
  if (choices.google_analytics) {
    var script = document.createElement('script');
    script.src = 'https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID';
    script.async = true;
    document.head.appendChild(script);

    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'GA_MEASUREMENT_ID');
  }

  if (choices.facebook_pixel) {
    (function(f,b,e,v,n,t,s){
      if(f.fbq)return;
      n=f.fbq=function(){n.callMethod?
      n.callMethod.apply(n,arguments):n.queue.push(arguments)};
      if(!f._fbq)f._fbq=n;
      n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];
      t=b.createElement(e);t.async=!0;t.src=v;
      s=b.getElementsByTagName(e)[0];
      s.parentNode.insertBefore(t,s);
    })(window, document,'script','https://connect.facebook.net/en_US/fbevents.js');
    fbq('init', 'YOUR_PIXEL_ID');
    fbq('track', 'PageView');
  }
});

The cookies:complete event provides a choices object with boolean values for each cookie category. Use sdk.hasAcceptedVendor(vendor) for granular vendor-specific checks.

Show or hide content based on consent

Display gated content or third-party widgets only when users grant permissions:

axeptio.on('cookies:complete', function(choices) {
  if (choices.youtube) {
    document.querySelectorAll('.youtube-placeholder').forEach(function(el) {
      var videoId = el.getAttribute('data-video-id');
      var iframe = document.createElement('iframe');
      iframe.src = 'https://www.youtube.com/embed/' + videoId;
      iframe.width = '560';
      iframe.height = '315';
      iframe.title = 'YouTube video player';
      iframe.setAttribute('allowfullscreen', '');
      el.appendChild(iframe);
    });
  }

  var promoBanner = document.getElementById('promo-banner');
  if (promoBanner) {
    promoBanner.style.display = choices.marketing ? 'block' : 'none';
  }
});

Request consent for specific vendors

Prompt users for consent when they interact with specific features using sdk.requestConsent():

window._axcb = window._axcb || [];
window._axcb.push(function(sdk) {
  document.getElementById('play-video-btn').addEventListener('click', function() {
    sdk.requestConsent('youtube', function(accepted) {
      if (accepted) {
        var iframe = document.createElement('iframe');
        iframe.src = 'https://www.youtube.com/embed/VIDEO_ID';
        document.getElementById('video-container').appendChild(iframe);
      } else {
        document.getElementById('video-container').innerHTML = 
          '<p>Please accept YouTube cookies to view this content.</p>';
      }
    });
  });
});

Retrieve consent data via REST API

Access consent records through the Axeptio REST API. The API requires either a Bearer token or an API key for authentication.

⚠️ Note: API rate limits are not publicly documented. Contact Axeptio support before building production integrations.

Key endpoints:

  • GET /statistics/consent-status: Check consent status for specific users
  • GET /statistics/consents: Retrieve aggregated consent metrics for compliance reporting
  • DELETE /cookies/consent: Process consent withdrawal requests for GDPR right-to-erasure compliance

Configure webhooks via the webhook system by sending a POST request to https://api.axept.io/v1/webhooks:

{
  "event": "consent:saved",
  "url": "https://your-domain.com/webhook-endpoint"
}

Available webhook events: consent:saved, cookies:complete, cookies:step:change, and token:update.


What you can build

Integrating Axeptio with Webflow lets you build GDPR-compliant consent management with script blocking, real-time consent checks, and audit trails.

  • E-commerce sites with consent-based tracking: Use hasAcceptedVendor() and cookies:complete to check consent before loading Google Analytics, Facebook Pixel, and conversion tracking scripts.
  • Content sites with embedded third-party media: Block YouTube embeds and social media feeds until users accept cookies. Replace embeds with placeholders until consent is granted.
  • Multi-region product marketing sites: Configure different consent options for EU visitors (GDPR opt-in), California users (CCPA opt-out), and Quebec visitors (Law 25) from one Axeptio dashboard.
  • Agency client sites with centralized compliance: Manage consent across multiple client websites from a single Axeptio agency account with consolidated statistics and global policy updates.

Frequently asked questions

  • Go to Site Settings → Custom Code in your Webflow project. Copy your Axeptio script from the Axeptio dashboard under Integration → General. Place the script in Header Code if your tracking scripts load in the header, or Footer Code if all tracking scripts load in the footer. Once done, publish your site.

  • Place the script in the Head Code if you have tracking scripts in your header. GDPR requires the consent script to load before any tracking scripts execute.eu's cookie guidance. Place it in Footer Code only if all tracking scripts load in your footer.

  • Customize through the Axeptio dashboard: select brand colors, font families, logo, and button styles. For advanced customizations, add CSS overrides to Webflow's custom code embed.

Axeptio
Axeptio
Joined in

Description

Axeptio is a Google-certified Consent Management Platform that collects cookie consent and handles privacy compliance for websites. Axeptio provides three core products: a customizable cookie banner with a pre-integrated vendor library, a terms widget for contractual consent with version control, and mobile SDKs.

Install app

This integration page is provided for informational and convenience purposes only.


Other Legal compliance solutions integrations

Other Legal compliance solutions integrations

Enzuzo Data Privacy

Enzuzo Data Privacy

Connect Enzuzo Data Privacy with Webflow to add cookie consent banners, auto-updating privacy policies, and data request workflows to your site.

Legal compliance solutions
Learn more
DataGrail Consent

DataGrail Consent

Connect DataGrail Consent with Webflow to manage cookie consent and stay compliant with GDPR, CCPA, and other privacy regulations.

Legal compliance solutions
Learn more
Clawdia AI

Clawdia AI

Generate legal documents like privacy policies, terms of service, and client contracts without hiring a lawyer for every template. Clawdia AI provides contract drafting, document generation, and legal guidance specifically for US-based small and medium-sized businesses. Set up your Clawdia AI and Webflow integration by installing the Clawdia AI app from the Webflow Marketplace. This link-based integration opens Clawdia's external dashboard where you generate documents, export them as PDFs, and upload them to Webflow CMS Collections or static pages.

Legal compliance solutions
Learn more
Flowstar Age Verification

Flowstar Age Verification

Connect Flowstar Age Verification with Webflow to add age verification gates to sites for alcohol, cannabis, tobacco, or adult content.

Legal compliance solutions
Learn more
DocuSign

DocuSign

Integrate DocuSign's e-signature platform with Webflow to send signature requests and track document status from your website. Send signature requests, track document status, and collect legally binding agreements through automated API-triggered workflows.

Legal compliance solutions
Learn more
Osano Cookie Consent

Osano Cookie Consent

Implement GDPR and CCPA-compliant cookie consent on your Webflow site with Osano's powerful consent management platform, enabling automatic cookie blocking, customizable consent banners, and comprehensive compliance reporting without coding.

Legal compliance solutions
Learn more
Iubenda Privacy & Cookie Policy

Iubenda Privacy & Cookie Policy

Automate privacy compliance for your Webflow site with Iubenda's comprehensive privacy and cookie policy solutions. Generate GDPR, CCPA, and LGPD-compliant policies, display customizable cookie banners, and manage user consent — all without complex coding.

Legal compliance solutions
Learn more
Openli (formerly Legal Monster)

Openli (formerly Legal Monster)

Connect Openli’s automated compliance platform with Webflow to add GDPR-compliant cookie consent banners and privacy management while maintaining complete design control over consent experiences.

Legal compliance solutions
Learn more
iubenda privacy policy

iubenda privacy policy

Generate your privacy policy with iubenda and integrate it on your Webflow website to comply with GDPR, Cookie Law, CCPA and LGPD.

Legal compliance solutions
Learn more

Related integrations

No items found.

Get started for free

Try Webflow for as long as you like with our free Starter plan. Purchase a paid Site plan to publish, host, and unlock additional features.

Get started — it’s free