Is your integration GDPR compliant?
When implementing Unbxd’s Analytics Tracking service on your ecommerce website, ensuring compliance with the General Data Protection Regulation (GDPR) is crucial. Here’s how to maintain GDPR compliance while using our service:
User Consent Handling
Default Behavior: By default, the trackAnalytics
flag is set to true, which enables tracking for all users. However, it is essential to handle user consent appropriately.
Tracking Consent
- User Accepts Tracking: If a user consents to tracking their session data (either by accepting all cookies or specific categories related to session tracking), you should call the
Unbxd.enableAnalytics()
function to enable tracking for that session. - User Denies Tracking: If a user denies consent for tracking, either by rejecting all cookies or specific categories, call the
Unbxd.disableAnalytics()
function to stop tracking for that session.
Persistent User Preferences
Once a user has made their choice regarding consent preferences, it’s vital to store this preference locally, such as in a cookie or local storage. This practice ensures that you can respect the user’s decision across multiple sessions. On subsequent visits, check the stored preference and call Unbxd.enableAnalytics() or Unbxd.disableAnalytics()
accordingly.
How to implement, disable, or enable tracking?
Initialization
Ensure you have included the Unbxd Analytics JavaScript file in your HTML:
Replace PROD_SITEKEY
with your actual production site key.
To enable analytics tracking upon user consent:
Unbxd && Unbxd.enableAnalytics(); // Enable Analytics Tracking service
To disable analytics tracking upon user denial:
Unbxd && Unbxd.disableAnalytics(); // Disable Analytics Tracking service
It is crucial to respect user consent preferences and manage them correctly to ensure compliance with GDPR regulations. This approach not only protects user privacy but also fosters trust with your customers. For any further assistance or inquiries regarding GDPR compliance with Unbxd Analytics Tracking service, please reach out to Unbxd support.