Skip to main content

Add the Meta consent cookie to a cookie banner

Keep Meta Conversions API events working when you use consent mode with a cookie banner.

If you use Meta Pixel with consent mode turned on, your cookie banner needs to recognize one Kajabi cookie: _kjb_fb_consent. Many cookie banners delete cookies they don't recognize. When that happens, Kajabi can't send Lead and Purchase events to Meta through the Conversions API (CAPI), even for visitors who accepted marketing cookies.

Check if you need to do this

Follow the steps in this article if all of these are true:

  • You connected Kajabi's Facebook Pixel integration with a Pixel Id and an Access Token.

  • Use consent mode for Facebook Pixel (under Advanced in the Facebook Pixel settings) is turned on.

  • Your site uses a cookie consent banner, such as CookieScript or Cookiebot.

If consent mode is off, you don't need to do anything.

Understand why this matters

When a visitor accepts marketing cookies, Kajabi saves that choice in the _kjb_fb_consent cookie. Before Kajabi sends a Lead event (a form submission) or a Purchase event through CAPI, it checks for this cookie. If the cookie isn't there, Kajabi doesn't send the event. Kajabi clears this cookie at the start of every page load, so your cookie banner needs to confirm consent on every page, including checkout and upsell pages.

Most cookie banners delete any cookie that isn't on their list. Because _kjb_fb_consent isn't on the list by default, the banner removes it shortly after the page loads. Browser events still reach Meta, but CAPI events don't, so Meta receives fewer Lead and Purchase events than your site actually gets.

When you add the cookie to your banner as a marketing cookie, your banner keeps it for visitors who accept and deletes it for visitors who decline or withdraw consent. Kajabi then sends CAPI events only for visitors who agreed to marketing cookies.

Use these cookie details

Add the cookie to your banner with these details.

Name

_kjb_fb_consent

Category

Marketing

Type

First-party

Domain

The exact domain your visitors use. www and non-www versions count as separate domains.

Duration

Session (deleted when the visitor closes their browser)

Purpose

Records that the visitor accepted marketing cookies, so Kajabi can send Lead and Purchase events to Meta through the Conversions API. It doesn't contain any personal information.

Warning: Set the category to Marketing, not Strictly necessary. Your banner needs to treat it as a marketing cookie so it removes the cookie for visitors who decline.

Add the cookie in CookieScript

  1. Log in to your CookieScript account.

  2. Go to Cookies > Cookie report.

  3. Click Add new cookie.

  4. Enter the cookie details from the table above, and choose Marketing as the category.

  5. Click Add cookie.

Add the cookie in Cookiebot

  1. Log in to your Cookiebot account.

  2. Open the cookie list for your domain.

  3. Add a new cookie manually, using the cookie details from the table above.

  4. Choose Marketing as the category, then save.

Add the cookie in another cookie banner

Most cookie banners let you add a cookie manually. Look for an option such as Add cookie in your banner's cookie list or cookie declaration, and use the details in the table above. If you can't find it, contact your cookie banner's support team.

Add your cookie banner to checkout and upsell pages

Kajabi doesn't add your page scripts to offer checkout pages or upsell pages. If your cookie banner is only in Header Page Scripts, it can't confirm consent on those pages, and Kajabi doesn't send Purchase events through CAPI. Add the same banner script to your checkout and upsell tracking code.

  1. From the Dashboard, click Settings.

  2. Under Payment settings, click Checkout.

  3. In the Checkout Tracking Code section, click Add header tracking code (or Edit header tracking code if you already have code there), then paste your cookie banner script.

  4. If you use upsells, in the Upsell Tracking Code section, click Add upsell header tracking code (or Edit upsell header tracking code), then paste the same script.

  5. Click Save.

Update your cookie policy

If your site's cookie policy lists the cookies you use, add _kjb_fb_consent to your marketing cookies, with the purpose from the table above.

Check that it's working

  1. Open your site in a private or incognito browser window.

  2. Accept marketing cookies in your cookie banner.

  3. Submit a Kajabi form that sends visitors to a thank-you page on your Kajabi site.

  4. In Meta Events Manager, open your Pixel and find the Lead event. It should show both Browser and Server as sources.

Learn more about events and consent mode in Meta Pixel with Kajabi.

FAQs

Why does Meta show only Server for my Lead event?

Kajabi sends the browser Lead event on the page a visitor reaches after submitting the form, usually your form's thank-you page. If the form sends visitors to a page outside your Kajabi site, Meta only receives the server event.

Can my cookie banner or tag manager also load Meta Pixel?

No, not while you use Kajabi's Facebook Pixel integration. If another script loads Meta Pixel before Kajabi does, Kajabi can't set the _kjb_fb_consent cookie and CAPI events stop. Let Kajabi's integration load Meta Pixel, and use your banner only to manage consent.

Did this answer your question?