Integration How it works?

Introduction

At Optimeleon, data privacy is of utmost importance, and we take it very seriously. We also recognize that tracking data is essential to make the most out of the UI data points collected on your website. To balance these needs, we've developed a two-step approach to ensure full GDPR compliance while optimizing your site's performance.

What Does the Script Do?

To provide the easiest integration possible, our base script handles several key functions on your website:

Variant Selection

  • Selects variants based on a function of: f(Campaign URL, UserData, OptimizationDataCollected, AIPredictionData , …)

  • This ensures that each user sees the most relevant content, enhancing their experience and increasing engagement.


User Behavior Tracking

  • Tracks user behavior and sends it to our AI model for future optimization.

  • Helps in continuously improving your website by learning from user interactions.

GDPR Compliance

To be fully GDPR compliant, our base version operates fully cookieless. It uses the data provided in real-time, pairs it with our prediction model and campaign optimization data to select the best variant for each user. This method allows us to instantly load the page and avoid flickering, enhancing user experience without compromising privacy.

For more comprehensive insights, we offer a version of the script that activates first-party cookies to track users across your site. This maximizes the utility of UI data points for further optimization. This part of the script should be integrated only after obtaining user consent to ensure GDPR compliance.

Our Content Delivery Network (CDN) ensures that the scripts load quickly, providing you with the fastest loading times possible.

How It Works

1. Paste the Base Script into the <head> Section

Add the following script tag within the <head> section of your website's HTML:

htmlCode kopieren<!-- Optimeleon Cookieless Base Script -->
<script src="https://cdn-stag.optimeleon.com/main.js" async></script>

This script enables cookieless tracking and instant variant loading without requiring user consent.

Note: Replace main.js with your personal script filename from your dashboard

2. Activate First-Party Cookies After User Consent

After a user gives consent, execute the following code to activate first-party cookies for enhanced tracking:

Option A: Using a Function Call

Place this function call in your consent management script where consent is granted.

Option B: Using a Script Tag

Alternatively, you can include the following script:

<script>
  setOptiCookieConsent('yes');
</script>

This script should run only after the user has provided consent, which can be set up through your Consent Management Platform (CMP) or via a click event on your consent prompt.

3. Validate Your Script

After integrating the scripts, you can validate your implementation on our validation page to ensure everything is set up correctly.

Click on Button:

Complete Verification:


By following these steps, you'll ensure that your website is both optimized for performance and compliant with data privacy regulations.

Next Steps:

Now that you've understood the basics, let's proceed to the detailed guide on integrating the script into your website.

Proceed to Integrating the Script »

Integration How it works?

Introduction

At Optimeleon, data privacy is of utmost importance, and we take it very seriously. We also recognize that tracking data is essential to make the most out of the UI data points collected on your website. To balance these needs, we've developed a two-step approach to ensure full GDPR compliance while optimizing your site's performance.

What Does the Script Do?

To provide the easiest integration possible, our base script handles several key functions on your website:

Variant Selection

  • Selects variants based on a function of: f(Campaign URL, UserData, OptimizationDataCollected, AIPredictionData , …)

  • This ensures that each user sees the most relevant content, enhancing their experience and increasing engagement.


User Behavior Tracking

  • Tracks user behavior and sends it to our AI model for future optimization.

  • Helps in continuously improving your website by learning from user interactions.

GDPR Compliance

To be fully GDPR compliant, our base version operates fully cookieless. It uses the data provided in real-time, pairs it with our prediction model and campaign optimization data to select the best variant for each user. This method allows us to instantly load the page and avoid flickering, enhancing user experience without compromising privacy.

For more comprehensive insights, we offer a version of the script that activates first-party cookies to track users across your site. This maximizes the utility of UI data points for further optimization. This part of the script should be integrated only after obtaining user consent to ensure GDPR compliance.

Our Content Delivery Network (CDN) ensures that the scripts load quickly, providing you with the fastest loading times possible.

How It Works

1. Paste the Base Script into the <head> Section

Add the following script tag within the <head> section of your website's HTML:

htmlCode kopieren<!-- Optimeleon Cookieless Base Script -->
<script src="https://cdn-stag.optimeleon.com/main.js" async></script>

This script enables cookieless tracking and instant variant loading without requiring user consent.

Note: Replace main.js with your personal script filename from your dashboard

After a user gives consent, execute the following code to activate first-party cookies for enhanced tracking:

Option A: Using a Function Call

Place this function call in your consent management script where consent is granted.

Option B: Using a Script Tag

Alternatively, you can include the following script:

<script>
  setOptiCookieConsent('yes');
</script>

This script should run only after the user has provided consent, which can be set up through your Consent Management Platform (CMP) or via a click event on your consent prompt.

3. Validate Your Script

After integrating the scripts, you can validate your implementation on our validation page to ensure everything is set up correctly.

Click on Button:

Complete Verification:


By following these steps, you'll ensure that your website is both optimized for performance and compliant with data privacy regulations.

Next Steps:

Now that you've understood the basics, let's proceed to the detailed guide on integrating the script into your website.

Proceed to Integrating the Script »