Skip to content

Commit 0fdd750

Browse files
Google Analytics: Fixed merge error
1 parent 817d45e commit 0fdd750

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/Plugins/SmartStore.GoogleAnalytics/GoogleAnalyticPlugin.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,6 @@ public CookieInfo GetCookieInfo()
9191
return cookieInfo;
9292
}
9393

94-
public override void Install()
95-
{
96-
var settings = new GoogleAnalyticsSettings
97-
{
98-
GoogleId = "UA-0000000-0",
99-
TrackingScript = TRACKING_SCRIPT,
100-
EcommerceScript = ECOMMERCE_SCRIPT,
101-
EcommerceDetailScript = ECOMMERCE_DETAIL_SCRIPT
102-
};
103-
10494
public override void Install()
10595
{
10696
var settings = new GoogleAnalyticsSettings
@@ -111,6 +101,9 @@ public override void Install()
111101
EcommerceDetailScript = GoogleAnalyticsScriptHelper.GetEcommerceDetailScript()
112102
};
113103

104+
_settingService.SaveSetting(settings);
105+
_localizationService.ImportPluginResourcesFromXml(this.PluginDescriptor);
106+
114107
base.Install();
115108
}
116109

0 commit comments

Comments
 (0)