mc-magento
mc-magento copied to clipboard
feature request for GDPR? add a cookie check before placing MC remarketing code
Can we add a cookie check in the extension? We can make the cookie name and value configurable
if the cookie is found: then print remarketing code (customer gave consent)
else if not found: then do not print MC remarketing code
Something like
<?php
$consent = false;
$_cookie = Mage::getModel('core/cookie')->get('ow_cookie_notice');
if ($_cookie == 'approved') { $consent = true; }
?>
<?php if ($consent): ?>