Introduction
Welcome to the guide on managing cookie consent for Cevoid's conversion tracking. Whether you use a cookie banner, Google Tag Manager (GTM), Shopify, or have your own solution, this article provides step-by-step instructions to align your cookie practices with user preferences and privacy requirements.
Google Tag Manager (GTM)
If you utilize GTM for collecting consent, rest assured that Cevoid fully supports tracking consent checks through GTM's analytics_storage parameter. Our system will set the conversion tracking cookie only when the parameter is set to 'granted'. This seamless integration ensures compliance with user consent and simplifies tracking consent management through GTM.
Shopify Integration
Cevoid's galleries seamlessly integrate with the Shopify Consent Tracking API. This integration allows Cevoid to determine when it's permissible to set the conversion tracking cookie based on the user's consent. As a result, no additional action is required on your part when using Cevoid with Shopify.
Managing Cookie Consent without Shopify or GTM
For those not using Shopify or GTM, Cevoid offers a solution to handle cookie consent directly. By following these steps, you can ensure the conversion tracking cookie is only set after user consent:
Setting the 'cevoidTrackingConsent' Value
To prevent Cevoid from setting the cookie, you need to set the value of window.cevoidTrackingConsent
to 'denied'
. This value should be available on all pages where Cevoid's galleries are loaded. By setting it to 'denied'
, you ensure that the cookie will not be set until the user approves cookies.
Changing the Value to 'granted' upon Consent
Once the user approves cookies, you can update the cevoidTrackingConsent
value to 'granted'
. This change indicates that the user has explicitly consented to the cookie being set. It is crucial to make this update in order to enable Cevoid's conversion tracking.
Utilizing the 'userCanBeTracked' Function
Cevoid provides a handy function called userCanBeTracked
on the cevoid
window object. This function allows you to immediately set the cookie and initiate conversion tracking once the user's consent is obtained. By calling this function, you can streamline the process and start tracking conversions without delay.
Implementing the Solution
To implement this solution on your website, follow these key steps:
Ensure that the
window.cevoidTrackingConsent
value is set to'denied'
by default on all pages where Cevoid galleries are loaded.
Set up a mechanism to update the
window.cevoidTrackingConsent
value to'granted'
when the user approves cookies. This can be achieved through a user interface element, such as a cookie consent banner or a dedicated cookie settings page.
Whenever the
window.cevoidTrackingConsent
value is updated to'granted'
, invoke theuserCanBeTracked
function to set the cookie and initiate conversion tracking.
By following these steps, you can effectively manage cookie consent without relying on Shopify or GTM. Remember to implement the necessary code changes across all relevant pages to guarantee that the cookie is not set until user consent is obtained.