Skip to content

Commit 6588a20

Browse files
GoogleAnalytics: Corrected MinAppVersion value
1 parent 7eda208 commit 6588a20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private string GetStorageScript()
165165
{
166166
// If no consent to analytical cookies was given, set storage to none.
167167
var script = @"
168-
, {
168+
{
169169
'storage': 'none',
170170
'clientId': '" + _workContext.CurrentCustomer.CustomerGuid + @"',
171171
'storeGac': false
@@ -251,7 +251,7 @@ private string GetEcommerceScript(Order order, bool cookiesAllowed)
251251
script = script.Replace("{ECOMMERCE}", ecScript);
252252

253253
// If no consent to third party cookies was given, set storage to none.
254-
script = script.Replace("{STORAGETYPE}", cookiesAllowed ? "" : GetStorageScript());
254+
script = script.Replace("{STORAGETYPE}", cookiesAllowed ? "'auto'" : GetStorageScript());
255255
}
256256

257257
return script;

src/Plugins/SmartStore.GoogleAnalytics/Description.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SystemName: SmartStore.GoogleAnalytics
33
Group: Analytics
44
Version: 4.0.1.1
5-
MinAppVersion: 4.0.1.1
5+
MinAppVersion: 4.0.1
66
DisplayOrder: 1
77
FileName: SmartStore.GoogleAnalytics.dll
88
ResourceRootKey: Plugins.Widgets.GoogleAnalytics

0 commit comments

Comments
 (0)