Skip to content

Commit 88d6221

Browse files
committed
MAGETWO-68845: Universal Analytics doesn't work when Cookie Restriction is enabled
- Suppressed warnings in the javascript code provided by analytics;
1 parent bf9ea28 commit 88d6221

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/code/Magento/GoogleAnalytics/Test/Unit/Block/GaTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
use Magento\Store\Model\StoreManagerInterface;
2020
use PHPUnit_Framework_TestCase;
2121

22+
/**
23+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
24+
*/
2225
class GaTest extends PHPUnit_Framework_TestCase
2326
{
2427

app/code/Magento/GoogleAnalytics/view/frontend/web/js/google-analytics.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* Copyright © Magento, Inc. All rights reserved.
33
* See COPYING.txt for license details.
44
*/
5-
5+
/* jscs:disable */
6+
/* eslint-disable */
67
define([
78
'jquery',
89
'mage/cookies'

0 commit comments

Comments
 (0)