-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDnn.Modules.GoogleAnalytics_09.00.00.xml
249 lines (245 loc) · 8.86 KB
/
Dnn.Modules.GoogleAnalytics_09.00.00.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<root file="Dnn.Modules.GoogleAnalytics.dll" version="09.00.00" generated="2017-06-19 23:55:08Z" generationTime="1.2077455">
<namespace name="Dnn.Modules.GoogleAnalytics">
<class name="GoogleAnalyticsSettings">
<declaration><![CDATA[public class GoogleAnalyticsSettings : PortalModuleBase]]></declaration>
<documentation>
</documentation>
<constructors>
<constructor name=".ctor">
<declaration><![CDATA[public GoogleAnalyticsSettings()]]></declaration>
<documentation>
</documentation>
<codeblock>
<location sl="2147483647" sc="0" el="0" ec="0">
</location>
<body hash="d41d8cd98f00b204e9800998ecf8427e"><![CDATA[]]></body>
</codeblock>
</constructor>
</constructors>
<methods>
<method name="OnLoad">
<declaration><![CDATA[protected override void OnLoad(EventArgs e)]]></declaration>
<documentation>
</documentation>
<codeblock>
<location sl="39" sc="9" el="82" ec="10">GoogleAnalyticsSettings.ascx.cs</location>
<body hash="5c6e40f04610dd29e06bdb805403ac3b"><![CDATA[{
base.OnLoad(e);
cmdUpdate.Click += OnUpdateClick;
try
{
if (Page.IsPostBack == false)
{
var config = AnalyticsConfiguration.GetConfig("GoogleAnalytics");
if (config != null)
{
var trackingId = "";
var urlParameter = "";
var trackForAdmin = true;
foreach (AnalyticsSetting setting in config.Settings)
{
switch (setting.SettingName.ToLower())
{
case "trackingid":
trackingId = setting.SettingValue;
break;
case "urlparameter":
urlParameter = setting.SettingValue;
break;
case "trackforadmin":
if (!bool.TryParse(setting.SettingValue, out trackForAdmin))
{
trackForAdmin = true;
}
break;
}
}
txtTrackingId.Text = trackingId;
txtUrlParameter.Text = urlParameter;
chkTrackForAdmin.Checked = trackForAdmin;
}
}
}
catch (Exception exc)
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}]]></body>
</codeblock>
</method>
<method name="OnUpdateClick">
<declaration><![CDATA[protected void OnUpdateClick(object sender, EventArgs e)]]></declaration>
<documentation>
</documentation>
<codeblock>
<location sl="85" sc="9" el="109" ec="10">GoogleAnalyticsSettings.ascx.cs</location>
<body hash="da63fd04de0a2b439c19dc2073a33d1c"><![CDATA[{
try
{
var config = new AnalyticsConfiguration();
var setting = new AnalyticsSetting();
config.Settings = new AnalyticsSettingCollection();
setting.SettingName = "TrackingId";
setting.SettingValue = txtTrackingId.Text;
config.Settings.Add(setting);
setting = new AnalyticsSetting();
setting.SettingName = "UrlParameter";
setting.SettingValue = txtUrlParameter.Text;
config.Settings.Add(setting);
setting = new AnalyticsSetting();
setting.SettingName = "TrackForAdmin";
setting.SettingValue = chkTrackForAdmin.Checked.ToString().ToLowerInvariant();
config.Settings.Add(setting);
AnalyticsConfiguration.SaveConfig("GoogleAnalytics", config);
DotNetNuke.UI.Skins.Skin.AddModuleMessage(this, Localization.GetString("Updated", LocalResourceFile), ModuleMessage.ModuleMessageType.GreenSuccess);
}
catch (Exception exc)
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}]]></body>
</codeblock>
</method>
</methods>
<fields>
<field name="chkTrackForAdmin">
<declaration><![CDATA[protected CheckBox chkTrackForAdmin;]]></declaration>
<documentation>
<summary>
chkTrackForAdmin control.
</summary>
<remarks>
Auto-generated field.
To modify move field declaration from designer file to code-behind file.
</remarks></documentation>
</field>
<field name="cmdUpdate">
<declaration><![CDATA[protected LinkButton cmdUpdate;]]></declaration>
<documentation>
<summary>
cmdUpdate control.
</summary>
<remarks>
Auto-generated field.
To modify move field declaration from designer file to code-behind file.
</remarks></documentation>
</field>
<field name="lblTrackForAdmin">
<declaration><![CDATA[protected UserControl lblTrackForAdmin;]]></declaration>
<documentation>
<summary>
lblTrackForAdmin control.
</summary>
<remarks>
Auto-generated field.
To modify move field declaration from designer file to code-behind file.
</remarks></documentation>
</field>
<field name="lblTrackingId">
<declaration><![CDATA[protected UserControl lblTrackingId;]]></declaration>
<documentation>
<summary>
lblTrackingId control.
</summary>
<remarks>
Auto-generated field.
To modify move field declaration from designer file to code-behind file.
</remarks></documentation>
</field>
<field name="lblUrlParameter">
<declaration><![CDATA[protected UserControl lblUrlParameter;]]></declaration>
<documentation>
<summary>
lblUrlParameter control.
</summary>
<remarks>
Auto-generated field.
To modify move field declaration from designer file to code-behind file.
</remarks></documentation>
</field>
<field name="txtTrackingId">
<declaration><![CDATA[protected TextBox txtTrackingId;]]></declaration>
<documentation>
<summary>
txtTrackingId control.
</summary>
<remarks>
Auto-generated field.
To modify move field declaration from designer file to code-behind file.
</remarks></documentation>
</field>
<field name="txtUrlParameter">
<declaration><![CDATA[protected TextBox txtUrlParameter;]]></declaration>
<documentation>
<summary>
txtUrlParameter control.
</summary>
<remarks>
Auto-generated field.
To modify move field declaration from designer file to code-behind file.
</remarks></documentation>
</field>
</fields>
<properties>
</properties>
<events>
</events>
</class>
</namespace>
<namespace name="Dnn.Modules.GoogleAnalytics.Components">
<class name="BusinessController">
<declaration><![CDATA[public class BusinessController : IUpgradeable]]></declaration>
<documentation>
<summary>
</summary>
</documentation>
<constructors>
<constructor name=".ctor">
<declaration><![CDATA[public BusinessController()]]></declaration>
<documentation>
</documentation>
<codeblock>
<location sl="2147483647" sc="0" el="0" ec="0">
</location>
<body hash="d41d8cd98f00b204e9800998ecf8427e"><![CDATA[]]></body>
</codeblock>
</constructor>
</constructors>
<methods>
<method name="UpgradeModule">
<declaration><![CDATA[public string UpgradeModule(string version)]]></declaration>
<documentation>
<summary>
</summary>
<param name="version"></param>
<returns></returns></documentation>
<codeblock>
<location sl="41" sc="9" el="55" ec="10">Components\BusinessController.cs</location>
<body hash="67abc96a144fec1e91cc1f2ff9dacb31"><![CDATA[{
try
{
switch (version)
{
case "08.00.00":
break;
}
return "Success";
}
catch (Exception)
{
return "Failed";
}
}]]></body>
</codeblock>
</method>
</methods>
<fields>
</fields>
<properties>
</properties>
<events>
</events>
</class>
</namespace>
</root>