Learn how to integrate Cookie3 script into your HTML code.

Whether you're a seasoned developer or new to coding, this documentation will provide you with clear instructions and a snippet to help you seamlessly connect the script to your website.


  1. Open the HTML file where you want to connect the custom script.

  2. Find the appropriate place within the <head> or <body> tag to insert the script.

  3. Copy the provided script (see the instructions how to get the script in Cookie3) and paste it into the desired location in your HTML file.

  4. Save the changes and upload the updated HTML file to your website's server.

  5. The custom script will now be connected to your website.

<!DOCTYPE html>
    <!-- Other head elements -->
        const cookie3Options = {"siteId": YOUR_SITE_ID,"additionalTracking":true,"cookielessEnabled":true};
        window._paq = window._paq || [];
        (function () {
            var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
            g.async = true; g.src = '';
            s.parentNode.insertBefore(g, s);
    <!-- Your HTML content -->

Checking the script status

After connecting the custom script to your website, make sure to deploy/save/update your production code.

  1. Once the production code is updated, open a web browser and visit

  2. Check the Connection status for your website in the table row.

  3. If the status is 'Connected,' congratulations!

  4. If the status is 'Not connected,' click on the refresh icon to attempt to establish the connection again.

  5. If the connection still fails, please reach out to our support team for further assistance.

Congratulations! You have successfully connected the Cookie3 Script to your website. You can now leverage advanced tracking and analytics features for your website.

Last updated