---
description: >-
  Integration of cookies following the integration of the Axeptio SDK on the
  website
---

# Control your cookies in custom mode

## 1. Video presentation

VIDEO

## 2. Cookie integration

{% hint style="info" %}
Before proceeding to this step, it’s necessary to have followed the integration part of the SDK and to have finalized the configuration of the cookies you want to integrate.

If this is not done, you can consult:
{% endhint %}

You list all the cookies you want to integrate and go to the back office of your site. \
We’ll use the Hubspot tag for the example:

SCRIPT 1

{% hint style="warning" %}
It’s a HTML so we can’t use it as it is. We need to transform it into Javascript. \
The identifier put in the URL of the script corresponds to the client ID allowing Hubspot to identify your account. We chose to pass it as a parameter because it’s cleaner.
{% endhint %}

![](https://849880023-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LfKY2EAaueTI4M3Chnh%2F-Lgl-0ti09fB37AXicyC%2F-Lgl-vY2czCnOaShtfzZ%2FScript%201.png?alt=media\&token=690025e3-3271-4de2-b711-6f44ee21ee33)

You can copy and paste the function on your back office and the script will be loaded on your website. All you have left to do is set up the cookie drop-down when you click on the Axeptio cookie widget. To do this:

![](https://849880023-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LfKY2EAaueTI4M3Chnh%2F-Lgl-0ti09fB37AXicyC%2F-Lgl06jK3lbd_XSFZiyM%2FScript%202.png?alt=media\&token=cf2ac7d8-7e31-4e0c-93bc-69a03523a43e)

{% hint style="success" %}
A clear, informed and unambiguous acceptance is necessary before the deposit of the cookie on the website.
{% endhint %}

## 3. The example of Google Analytics

You’ll search for the script for Google Analytics

![](https://849880023-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LfKY2EAaueTI4M3Chnh%2F-Lgl-0ti09fB37AXicyC%2F-Lgl0TPd1ZdmNBQh8iO2%2FScript%203.png?alt=media\&token=2729d9e7-1b10-4de2-82a7-517be8de5426)

You transpose it into Javascript so you can copy/paste the function into your back office. All you have to do now is to set up the deposit of the cookie when you click on the Axeptio cookie widget and this looks like:

![](https://849880023-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LfKY2EAaueTI4M3Chnh%2F-Lgl-0ti09fB37AXicyC%2F-Lgl0Z9A-FKXbiYd37ib%2FScript%204.png?alt=media\&token=3b6ab7e1-2b1d-4bd8-9f1b-e2fbc1005244)

## 4. Example for Facebook Pixel and Google Analytics

You’ll search for the script for Facebook Pixel

![](https://849880023-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LfKY2EAaueTI4M3Chnh%2F-Lgl-0ti09fB37AXicyC%2F-Lgl0sWNjVqZZhaEAIx5%2FScript%205.png?alt=media\&token=0f5d852c-0a16-43d9-b1f1-e7464afe0612)

You transpose it into Javascript so you can copy/paste the function into your back office. All you have to do now is to set up the deposit of the cookie when you click on the Axeptio cookie widget and this looks like:

![](https://849880023-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LfKY2EAaueTI4M3Chnh%2F-Lgl-0ti09fB37AXicyC%2F-Lgl0vD0x7liSCGe3QCO%2FScript%206.png?alt=media\&token=9fae3a4a-0dbd-4aa6-ac99-296677949f09)

{% hint style="success" %}
Congratulations, everything is working perfectly!
{% endhint %}
