Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

cookie consent in cms7

Vote:
 

Hi team,

We are using episerver cms 7.5 version. we have to  implement cookie consent in my website.

Can any one help me hin this regard.

Thank you in advance

#254732
May 12, 2021 12:45
Vote:
 

The easiest would probably be using a service like https://www.cookiebot.com/ or https://cookieinformation.com/

#254735
May 12, 2021 18:32
Vote:
 

If you don't want to use a 3rd party for that feature, you can use the following approach:

  1. Create a controller and a child action that will check for a specific cookie for your website
    1. If the cookie is not there, you can display the screen / modal / notification about cookie consent and the buttons to accept / reject the cookies
    2. If the cookie is there, you can enable scripts that are requiring cookie consent.
  2. Create a separate action for when the user accepts/rejects cookies that will create the cookie to be used to know the user decision and be used at point 1.2
#254813
May 14, 2021 8:15
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.