A website on the 1C-Bitrix platform cannot do without a cookie notification. This is not just a requirement of the law, but also an important element of trust, security and SEO. In this article, we will explain why a cookie banner is required and how to embed it on the Bitrix website using a simple, free solution from QForm.
Developers and website owners are concerned about the question: "Do I need a cookie banner?" The answer is yes, if the website:
In Russia, the collection of cookies, if they can identify the user, is regulated by FZ-152 "On Personal Data". The GDPR applies in the EU countries, while the CCPA and other local regulations apply in the USA. In all cases, it is required:
If you don't want to develop a notification from scratch, you can use the free solution from QForm, a universal and customizable cookie banner compatible with any CMS, including Bitrix.
In the Bitrix admin panel:
html
<script src="https://cdn.qform.io/cookie/cookie-banner.js" async></script>
This will ensure that the banner loads when any page is opened. Step 2. Customization (optional) To customize the appearance, texts, and behavior of the banner, add a configuration object before enabling the script.:
html
<script>
window.qformCookieSettings = {
backgroundColor: '#f0f0f0',
buttonColor: '#007bff',
fontColor: '#000',
position: 'bottom',
messageText: 'This website uses cookies to enhance user experience. For more information, see',
policyText: 'Privacy Policy',
privacyLink: '/privacy-policy/',
cookieExpiryDays: 60
};
</script>
<script src="https://cdn.qform.io/cookie/cookie-banner.js" async></script>
The 1C-Bitrix platform supports multisite, custom templates, and includeArea. Depending on the architecture, the script can be added to:
/bitrix/templates/шаблон/footer.php
or to the included area if the footer is connected via
<?$APPLICATION->IncludeFile();?>
In a multi-site structure, insert a script into each template where a banner is required.
After adding the script:
Parameter |
Appointment |
backgroundColor |
Banner background color |
buttonColor |
The color of the consent button |
fontColor |
Text color |
messageText |
Notification text |
policyText |
The text of the link to the policy |
privacyLink |
Link to the Privacy Policy |
position |
Banner location (top, bottom, etc.) |
cookieExpiryDays |
Consent retention period, in days |
Cookie notification is a mandatory element of a legally clean website, especially if you work on the 1C-Bitrix platform, where data collection and analytics are often used.
Advantages of the QForm script:
Add it today, and your site will become not only legitimate, but also more professional in terms of UX and SEO.