Want to Increase Your Sales?

Get ecommerce guides and tips straight to your inbox

Implementing the EU Cookie Law (e-Privacy Directive)

Franclin Foping 5 June 2013 • eCommerce, Features, News

Since May 26th 2012, websites operating in the EU must implement the EU e-Privacy Directive. Under this law, websites are required to get visitors’ informed consent before placing a cookie on their machine. A cookie is a small text file that a website stores on the visitor’s computer to help track different things, like if you want to stay logged into a website, or your preferences within a website. This paradigm is ubiquitous on the Web, especially in the eCommerce industry.   The NitroSell eCommerce platform uses cookies to maintain the customer’s basket as they navigate from page-to-page and for page and eCommerce tracking if you’re using Google Analytics.

To implement this directive in your WebStore, you should follow these 2 steps:

Step 1 – Enable the Cookie Policy option in your WebStore Manager as shown in the following screenshot.

Figure 1: Enabling the Cookie Policy option in your WebStore Manager

The option can be found in your WebStore Manager under Settings > All Config Options > Customer Tab. Having enabled the option, you should select in the dropdown menu the page where you have provided more information about the cookie usage on your WebStore. We recommend to include this information in the Terms & Condition Page.

If you are using the default footer template, then you do not need to do anything else. Otherwise, you will need to proceed to Step 2.

Step 2 – Just before the closing body tag in your footer template of your WebStore, you should enter the following NitroScript code:

{if (pageproperty[‘cookiewarning’])}
<script language=”javascript” type=”text/javascript”>
var sLearnMoreURL = “{pageproperty[‘cookiewarning’]}”;

function setUsageCookie() {
nsc.cookie(‘cookiepopup’, ‘1’, {expires: 3650, path: ‘/’});
nsc.noticeRemove(nsc(‘.notice-item-wrapper’), 400);
}

if (nsc.cookie(‘cookiepopup’)) {
} else {
nsc.noticeAdd({
text: ‘This website uses cookies, by continuing you agree to their use. <a href=\” + sLearnMoreURL + ‘\’>Learn more </a> <input type=\’submit\’ onclick=\’setUsageCookie();\’ value=\’OK\’>’,
stay: true,
type: ‘success’
});
}
</script>
{endIf}

Having done that, your visitors will be prompted with a green dialog box at the bottom right of your homepage as illustrated in the following screenshot.

Figure 2: The Cookie dialog box

The Learn more Link points to the page that you have previously specified in Step 1. In this case, it would be the Terms & Conditions Page.

This feature is currently only available to Beta.

One response to “Implementing the EU Cookie Law (e-Privacy Directive)”

  1. Hi Peter,

    Thanks for spotting that. This has now been fixed.

    Regards,
    Franclin

Leave a Reply

Your email address will not be published. Required fields are marked *