Skip to content

Documentation

How to Add a Cookie Banner on an OpenCart Store

How to Add a Cookie Banner on an OpenCart Store

Last updated Mar 15, 2026

This guide walks you through adding the Kukie.io cookie consent banner to your OpenCart store. The process involves pasting a single script tag into your theme's header template.

Prerequisite: You need a Kukie.io account and at least one site added. If you haven't done this yet, follow Create Your Account & Add Your First Site first.

Step 1: Get Your Embed Code

Log in to your Kukie.io dashboard, navigate to your site, and copy the embed code from the Setup tab. It looks like this:

<script src="https://cdn.kukie.io/s/YOUR-SITE-KEY/c.js" async></script>

Replace YOUR-SITE-KEY with the actual site key shown in your dashboard.

Step 2: Add the Script to OpenCart

  1. In your OpenCart admin panel, go to Design → Theme Editor (OpenCart 3.x+) or access your theme files via FTP/SSH
  2. Open the header template file — typically catalog/view/theme/YOUR_THEME/template/common/header.twig
  3. Find the </head> closing tag and paste the Kukie.io embed code just before it:
    <script src="https://cdn.kukie.io/s/YOUR-SITE-KEY/c.js" async></script>
  4. Save the file
  5. In your OpenCart admin, go to Dashboard and click the blue refresh button (top right) to clear the theme cache

Theme Editor availability: If you do not see the Theme Editor in your admin panel, you may need to enable it under Extensions → Modifications. Alternatively, edit the file directly via FTP.

Step 3: Verify the Installation

Visit your website in a new browser window (or incognito/private mode). You should see the Kukie.io consent banner appear. If it does not show, check the following:

  • Open your browser's Developer Tools (F12) and look for the script in the Network tab — it should load with a 200 status
  • Check the Console tab for any JavaScript errors
  • Make sure you published/saved your changes in OpenCart
  • Clear any platform-level cache if applicable

For a detailed verification walkthrough, see How to Verify Your Banner Installation.

Next Steps

Need help? If you run into any issues, contact our support team and we'll help you get set up.

Was this helpful?