Wordpress

Whether you're an experienced WordPress user or new to the platform, this documentation provides step-by-step instructions and a snippet to assist you in connecting the script to your website.

Walkthrough

  1. Log in to your WordPress admin panel.

  2. Navigate to "Appearance" and select "Editor" or "Theme Editor" (depending on your WordPress version).

  3. Locate the appropriate template file for your website where you want to connect the custom script (e.g., header.php, footer.php).

  4. Click on the desired template file to open the editor.

  5. Find the appropriate place to insert the script within the template file.

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

  7. Update the file to save the changes.

  8. The custom script is now connected to your WordPress website.

<script>
    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 = 'https://cdn.cookie3.co/scripts/analytics/latest/cookie3.analytics.min.js';
        s.parentNode.insertBefore(g, s);
    })();
</script>

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 app.cookie3.co/website/manage.

  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