Skip to content

Commit

Permalink
MAGETWO-69374: stringify cookie value to fix Google Analyitcs Trackin…
Browse files Browse the repository at this point in the history
…g and Cookie Overlay #5596 #9713
  • Loading branch information
vrann authored May 24, 2017
2 parents ba15b7e + be49fa3 commit 28d8ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Cookie/view/frontend/web/js/notices.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ define([
$(this.options.cookieAllowButtonSelector).on('click', $.proxy(function () {
var cookieExpires = new Date(new Date().getTime() + this.options.cookieLifetime * 1000);

$.mage.cookies.set(this.options.cookieName, this.options.cookieValue, {
$.mage.cookies.set(this.options.cookieName, JSON.stringify(this.options.cookieValue), {
expires: cookieExpires
});

Expand Down

0 comments on commit 28d8ea6

Please sign in to comment.