Developer forum

Forum » Dynamicweb 10 » how to add cookies to dw10 Cookie Manager?

how to add cookies to dw10 Cookie Manager?

Christoffer Rosendahl Frede
Reply

Hi All.

We are currently working on a website and would like to know,

how to add new cookies to the cookielist in the backend Cookie manager.

Lets say we add hotjar to the website, then we need to add cookies for that.

there is an "+ add cookie" button inside the cookie manager cookies list, but it only opens a dropdown with a list of cookies

and i dont see any actual possiblity to add a cookie. i have added a screendump that shows the "+ add Cookie" button

I cant seem to find any info on this in the documentation or in the forums, does anyone have any some insights for this ?

/best regards Christoffer

Dw10Cookies.png

Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Only cookies handled by the cookiemanager will show up here. So once you set the cookie using the CookieManager.SetCookie it will be added to the list.

You can also add them using the globalsettings file - e.g. /Globalsettings/Settings/CookieManager/TrackingCookies contains all tracking cookies and /Globalsettings/Settings/CookieManager/CategoryCookies/{category} contains cookies for specific categories.

But if you do not read and write your cookies with CookieManager, it will have no effect.

BR Nicolai

 

You must be logged in to post in the forum