Skip to content

EARN UP TO 50% COMMISSION WITH OUR RESELLER ACCOUNTS + REGULAR PASSIVE INCOME SIGN UP TODAY

ImpressPages Platform

Dougal Matthews
3 min read

ImpressPages (IP) is an open-source CMS with a lightweight theming system. CookieScan can be added by editing your theme's main.php file or via a custom code plugin if one is installed.

Before you start

You will need:

  1. An active CookieScan subscription (view plans)
  2. Your banner installation code from the CookieScan dashboard (Cookie Banner β†’ Install Code)
  3. Administrator access to your ImpressPages site
  4. FTP or file manager access to your server

The install code looks like this:

<script src="https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID"></script>

Replace YOUR-COOKIESCAN-ID with the code from your dashboard.

Step 1 - Locate your theme

Via FTP or your file manager, navigate to:

/Theme/<your-active-theme>/main.php

To confirm which theme is active, check Admin β†’ Design in the ImpressPages admin.

Step 2 - Edit main.php

  1. Open main.php in your code editor
  2. Find the opening <head> tag near the top
  3. Add your CookieScan script immediately after <head>:
<head>
  <script src="https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID"></script>
  <?php echo ipHead(); ?>
  ...rest of your head content...
</head>

Step 3 - Save and clear cache

  1. Save and upload the file back to your server
  2. In ImpressPages admin, go to Admin β†’ Development β†’ Dispatch Cache and clear cache
  3. Visit your site in a new incognito window
Tip: If you're using a theme you don't control (e.g. a purchased theme that gets updates), consider creating a child theme or copying the theme to a new folder so your changes aren't overwritten.

Method 2: Use ipHead() filter (for developers)

For a more portable approach, use ImpressPages's hook system in your plugin or theme's setup.php:

IpEvent::addListener('ipBeforeController', function () {
    ipAddJs('https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID');
});

Or inject raw HTML into the head via:

ipAddHeadJs('https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID');

Method 3: Install via Google Tag Manager

If GTM is already on your ImpressPages site:

  1. In CookieScan, open Cookie Banner β†’ Install Code and switch to the Google Tag Manager Install tab
  2. Copy your CookieScan ID
  3. In GTM, add the CookieScan template from the Community Gallery
  4. Create a tag using the template, paste your ID
  5. Trigger: Consent Initialization - All Pages
  6. Submit and publish

Verify the installation

  1. Visit your site in a new incognito window
  2. The CookieScan banner should appear
  3. Open DevTools (F12) β†’ Network tab β†’ filter by cookiescan
  4. Confirm banner.cookiescan.com loads

What happens next

  • CookieScan scans your site and detects all cookies
  • New cookies appear in Cookie Manager β†’ Unclassified - categorise them
  • The banner blocks cookies until user consent
  • Every decision is logged in Consent Log

Troubleshooting

Banner not appearing

  • Clear ImpressPages cache: Admin β†’ Development β†’ Dispatch Cache
  • View page source and confirm the script is in the <head>
  • Check the file main.php was uploaded correctly

Changes lost after theme update

  • Create a copy of the theme in a new folder and activate that instead
  • Or use Method 2 (plugin hook) which survives theme updates

Cookies still loading before consent

  • ImpressPages plugins may set cookies server-side
  • Run Cookie Manager β†’ Rescan Domain in CookieScan to catalogue them

Full documentation

For detailed setup help, see the support guide linked in your CookieScan dashboard, or visit our support guides.