Nyla's native compliance banner
Nyla's native compliance banner enables customers to make a selection to opt into tracking for compliance purposes in different countries.
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:
GDPR 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, an IP location is attempted.
- If the customer is identified in one of the locations that you have set the banner to fire, then the cookie banner will fire.
- If the customer is identified in a location where the cookie banner is not active, it will not show.
- If the IP check fails and the customer cannot be located, then the cookie banner will fire.
If in a location where the cookie 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 cookie / tracking preferences to opt in or out of tracking, you can use the OPEN_GDPR link action in order to trigger the cookie banner on the site. If a customer clicks on this, it will summon the cookie banner and they can change their preference.