Developer forum

Forum » Templates » Cookie details

Cookie details

Roop K. Rusbjerg
Reply

Hello,

Is it possible to show what type of cookies are used and why, in the ModalDialogWarning_Categories.html template (DW9)?

I have tried looking at the API and other similar questions in other forums, 
but without examples it's a bit difficult to understand (probably also out of my skillset).

And is it possible to add Google Analytics under tracking options?

All info and help is appreciated :)

Best wishes,

Roop 


Replies

 
Nicolai Pedersen
Reply

Yes - try adding the @TemplateTags() to your cookie template and see what tags and loops are available.

Google analytics cookies are set using javascript and the cookiemanager handles server side set cookies. So you have to do some manual stuff to do that. Also the Google cookies are set for googleanalytics.com so Dynamicweb cannot access those cookies.

So in your cookie manager you can create a GA 'virtual' cookie and in your template, check if the user accept that cookie, and if not, ensure GA does not set its cookie.

Rather complicated, I know...!
 

 

You must be logged in to post in the forum