Skip to content

Commit 5df41f2

Browse files
Google Analytics: Minor fix
1 parent 0fdd750 commit 5df41f2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Plugins/SmartStore.GoogleAnalytics/Controllers/WidgetsGoogleAnalyticsController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private string GetStorageScript()
168168
, {
169169
'storage': 'none',
170170
'clientId': '" + _workContext.CurrentCustomer.CustomerGuid + @"',
171-
storeGac: false
171+
'storeGac': false
172172
}
173173
";
174174

@@ -184,7 +184,7 @@ private string GetTrackingScript(bool cookiesAllowed)
184184
script = script.Replace("{GOOGLEID}", settings.GoogleId);
185185
script = script.Replace("{ECOMMERCE}", "");
186186
script = script.Replace("{OPTOUTCOOKIE}", GetOptOutCookieScript());
187-
script = script.Replace("{STORAGETYPE}", cookiesAllowed ? "" : GetStorageScript());
187+
script = script.Replace("{STORAGETYPE}", cookiesAllowed ? "'auto'" : GetStorageScript());
188188

189189
return script;
190190
}

src/Plugins/SmartStore.GoogleAnalytics/Description.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FriendlyName: Google Analytics
22
SystemName: SmartStore.GoogleAnalytics
33
Group: Analytics
4-
Version: 4.0.1
5-
MinAppVersion: 4.0.1
4+
Version: 4.0.1.1
5+
MinAppVersion: 4.0.1.1
66
DisplayOrder: 1
77
FileName: SmartStore.GoogleAnalytics.dll
88
ResourceRootKey: Plugins.Widgets.GoogleAnalytics

src/Plugins/SmartStore.GoogleAnalytics/Services/GoogleAnalyticsScriptHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal static string GetTrackingScript()
2020
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
2121
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
2222
23-
ga('create', '{GOOGLEID}', 'auto'{STORAGETYPE});
23+
ga('create', '{GOOGLEID}', {STORAGETYPE});
2424
ga('set', 'anonymizeIp', true);
2525
ga('send', 'pageview');
2626

0 commit comments

Comments
 (0)