Skip to content

Integrate with my Cookie Management Platform (CMP)


Within Foleon, you could be using YouTube, Vimeo, Google Analytics, HubSpot tracking, Salesforce Pardot, and more. All these platforms use cookies that you want to be able to control. We currently categorize cookies into 3 groups.

  • Preferences: Used to save preferences, like keeping you logged in.
  • Statistics: Used to collect anonymized data to measure the performance of your content.
  • Marketing: Used to remarket or track a specific group of people or individuals.

You can control which scripts fire based on your users’ cookie preferences. The following example shows how to implement this.

<script type="text/plain" data-cookieconsent="marketing">
// only executed if marketing cookies are enabled
<script type="text/plain" data-cookieconsent="statistics">
// only executed if statistics cookies are enabled

Default Settings

By default, Foleon’s Cookie Consent will use the following settings until the user customizes his or her preferences.

    preferences: 1, // true
    statisics: 1, // true
    marketing: 0, // false

To change these defaults, use the following script:

<script type="application/javascript">
    foleon('setCookieConsent', function() {
        return {
            preferences: 1,
            statistics: 0,
            marketing: 0,


Make sure to set your own defaults if you don't enable Foleon Cookie Consent. If the Foleon Cookie Consent is disabled your publication will allow all by default.

If you prefer to use your own custom cookie consent platform, be aware that it still connects to our settings. This allows you to disable or enable some parts of your Foleon Doc.

Adding your custom cookie consent platform requires you to add a script to your Remarketing field in the Foleon Doc Settings.

  1. Open your Foleon Doc
  2. Go to your Foleon Doc settings
  3. In the marketing section you will find the remarketing field.

Last update: 2023-11-06