Skip to content

Commit

Permalink
Merge pull request #54 from Ge2C/Add-support-for-new-google-analytics-v4
Browse files Browse the repository at this point in the history
Fix error because double doublequote and semicolon
  • Loading branch information
bozana authored Aug 30, 2022
2 parents 3433a1e + c91cdb7 commit 16083d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GoogleAnalyticsPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function registerScript($hookName, $params)
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true;
j.src = 'https://www.googletagmanager.com/gtag/js?id=' + i + dl; f.parentNode.insertBefore(j, f);
function gtag(){dataLayer.push(arguments)}; gtag('js', new Date()); gtag('config', i); })
(window, document, 'script', 'dataLayer', '$googleAnalyticsSiteId');";
(window, document, 'script', 'dataLayer', '$googleAnalyticsSiteId');
";

$templateMgr = TemplateManager::getManager($request);
Expand Down

0 comments on commit 16083d8

Please sign in to comment.