dmind-gmbh / extension-cookieman

A GDPR tracking consent popup for the content management system TYPO3. It asks for approval to include tracking objects (cookies, images or any HTML) and includes the objects when consented.
https://extensions.typo3.org/extension/cookieman
GNU General Public License v2.0
34 stars 17 forks source link

Extended Cookie configuration #336

Open ax-ha opened 1 month ago

ax-ha commented 1 month ago

Hello guys, thanks for the nice extension.

I am currently facing a problem with the cookie setup. Lets say there is one Typo3 instance which has two configured sites: sub1.domain.com sub2.domain.com

Is there a possibility to configure the domain cookie so that it uses ".domain.com"? This would improve the user experience on my site because the user is not forced to re-submit his cookie settings when he switches between these sites (subdomains). Thanks a lot.

jonaseberle commented 1 month ago

Hi @ax-ha, that sounds like a good idea.

It should be here: https://github.com/dmind-gmbh/extension-cookieman/blob/master/Resources/Public/Js/cookieman.js#L27-L31

It would be great if we could configure it for example via plugin.tx_cookieman.cookie-domain?

Do you want to provide a pull request?

ax-ha commented 1 month ago

Yes, indeed. Give me some time :-)