Appearance
🍪 Cookie Consent Bar
The Cookie Consent Bar allows you to control the loading of analytics, tracking, and other scripts based on user consent. This feature helps you comply with privacy regulations such as GDPR by only loading certain scripts after the user has provided explicit consent.
🛠 Accessing the Cookie Consent Settings
- Navigate to General Settings in your admin panel.
- Select the Tracking & Cookies tab.
In this section, you can configure the Cookie Consent Bar, manage Google Tag Manager, and add custom tracking scripts.
⚙️ Enabling the Cookie Consent Bar
- Toggle the Cookie Consent Bar setting to enable or disable it.
- When enabled, the cookie consent bar will appear to users, prompting them to allow or deny specific tracking scripts.
⚠️ Note: With the consent bar enabled, you can choose which scripts require user consent before they load. If the consent bar is disabled, all configured scripts will load automatically.
📋 Configuring Google Tag Manager (GTM)
To set up Google Tag Manager in the system:
- Enable GTM: Toggle Consent Required if you want GTM scripts to load only after the user consents.
- Enter GTM ID: In the Google Tag Manager ID field, enter your GTM ID (e.g., GTM-XXXXXXX).
💡 Tip: Make sure to check the GTM ID format (GTM-XXXXXXX) to avoid any misconfiguration.
📊 Tracking
The Tracking section allows you to add multiple tracking scripts, such as Google Analytics, PostHog, and custom scripts for various services. Each script has options to require user consent before loading.
Adding a New Tracking Script
- Click Add to tracking to create a new entry for a tracking script.
- Fill in the following details for each tracking script:
- Consent Required: Toggle this to specify if the script should load only after user consent.
- Name: Enter a descriptive name for the tracking script (e.g., Google Analytics, PostHog).
- Snippet: Paste the tracking code or script snippet directly in this field.
⚠️ Note: Only paste scripts that are essential for your analytics or tracking needs. Avoid adding unnecessary scripts, as it can impact your site's performance.
Example Configuration
Here's an example of how to set up Google Analytics in the Tracking section:
- Consent Required: On (to ask for user consent)
- Name: Google Analytics
- Snippet: Insert your Google Analytics tracking script here (e.g.,
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXX-X"></script>
).
💡 Tip: For custom tracking needs, consult the respective service's documentation to get the correct tracking snippet.
📝 Saving Your Settings
After configuring the consent bar, GTM ID, and any tracking scripts:
- Click Save Changes at the bottom of the page to apply your configurations.
- Any new or edited scripts will be inserted based on the consent settings you’ve chosen.