From 8124ea0640bded642d1ff484fb8b74812e2bbe34 Mon Sep 17 00:00:00 2001 From: Wojciech K Date: Wed, 17 Apr 2019 17:23:12 +0200 Subject: [PATCH] Update plugin.php According to google documentation _anonymizeIP in inside _gat method. Without this Google tag assistant is reporting the issue. --- plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.php b/plugin.php index 21914ef..823ac66 100644 --- a/plugin.php +++ b/plugin.php @@ -22,7 +22,7 @@ function render() var _gaq = _gaq || []; _gaq.push(['_setAccount', '{$this->data->tracking_id}']); _gaq.push(['_trackPageview']); - _gaq.push(['_anonymizeIP', {$anonymize}]); + _gaq.push(['_gat._anonymizeIP', {$anonymize}]); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; @@ -38,4 +38,4 @@ function render() OUT; } -} \ No newline at end of file +}