1
Copy your CookieChimp snippet
Log in to your CookieChimp dashboard and copy your website's JS snippet:Replace
abc123 with your website's unique CookieChimp ID.2
Add the snippet to your Hostinger site
- Sign in to your Hostinger account and open the Website Builder for your site.
- In the builder, open the Settings menu (gear icon, top-right).
- Choose Integrations, then Custom code.
- Click + Add custom code.
- Paste the CookieChimp snippet into the code field.
- Set Placement to Head, and Pages to All pages.
- Click Save, then Publish your site.
The CookieChimp script needs to be the first script in the
<head> section so it can block other scripts before they run and set cookies without consent. If other scripts are added before, they may set cookies and other storage items before consent is granted.3
Block scripts & cookies
To stay compliant with GDPR and other privacy regulations, you need to actively block non-essential scripts and cookies until the user gives consent. See our Scripts Management Section for full details.
4
Allow users to update their preferences
CookieChimp provides a floating privacy icon (Privacy Trigger) that lets users manage cookie preferences at any time. Enable it in the banner settings.To open the preferences modal from a custom button or link, add the data attribute To open the preferences modal from a button on your Hostinger site, add an Embed element with HTML containing the
data-cc="show-preferencesModal":data-cc="show-preferencesModal" attribute.Troubleshooting
- Banner doesn’t appear — make sure your Hostinger domain (including the
*.hostingersite.compreview URL and your custom domain) is allowed in Account Settings → Additional Domains in your CookieChimp dashboard. - “Custom code” option is missing — Custom code is available on Hostinger’s Business Website Builder plan and above. The basic plan may not include it.
- Banner shows in preview but not on live — Hostinger publishes changes only after you click Publish. Editor preview may use cached snippets.
- Enable Debug mode from the CookieChimp dashboard and check the browser JS console for errors.
If you encounter any issues or need further assistance, please reach out to us via our chat.
Hostinger cookie banner FAQ
Does this also work on the old Zyro builder?
Does this also work on the old Zyro builder?
Yes. Hostinger Website Builder is the rebranded version of Zyro and the Custom code menu works identically.