Enable customers to set their consent preferences
Nyla's native compliance banner enables customers to make a selection to opt into tracking for compliance purposes in different countries.
This article covers Nyla's native consent banner. In order to use your own custom consent banner with Nyla, see more information here.
Activating the App
In order to activate your consent banner, you should go to apps > Consent Banner
- Countries: Toggle on/off the locales you want the banner to appear in. You should ensure all locations in which want the banner to appear are toggled on.
- Modal Settings: Enter copy and a link for the banner where the customer can find more information. Toggling "Use Light Theme" will show either a light or dark version of the banner for legibility purposes.
- The link only needs the path (also known as the relative URL) for the page, not your entire site address, e.g:
- To link to a page with the URL privacy-policy, you would add: /pages/privacy-policy
- To link to your homepage, you would simply add /
- To link to a page with the URL privacy-policy, you would add: /pages/privacy-policy
- If you leave the link field empty, it will default to /pages/privacy-policy after the site is built (but not in the live preview)
- The link only needs the path (also known as the relative URL) for the page, not your entire site address, e.g:
Consent Banner Styles:
The banner's styles are derived from your design tokens.- CTAs: You can set the CTA styles that you want for your approve or deny buttons in the app
- Background and text: Colors are based on the chosen theme.
- Dark theme: Black color design token for the background and primary color design token for the text.
- Light theme: White color design token for the background and primary color design token for the text.
How this works:
When a customer lands on your site, if the user is in a location where the consent banner is active, customers will not be tracked for any non-compliant cookies or events until they opt-in to tracking.
Their tracking preference is stored in their local storage so they don't have to re-select their preference every time they visit your site.
Enabling customers to change their preference
If a customer wishes to change their consent preferences to opt in or out of tracking, you can use the OPEN_GDPR link action in order to trigger the consent banner on the site. If a customer clicks on this, it will summon the consent banner and they can change their preference.