Self Managing Cookie Consent via APIs

Self Managing Cookie Consent via APIs

Cookies provide valuable insights into user interactions when used in webforms. Despite their significance, global data protection and privacy regulations, including the General Data Protection Regulation (GDPR), the ePrivacy Directive, and the Act on the Protection of Personal Information, require businesses to obtain explicit consent before using cookies that identify users. This creates a need for webforms that support cookie consent requirements and help businesses align with applicable privacy regulations.

If your website (where the webform is embedded) already has its own cookie consent banner, you can connect it to Zoho CRM to record the cookie consent choices made by your webform visitors. Read on to learn how the connection works and how to set it up correctly.

How does it work?

When a visitor accepts or rejects the cookie banner on your website, Zoho CRM does not automatically record their decision. To ensure that it accurately captures each visitor's preference, you must inform it of their choices. You can do this by adding a small piece of code that triggers when visitors make their selection.

How do I get started?

You (or your web developer) need to add the following callback functions to your cookie consent banner and trigger the appropriate one based on the visitor’s choice.
  1. If a visitor accepts cookies:
 _wfa_track.acceptCookieConsent();
  1. If a visitor rejects cookies:
_wfa_track.rejectCookieConsent();

To ensure these callback functions work correctly, trigger them only after the web form has fully loaded. Once triggered, Zoho CRM records the visitor's cookie preference. Based on this preference, analytics cookies will either continue tracking unique visits and form submissions or stop tracking them altogether.

Frequently Asked Questions

No. Even if your banner looks and works perfectly, Zoho CRM will not read or detect the visitor's choice on its own. You must use the code snippets above to notify Zoho CRM of the visitor's decision.

2. What happens if I forget to add the code to my banner?

Zoho CRM will treat every visitor as having rejected cookies by default. While this keeps you compliant, it also means that CRM will not store any cookies, so each visit and submission will be considered as new.

3. My website has more than one form — will this cause any issues?

Not necessarily, but there are a few things to keep in mind. If your website has multiple forms — for example, one using Zoho CRM's built-in cookie banner and another using your own custom banner — both can send consent signals to Zoho CRM. When two signals come from the same visitor, the most recent one overrides the earlier signal. To avoid issues, ensure your setup sends a single, clear, accurate signal that reflects the visitor's actual choice, and that conflicting signals are not sent one after the other.

4. My form is embedded via an iframe. Will my custom banner still work?

Custom cookie banners do not support forms embedded via an iframe, a method in which one webpage gets loaded inside another. In such cases, CRM will treat consent as rejected, regardless of what visitors choose on your banner. To track consent for an iFrame-embedded form, use Zoho CRM's built-in cookie consent banner instead.


        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                  Zoho FSM Video Tutorials


                                        All-in-one knowledge management and training platform for your employees and customers.

                                                  Create. Review. Publish.

                                                  Write, edit, collaborate on, and publish documents to different content management platforms.

                                                  Get Started Now




                                                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                        Manage your brands on social media


                                                                          • Desk Community Learning Series


                                                                          • Digest


                                                                          • Functions


                                                                          • Meetups


                                                                          • Kbase


                                                                          • Resources


                                                                          • Glossary


                                                                          • Desk Marketplace


                                                                          • MVP Corner


                                                                          • Word of the Day


                                                                          • Ask the Experts


                                                                            Zoho Sheet Resources

                                                                             

                                                                                Zoho Forms Resources


                                                                                  Secure your business
                                                                                  communication with Zoho Mail


                                                                                  Mail on the move with
                                                                                  Zoho Mail mobile application

                                                                                    Stay on top of your schedule
                                                                                    at all times


                                                                                    Carry your calendar with you
                                                                                    Anytime, anywhere




                                                                                          Zoho Sign Resources

                                                                                            Sign, Paperless!

                                                                                            Sign and send business documents on the go!

                                                                                            Get Started Now




                                                                                                    Zoho TeamInbox Resources





                                                                                                              Zoho DataPrep Demo

                                                                                                              Get a personalized demo or POC

                                                                                                              REGISTER NOW


                                                                                                                Design. Discuss. Deliver.

                                                                                                                Create visually engaging stories with Zoho Show.

                                                                                                                Get Started Now








                                                                                                                                    • Related Articles

                                                                                                                                    • Consent Management

                                                                                                                                      Zoho CRM's consent management settings help you get consent from your prospects and customers. We provide a system where you can customize the consent form, include it in your email templates, set consent-related preferences, and most importantly, ...
                                                                                                                                    • Including Opt-in Checkbox in Web Forms for Consent

                                                                                                                                      You may already have some Zoho CRM web forms in use that are published in your website. You need to follow the steps given below to add a consent checkbox to those web form. The same steps can also be followed to include consent checkbox in a new ...
                                                                                                                                    • Working with Zoho Forms Integration

                                                                                                                                      What are Zoho Forms? Using Zoho Forms, you can easily build an online form for all your business needs. Create and customize the form, add the required fields and send it to your customers thus facilitating data collection. It allows you to capture ...
                                                                                                                                    • Setting up Webforms

                                                                                                                                      Creating a webform involves three steps: Building the form - Drag and drop fields to build a form and format it easily with the WYSIWYG editor. Specifying the form details - Add details such as form name, landing page URL (where the visitor needs to ...
                                                                                                                                    • Managing Profile Permissions

                                                                                                                                      To make the process of managing profile permissions easier, the permissions have been grouped in such a way that you will have no problem customizing them as needed. You can enable or disable permission in a single click rather than having to go ...
                                                                                                                                      Wherever you are is as good as
                                                                                                                                      your workplace

                                                                                                                                        Resources

                                                                                                                                        Videos

                                                                                                                                        Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                        eBooks

                                                                                                                                        Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                        Webinars

                                                                                                                                        Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                        CRM Tips

                                                                                                                                        Make the most of Zoho CRM with these useful tips.



                                                                                                                                          Zoho Show Resources