Google Universal Analytics - Version 2.1.2

Version Description

  • jQuery bug fix.
Download this release

Release Info

Developer audriusd
Plugin Icon wp plugin Google Universal Analytics
Version 2.1.2
Comparing to
See all releases

Code changes from version 2.1.1 to 2.1.2

assets/gua-main.js CHANGED
@@ -1,186 +1,371 @@
1
- jQuery(document).ready(function(e) {
2
-
3
- jQuery('#classic_plugin_switch').bootstrapSwitch('size', 'small');
4
- jQuery('#classic_plugin_switch').bootstrapSwitch('onColor', 'success');
5
- jQuery('#classic_plugin_switch').bootstrapSwitch('offColor', 'danger');
6
-
7
- jQuery('#plugin_switch').bootstrapSwitch('size', 'small');
8
- jQuery('#plugin_switch').bootstrapSwitch('onColor', 'success');
9
- jQuery('#plugin_switch').bootstrapSwitch('offColor', 'danger');
10
-
11
- jQuery('#custom_plugin_switch').bootstrapSwitch('size', 'small');
12
- jQuery('#custom_plugin_switch').bootstrapSwitch('onColor', 'success');
13
- jQuery('#custom_plugin_switch').bootstrapSwitch('offColor', 'danger');
14
-
15
- jQuery(function() {
16
- jQuery('#save-gua-settings').click(function(e) {
17
- var property_id = jQuery('#web_property_id').val();
18
- var tracking_off_for_this_role = jQuery('#tracking_off_for_this_role').val();
19
- var ajax_url = jQuery('#ajax_url').val();
20
- if(jQuery('#in_footer').is(':checked')){
21
- var in_footer = 'on';
22
- }else{
23
- var in_footer = 'off';
24
- }
25
-
26
- if(jQuery('#plugin_switch').is(':checked')){
27
- var plugin_switch = 'on';
28
- }else{
29
- var plugin_switch = 'off';
30
- }
31
-
32
- if(jQuery('#track_links').is(':checked')){
33
- var track_links = 'on';
34
- }else{
35
- var track_links = 'off';
36
- }
37
- if(jQuery('#tracking_off_for_role').is(':checked')){
38
- var tracking_off_for_role = 'on';
39
- }else{
40
- var tracking_off_for_role = 'off';
41
- }
42
- if(property_id.indexOf('UA-') == -1){
43
- jQuery('#web_property_id').parent('.col-sm-9').addClass('has-error');
44
- jQuery('.error').css('color', '#F00').removeClass('hide');
45
-
46
- }else{
47
- //alert('ok proceed on ajax');
48
- $.ajax({
49
- url: ajax_url,
50
- data: {
51
- 'action':'save_google_universal_analytics_settings',
52
- 'plugin_switch' : plugin_switch,
53
- 'in_footer' : in_footer,
54
- 'property_id' : property_id,
55
- 'track_links' : track_links,
56
- 'tracking_off_for_role' : tracking_off_for_role,
57
- 'tracking_off_for_this_role' : tracking_off_for_this_role
58
- },
59
- success:function(data) {
60
- jQuery('#web_property_id').parent('.has-error').removeClass('has-error');
61
- jQuery('.error').addClass('hide');
62
- jQuery('.form-horizontal .alert').fadeIn().removeClass('hide');
63
- jQuery('.form-horizontal .alert').delay(3000).fadeOut(500);
64
-
65
- },
66
- error: function(errorThrown){
67
-
68
- }
69
- });
70
-
71
-
72
- }
73
- });
74
- });
75
-
76
-
77
- jQuery(function() {
78
- jQuery('#save-custom-settings').click(function(e) {
79
- var custom_web_property_id = jQuery('#custom_web_property_id').val();
80
- var custom_tracking_off_for_this_role = jQuery('#custom_tracking_off_for_this_role').val();
81
- var ajax_url = jQuery('#ajax_url').val();
82
- if(jQuery('#custom_in_footer').is(':checked')){
83
- var custom_in_footer = 'on';
84
- }else{
85
- var custom_in_footer = 'off';
86
- }
87
-
88
- if(jQuery('#custom_plugin_switch').is(':checked')){
89
- var custom_plugin_switch = 'on';
90
- }else{
91
- var custom_plugin_switch = 'off';
92
- }
93
-
94
- if(jQuery('#custom_tracking_off_for_role').is(':checked')){
95
- var custom_tracking_off_for_role = 'on';
96
- }else{
97
- var custom_tracking_off_for_role = 'off';
98
- }
99
- //alert('ok proceed on ajax');
100
- $.ajax({
101
- url: ajax_url,
102
- data: {
103
- 'action':'save_google_custom_analytics_settings',
104
- 'custom_in_footer' : custom_in_footer,
105
- 'custom_plugin_switch' : custom_plugin_switch,
106
- 'custom_web_property_id' : custom_web_property_id,
107
- 'custom_tracking_off_for_role' : custom_tracking_off_for_role,
108
- 'custom_tracking_off_for_this_role' : custom_tracking_off_for_this_role
109
- },
110
- success:function(data) {
111
- jQuery('.form-horizontal .alert').fadeIn().removeClass('hide');
112
- jQuery('.form-horizontal .alert').delay(3000).fadeOut(500);
113
-
114
- },
115
- error: function(errorThrown){
116
-
117
- }
118
- });
119
-
120
-
121
-
122
- });
123
- });
124
-
125
- jQuery(function(){
126
-
127
- //classic settings event
128
-
129
- jQuery('#save-classic-settings').click(function(e) {
130
-
131
- var classic_property_id = jQuery('#classic_web_property_id').val();
132
- var classic_tracking_off_for_this_role = jQuery('#classic_tracking_off_for_this_role').val();
133
-
134
- var ajax_url = jQuery('#ajax_url').val();
135
- if(jQuery('#classic_in_footer').is(':checked')){
136
- var classic_in_footer = 'on';
137
- }else{
138
- var classic_in_footer = 'off';
139
- }
140
-
141
- if(jQuery('#classic_plugin_switch').is(':checked')){
142
- var classic_plugin_switch = 'on';
143
- }else{
144
- var classic_plugin_switch = 'off';
145
- }
146
-
147
- if(jQuery('#classic_tracking_off_for_role').is(':checked')){
148
- var classic_tracking_off_for_role = 'on';
149
- }else{
150
- var classic_tracking_off_for_role = 'off';
151
- }
152
- if(classic_property_id.indexOf('UA-') == -1){
153
- jQuery('#classic_web_property_id').parent('.col-sm-9').addClass('has-error');
154
- jQuery('.error').css('color', '#F00').removeClass('hide');
155
-
156
- }else{
157
- //alert('ok proceed on ajax');
158
- $.ajax({
159
- url: ajax_url,
160
- data: {
161
- 'action':'save_google_classic_analytics_settings',
162
- 'classic_plugin_switch' : classic_plugin_switch,
163
- 'classic_in_footer' : classic_in_footer,
164
- 'classic_property_id' : classic_property_id,
165
- 'classic_tracking_off_for_role' : classic_tracking_off_for_role,
166
- 'classic_tracking_off_for_this_role' : classic_tracking_off_for_this_role
167
- },
168
- success:function(data) {
169
- jQuery('#classic_web_property_id').parent('.has-error').removeClass('has-error');
170
- jQuery('.error').addClass('hide');
171
- jQuery('.form-horizontal .alert').fadeIn().removeClass('hide');
172
- jQuery('.form-horizontal .alert').delay(3000).fadeOut(500);
173
-
174
- },
175
- error: function(errorThrown){
176
-
177
- }
178
- });
179
-
180
-
181
- }
182
- });
183
- });
184
-
185
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  });
1
+ jQuery(document).ready(function(e) {
2
+
3
+
4
+
5
+ jQuery('#classic_plugin_switch').bootstrapSwitch('size', 'small');
6
+
7
+ jQuery('#classic_plugin_switch').bootstrapSwitch('onColor', 'success');
8
+
9
+ jQuery('#classic_plugin_switch').bootstrapSwitch('offColor', 'danger');
10
+
11
+
12
+
13
+ jQuery('#plugin_switch').bootstrapSwitch('size', 'small');
14
+
15
+ jQuery('#plugin_switch').bootstrapSwitch('onColor', 'success');
16
+
17
+ jQuery('#plugin_switch').bootstrapSwitch('offColor', 'danger');
18
+
19
+
20
+
21
+ jQuery('#custom_plugin_switch').bootstrapSwitch('size', 'small');
22
+
23
+ jQuery('#custom_plugin_switch').bootstrapSwitch('onColor', 'success');
24
+
25
+ jQuery('#custom_plugin_switch').bootstrapSwitch('offColor', 'danger');
26
+
27
+
28
+
29
+ jQuery(function() {
30
+
31
+ jQuery('#save-gua-settings').click(function(e) {
32
+
33
+ var property_id = jQuery('#web_property_id').val();
34
+
35
+ var tracking_off_for_this_role = jQuery('#tracking_off_for_this_role').val();
36
+
37
+ var ajax_url = jQuery('#ajax_url').val();
38
+
39
+ if(jQuery('#in_footer').is(':checked')){
40
+
41
+ var in_footer = 'on';
42
+
43
+ }else{
44
+
45
+ var in_footer = 'off';
46
+
47
+ }
48
+
49
+
50
+
51
+ if(jQuery('#plugin_switch').is(':checked')){
52
+
53
+ var plugin_switch = 'on';
54
+
55
+ }else{
56
+
57
+ var plugin_switch = 'off';
58
+
59
+ }
60
+
61
+
62
+
63
+ if(jQuery('#track_links').is(':checked')){
64
+
65
+ var track_links = 'on';
66
+
67
+ }else{
68
+
69
+ var track_links = 'off';
70
+
71
+ }
72
+
73
+ if(jQuery('#tracking_off_for_role').is(':checked')){
74
+
75
+ var tracking_off_for_role = 'on';
76
+
77
+ }else{
78
+
79
+ var tracking_off_for_role = 'off';
80
+
81
+ }
82
+
83
+ if(property_id.indexOf('UA-') == -1){
84
+
85
+ jQuery('#web_property_id').parent('.col-sm-9').addClass('has-error');
86
+
87
+ jQuery('.error').css('color', '#F00').removeClass('hide');
88
+
89
+
90
+
91
+ }else{
92
+
93
+ //alert('ok proceed on ajax');
94
+
95
+ jQuery.ajax({
96
+
97
+ url: ajax_url,
98
+
99
+ data: {
100
+
101
+ 'action':'save_google_universal_analytics_settings',
102
+
103
+ 'plugin_switch' : plugin_switch,
104
+
105
+ 'in_footer' : in_footer,
106
+
107
+ 'property_id' : property_id,
108
+
109
+ 'track_links' : track_links,
110
+
111
+ 'tracking_off_for_role' : tracking_off_for_role,
112
+
113
+ 'tracking_off_for_this_role' : tracking_off_for_this_role
114
+
115
+ },
116
+
117
+ success:function(data) {
118
+
119
+ jQuery('#web_property_id').parent('.has-error').removeClass('has-error');
120
+
121
+ jQuery('.error').addClass('hide');
122
+
123
+ jQuery('.form-horizontal .alert').fadeIn().removeClass('hide');
124
+
125
+ jQuery('.form-horizontal .alert').delay(3000).fadeOut(500);
126
+
127
+
128
+
129
+ },
130
+
131
+ error: function(errorThrown){
132
+
133
+
134
+
135
+ }
136
+
137
+ });
138
+
139
+
140
+
141
+
142
+
143
+ }
144
+
145
+ });
146
+
147
+ });
148
+
149
+
150
+
151
+
152
+
153
+ jQuery(function() {
154
+
155
+ jQuery('#save-custom-settings').click(function(e) {
156
+
157
+ var custom_web_property_id = jQuery('#custom_web_property_id').val();
158
+
159
+ var custom_tracking_off_for_this_role = jQuery('#custom_tracking_off_for_this_role').val();
160
+
161
+ var ajax_url = jQuery('#ajax_url').val();
162
+
163
+ if(jQuery('#custom_in_footer').is(':checked')){
164
+
165
+ var custom_in_footer = 'on';
166
+
167
+ }else{
168
+
169
+ var custom_in_footer = 'off';
170
+
171
+ }
172
+
173
+
174
+
175
+ if(jQuery('#custom_plugin_switch').is(':checked')){
176
+
177
+ var custom_plugin_switch = 'on';
178
+
179
+ }else{
180
+
181
+ var custom_plugin_switch = 'off';
182
+
183
+ }
184
+
185
+
186
+
187
+ if(jQuery('#custom_tracking_off_for_role').is(':checked')){
188
+
189
+ var custom_tracking_off_for_role = 'on';
190
+
191
+ }else{
192
+
193
+ var custom_tracking_off_for_role = 'off';
194
+
195
+ }
196
+
197
+ //alert('ok proceed on ajax');
198
+
199
+ jQuery.ajax({
200
+
201
+ url: ajax_url,
202
+
203
+ data: {
204
+
205
+ 'action':'save_google_custom_analytics_settings',
206
+
207
+ 'custom_in_footer' : custom_in_footer,
208
+
209
+ 'custom_plugin_switch' : custom_plugin_switch,
210
+
211
+ 'custom_web_property_id' : custom_web_property_id,
212
+
213
+ 'custom_tracking_off_for_role' : custom_tracking_off_for_role,
214
+
215
+ 'custom_tracking_off_for_this_role' : custom_tracking_off_for_this_role
216
+
217
+ },
218
+
219
+ success:function(data) {
220
+
221
+ jQuery('.form-horizontal .alert').fadeIn().removeClass('hide');
222
+
223
+ jQuery('.form-horizontal .alert').delay(3000).fadeOut(500);
224
+
225
+
226
+
227
+ },
228
+
229
+ error: function(errorThrown){
230
+
231
+
232
+
233
+ }
234
+
235
+ });
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+ });
244
+
245
+ });
246
+
247
+
248
+
249
+ jQuery(function(){
250
+
251
+
252
+
253
+ //classic settings event
254
+
255
+
256
+
257
+ jQuery('#save-classic-settings').click(function(e) {
258
+
259
+
260
+
261
+ var classic_property_id = jQuery('#classic_web_property_id').val();
262
+
263
+ var classic_tracking_off_for_this_role = jQuery('#classic_tracking_off_for_this_role').val();
264
+
265
+
266
+
267
+ var ajax_url = jQuery('#ajax_url').val();
268
+
269
+ if(jQuery('#classic_in_footer').is(':checked')){
270
+
271
+ var classic_in_footer = 'on';
272
+
273
+ }else{
274
+
275
+ var classic_in_footer = 'off';
276
+
277
+ }
278
+
279
+
280
+
281
+ if(jQuery('#classic_plugin_switch').is(':checked')){
282
+
283
+ var classic_plugin_switch = 'on';
284
+
285
+ }else{
286
+
287
+ var classic_plugin_switch = 'off';
288
+
289
+ }
290
+
291
+
292
+
293
+ if(jQuery('#classic_tracking_off_for_role').is(':checked')){
294
+
295
+ var classic_tracking_off_for_role = 'on';
296
+
297
+ }else{
298
+
299
+ var classic_tracking_off_for_role = 'off';
300
+
301
+ }
302
+
303
+ if(classic_property_id.indexOf('UA-') == -1){
304
+
305
+ jQuery('#classic_web_property_id').parent('.col-sm-9').addClass('has-error');
306
+
307
+ jQuery('.error').css('color', '#F00').removeClass('hide');
308
+
309
+
310
+
311
+ }else{
312
+
313
+ //alert('ok proceed on ajax');
314
+
315
+ jQuery.ajax({
316
+
317
+ url: ajax_url,
318
+
319
+ data: {
320
+
321
+ 'action':'save_google_classic_analytics_settings',
322
+
323
+ 'classic_plugin_switch' : classic_plugin_switch,
324
+
325
+ 'classic_in_footer' : classic_in_footer,
326
+
327
+ 'classic_property_id' : classic_property_id,
328
+
329
+ 'classic_tracking_off_for_role' : classic_tracking_off_for_role,
330
+
331
+ 'classic_tracking_off_for_this_role' : classic_tracking_off_for_this_role
332
+
333
+ },
334
+
335
+ success:function(data) {
336
+
337
+ jQuery('#classic_web_property_id').parent('.has-error').removeClass('has-error');
338
+
339
+ jQuery('.error').addClass('hide');
340
+
341
+ jQuery('.form-horizontal .alert').fadeIn().removeClass('hide');
342
+
343
+ jQuery('.form-horizontal .alert').delay(3000).fadeOut(500);
344
+
345
+
346
+
347
+ },
348
+
349
+ error: function(errorThrown){
350
+
351
+
352
+
353
+ }
354
+
355
+ });
356
+
357
+
358
+
359
+
360
+
361
+ }
362
+
363
+ });
364
+
365
+ });
366
+
367
+
368
+
369
+
370
+
371
  });
classic/classic-analytics.php CHANGED
@@ -57,6 +57,6 @@
57
  </form>
58
  </div>
59
  <div class="clearfix"></div>
60
- <div class="row col-lg-6">Have a question? Drop us a question at <a href="http://onlineads.lt/?utm_source=WordPress&utm_medium=Google%20Universal%20Analytics%202.1.1&utm_content=Google%20Classic%20Analytics&utm_campaign=WordPress%20plugins" title="Google Universal Analytics">OnlineAds.lt</a> </div>
61
  </div>
62
  </br>
57
  </form>
58
  </div>
59
  <div class="clearfix"></div>
60
+ <div class="row col-lg-6">Have a question? Drop us a question at <a href="http://onlineads.lt/?utm_source=WordPress&utm_medium=Google%20Universal%20Analytics%202.1.2&utm_content=Google%20Classic%20Analytics&utm_campaign=WordPress%20plugins" title="Google Universal Analytics">OnlineAds.lt</a> </div>
61
  </div>
62
  </br>
classic/custom-analytics.php CHANGED
@@ -57,6 +57,6 @@
57
  </form>
58
  </div>
59
  <div class="clearfix"></div>
60
- <div class="row col-lg-6">Have a question? Drop us a question at <a href="http://onlineads.lt/?utm_source=WordPress&utm_medium=Google%20Universal%20Analytics%202.1.1&utm_content=Google%20Custom%20Analytics&utm_campaign=WordPress%20plugins">OnlineAds.lt</a> </div>
61
  </div>
62
  </br>
57
  </form>
58
  </div>
59
  <div class="clearfix"></div>
60
+ <div class="row col-lg-6">Have a question? Drop us a question at <a href="http://onlineads.lt/?utm_source=WordPress&utm_medium=Google%20Universal%20Analytics%202.1.2&utm_content=Google%20Custom%20Analytics&utm_campaign=WordPress%20plugins">OnlineAds.lt</a> </div>
61
  </div>
62
  </br>
googleanalytics.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Google Universal Analytics
4
  Plugin URI: http://wordpress.org/extend/plugins/google-universal-analytics/
5
  Description: Adds <a href="http://www.google.com/analytics/">Google Analytics</a> tracking code on all pages.
6
- Version: 2.1.1
7
  Author: Audrius Dobilinskas
8
  Author URI: http://onlineads.lt/
9
  */
3
  Plugin Name: Google Universal Analytics
4
  Plugin URI: http://wordpress.org/extend/plugins/google-universal-analytics/
5
  Description: Adds <a href="http://www.google.com/analytics/">Google Analytics</a> tracking code on all pages.
6
+ Version: 2.1.2
7
  Author: Audrius Dobilinskas
8
  Author URI: http://onlineads.lt/
9
  */
options.php CHANGED
@@ -68,6 +68,6 @@
68
  </form>
69
  </div>
70
  <div class="clearfix"></div>
71
- <div class="row col-lg-6">Have a question? Drop us a question at <a href="http://onlineads.lt/?utm_source=WordPress&utm_medium=Google%20Universal%20Analytics%202.1.1&utm_content=Google%20Universal%20Analytics&utm_campaign=WordPress%20plugins" title="Google Universal Analytics">OnlineAds.lt</a> </div>
72
  </div>
73
  </br>
68
  </form>
69
  </div>
70
  <div class="clearfix"></div>
71
+ <div class="row col-lg-6">Have a question? Drop us a question at <a href="http://onlineads.lt/?utm_source=WordPress&utm_medium=Google%20Universal%20Analytics%202.1.2&utm_content=Google%20Universal%20Analytics&utm_campaign=WordPress%20plugins" title="Google Universal Analytics">OnlineAds.lt</a> </div>
72
  </div>
73
  </br>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://onlineads.lt/
4
  Tags: javascript, tracking, google, analytics, universal, statistics, google analytics, universal analytics, google universal analytics, classic, custom
5
  Requires at least: 3.0
6
  Tested up to: 3.8.1
7
- Stable tag: 2.1.1
8
  License: GPLv2 or later
9
 
10
  Adds the latest Google Universal Analytics JavaScript tracking code to your WordPress website. Event tracking is now available.
@@ -62,6 +62,9 @@ Also, do not hesitate to contact us if you have any questions regarding [Google
62
 
63
  == Changelog ==
64
 
 
 
 
65
  = 2.1.1 =
66
  * Added support for additional download extensions - JAR, PUB, MIDI, TAR, PSD, PDN and others (for event tracking).
67
  * Google Universal Analytics plugin now tracks WWF file downloads. Save as WWF, save a Tree!
@@ -93,6 +96,9 @@ Also, do not hesitate to contact us if you have any questions regarding [Google
93
 
94
  == Upgrade Notice ==
95
 
 
 
 
96
  = 2.1.1 =
97
  * Added support for additional download extensions (including jar, wwf, pub, pot, tar, pez and others).
98
 
4
  Tags: javascript, tracking, google, analytics, universal, statistics, google analytics, universal analytics, google universal analytics, classic, custom
5
  Requires at least: 3.0
6
  Tested up to: 3.8.1
7
+ Stable tag: 2.1.2
8
  License: GPLv2 or later
9
 
10
  Adds the latest Google Universal Analytics JavaScript tracking code to your WordPress website. Event tracking is now available.
62
 
63
  == Changelog ==
64
 
65
+ = 2.1.2 =
66
+ * jQuery bug fix.
67
+
68
  = 2.1.1 =
69
  * Added support for additional download extensions - JAR, PUB, MIDI, TAR, PSD, PDN and others (for event tracking).
70
  * Google Universal Analytics plugin now tracks WWF file downloads. Save as WWF, save a Tree!
96
 
97
  == Upgrade Notice ==
98
 
99
+ = 2.1.2 =
100
+ * Bug fix.
101
+
102
  = 2.1.1 =
103
  * Added support for additional download extensions (including jar, wwf, pub, pot, tar, pez and others).
104