Version Description
- Bug fixes.
Download this release
Release Info
Developer | audriusd |
Plugin | Google Universal Analytics |
Version | 2.4.1 |
Comparing to | |
See all releases |
Code changes from version 2.4 to 2.4.1
- classic/classic-analytics.php +7 -5
- classic/custom-analytics.php +5 -4
- googleanalytics.php +1 -1
- options.php +10 -7
- readme.txt +7 -1
classic/classic-analytics.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
<div class="form-group">
|
16 |
<label for="classic_web_property_id" class="col-sm-4 control-label"><?php echo __('Tracking ID', 'gua'); ?></label>
|
17 |
<div class="col-sm-8">
|
18 |
-
<input type="text" class="form-control" name="
|
19 |
<span class="error hide"><strong><?php echo __('Error!', 'gua'); ?> </strong> <?php echo __('match your code with this forma: UA-41335660-1', 'gua'); ?></span> </div>
|
20 |
</div>
|
21 |
<div class="form-group">
|
@@ -35,13 +35,15 @@
|
|
35 |
<div class="checkbox">
|
36 |
<label>
|
37 |
<input type="checkbox" name="classic_tracking_off_for_role" id="classic_tracking_off_for_role" <?php if(get_option('classic_tracking_off_for_role')=='on'): ?> checked="checked" <?php endif; ?>>
|
38 |
-
<?php echo __('Disable Tracking For', 'gua'); ?>
|
39 |
-
|
|
|
|
|
40 |
<?php foreach($roles as $role) { ?>
|
41 |
<option value="<?php echo $role;?>" <?php if(get_option('classic_tracking_off_for_this_role')== $role){echo 'selected="selected"';} ?>><?php echo $role;?></option>
|
42 |
<?php } ?>
|
43 |
</select>
|
44 |
-
|
45 |
</div>
|
46 |
</div>
|
47 |
</div>
|
@@ -55,6 +57,6 @@
|
|
55 |
</form>
|
56 |
</div>
|
57 |
<div class="clearfix"></div>
|
58 |
-
<div class="row col-lg-6"><?php echo __('Have a question? Drop it at', 'gua'); ?> <a href="http://onlineads.lt/?utm_source=WordPress&utm_medium=Google%20Universal%20Analytics%202.4&utm_content=Google%20Classic%20Analytics&utm_campaign=WordPress%20plugins" title="Google Universal Analytics">OnlineAds.lt</a> </div>
|
59 |
|
60 |
|
61 |
</br></br>
|
62 |
<strong>Pro Tip:</strong> For periodic Google Analytics data reporting use <a href="https://nexusad.com/?utm_source=wordpress&utm_medium=Google%2BUniversal%2BAnalytics%2B2.4&utm_campaign=wp_plugins" title="nexusAd" target="_blank">nexusAd tool</a>.
|
63 |
|
64 |
|
|
|
65 |
|
66 |
|
67 |
</br></br>
|
68 |
<strong>Pro Tip:</strong> For periodic Google Analytics data reporting use <a href="https://nexusad.com/?utm_source=wordpress&utm_medium=Google%2BUniversal%2BAnalytics%2B2.4.1&utm_campaign=wp_plugins" title="nexusAd" target="_blank">nexusAd tool</a>.
|
69 |
|
70 |
|
71 |
</div>
|
72 |
</br>
|
15 |
<div class="form-group">
|
16 |
<label for="classic_web_property_id" class="col-sm-4 control-label"><?php echo __('Tracking ID', 'gua'); ?></label>
|
17 |
<div class="col-sm-8">
|
18 |
+
<input type="text" class="form-control" name="classic_property_id" id="classic_property_id" placeholder="Property ID example: UA-23710779-7" value="<?php echo get_option('classic_property_id'); ?>">
|
19 |
<span class="error hide"><strong><?php echo __('Error!', 'gua'); ?> </strong> <?php echo __('match your code with this forma: UA-41335660-1', 'gua'); ?></span> </div>
|
20 |
</div>
|
21 |
<div class="form-group">
|
35 |
<div class="checkbox">
|
36 |
<label>
|
37 |
<input type="checkbox" name="classic_tracking_off_for_role" id="classic_tracking_off_for_role" <?php if(get_option('classic_tracking_off_for_role')=='on'): ?> checked="checked" <?php endif; ?>>
|
38 |
+
<?php echo __('Disable Tracking For', 'gua'); ?>
|
39 |
+
|
40 |
+
</label>
|
41 |
+
<select id="classic_tracking_off_for_this_role" name="classic_tracking_off_for_this_role">
|
42 |
<?php foreach($roles as $role) { ?>
|
43 |
<option value="<?php echo $role;?>" <?php if(get_option('classic_tracking_off_for_this_role')== $role){echo 'selected="selected"';} ?>><?php echo $role;?></option>
|
44 |
<?php } ?>
|
45 |
</select>
|
46 |
+
|
47 |
</div>
|
48 |
</div>
|
49 |
</div>
|
57 |
</form>
|
58 |
</div>
|
59 |
<div class="clearfix"></div>
|
|
|
60 |
|
61 |
|
62 |
</br></br>
|
63 |
<strong>Pro Tip:</strong> For periodic Google Analytics data reporting use <a href="https://nexusad.com/?utm_source=wordpress&utm_medium=Google%2BUniversal%2BAnalytics%2B2.4&utm_campaign=wp_plugins" title="nexusAd" target="_blank">nexusAd tool</a>.
|
64 |
|
65 |
|
66 |
+
<div class="row col-lg-6"><?php echo __('Have a question? Drop it at', 'gua'); ?> <a href="http://onlineads.lt/?utm_source=WordPress&utm_medium=Google%20Universal%20Analytics%202.4.1&utm_content=Google%20Classic%20Analytics&utm_campaign=WordPress%20plugins" title="Google Universal Analytics">OnlineAds.lt</a> </div>
|
67 |
|
68 |
|
69 |
</br></br>
|
70 |
<strong>Pro Tip:</strong> For periodic Google Analytics data reporting use <a href="https://nexusad.com/?utm_source=wordpress&utm_medium=Google%2BUniversal%2BAnalytics%2B2.4.1&utm_campaign=wp_plugins" title="nexusAd" target="_blank">nexusAd tool</a>.
|
71 |
|
72 |
|
73 |
</div>
|
74 |
</br>
|
classic/custom-analytics.php
CHANGED
@@ -35,13 +35,14 @@
|
|
35 |
<div class="checkbox">
|
36 |
<label>
|
37 |
<input type="checkbox" name="custom_tracking_off_for_role" id="custom_tracking_off_for_role" <?php if(get_option('custom_tracking_off_for_role')=='on'): ?> checked="checked" <?php endif; ?>>
|
38 |
-
<?php echo __('Disable Tracking For', 'gua'); ?>
|
39 |
-
|
|
|
40 |
<?php foreach($roles as $role) { ?>
|
41 |
<option value="<?php echo $role;?>" <?php if(get_option('custom_tracking_off_for_this_role')== $role){echo 'selected="selected"';} ?>><?php echo $role;?></option>
|
42 |
<?php } ?>
|
43 |
</select>
|
44 |
-
|
45 |
</div>
|
46 |
</div>
|
47 |
</div>
|
@@ -55,6 +56,6 @@
|
|
55 |
</form>
|
56 |
</div>
|
57 |
<div class="clearfix"></div>
|
58 |
-
<div class="row col-lg-6"><?php echo __('Have a question? Drop it at', 'gua'); ?> <a href="http://onlineads.lt/?utm_source=WordPress&utm_medium=Google%20Universal%20Analytics%202.4&utm_content=Google%20Custom%20Analytics&utm_campaign=WordPress%20plugins">OnlineAds.lt</a> </div>
|
59 |
|
60 |
</br></br>
|
61 |
<strong>Pro Tip:</strong> For periodic Google Analytics data reporting use <a href="https://nexusad.com/?utm_source=wordpress&utm_medium=Google%2BUniversal%2BAnalytics%2B2.4&utm_campaign=wp_plugins" title="nexusAd" target="_blank">nexusAd tool</a>.
|
62 |
|
|
|
63 |
|
64 |
</br></br>
|
65 |
<strong>Pro Tip:</strong> For periodic Google Analytics data reporting use <a href="https://nexusad.com/?utm_source=wordpress&utm_medium=Google%2BUniversal%2BAnalytics%2B2.4.1&utm_campaign=wp_plugins" title="nexusAd" target="_blank">nexusAd tool</a>.
|
66 |
|
67 |
</div>
|
68 |
</br>
|
35 |
<div class="checkbox">
|
36 |
<label>
|
37 |
<input type="checkbox" name="custom_tracking_off_for_role" id="custom_tracking_off_for_role" <?php if(get_option('custom_tracking_off_for_role')=='on'): ?> checked="checked" <?php endif; ?>>
|
38 |
+
<?php echo __('Disable Tracking For', 'gua'); ?>
|
39 |
+
</label>
|
40 |
+
<select id="custom_tracking_off_for_this_role" name="custom_tracking_off_for_this_role">
|
41 |
<?php foreach($roles as $role) { ?>
|
42 |
<option value="<?php echo $role;?>" <?php if(get_option('custom_tracking_off_for_this_role')== $role){echo 'selected="selected"';} ?>><?php echo $role;?></option>
|
43 |
<?php } ?>
|
44 |
</select>
|
45 |
+
|
46 |
</div>
|
47 |
</div>
|
48 |
</div>
|
56 |
</form>
|
57 |
</div>
|
58 |
<div class="clearfix"></div>
|
|
|
59 |
|
60 |
</br></br>
|
61 |
<strong>Pro Tip:</strong> For periodic Google Analytics data reporting use <a href="https://nexusad.com/?utm_source=wordpress&utm_medium=Google%2BUniversal%2BAnalytics%2B2.4&utm_campaign=wp_plugins" title="nexusAd" target="_blank">nexusAd tool</a>.
|
62 |
|
63 |
+
<div class="row col-lg-6"><?php echo __('Have a question? Drop it at', 'gua'); ?> <a href="http://onlineads.lt/?utm_source=WordPress&utm_medium=Google%20Universal%20Analytics%202.4.1&utm_content=Google%20Custom%20Analytics&utm_campaign=WordPress%20plugins">OnlineAds.lt</a> </div>
|
64 |
|
65 |
</br></br>
|
66 |
<strong>Pro Tip:</strong> For periodic Google Analytics data reporting use <a href="https://nexusad.com/?utm_source=wordpress&utm_medium=Google%2BUniversal%2BAnalytics%2B2.4.1&utm_campaign=wp_plugins" title="nexusAd" target="_blank">nexusAd tool</a>.
|
67 |
|
68 |
</div>
|
69 |
</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.4
|
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.4.1
|
7 |
Author: Audrius Dobilinskas
|
8 |
Author URI: http://onlineads.lt/
|
9 |
*/
|
options.php
CHANGED
@@ -81,14 +81,17 @@
|
|
81 |
$roles = $wp_roles->get_names(); ?>
|
82 |
<div class="checkbox">
|
83 |
<label>
|
84 |
-
<input type="checkbox" name="tracking_off_for_role" id="tracking_off_for_role" <?php if(get_option('tracking_off_for_role')=='on'): ?> checked="checked" <?php endif; ?>>
|
85 |
-
|
86 |
-
|
87 |
-
|
|
|
|
|
|
|
88 |
<option value="<?php echo $role;?>" <?php if(get_option('tracking_off_for_this_role')== $role){echo 'selected="selected"';} ?>><?php echo $role;?></option>
|
89 |
<?php } ?>
|
90 |
</select>
|
91 |
-
|
92 |
</div>
|
93 |
</div>
|
94 |
</div>
|
@@ -101,8 +104,8 @@
|
|
101 |
</form>
|
102 |
</div>
|
103 |
<div class="clearfix"></div>
|
104 |
-
<div class="row col-lg-6"><?php echo __('Have a question? Drop it at', 'gua'); ?> <a href="http://onlineads.lt/?utm_source=WordPress&utm_medium=Google%20Universal%20Analytics%202.4&utm_content=Google%20Universal%20Analytics&utm_campaign=WordPress%20plugins" title="Google Universal Analytics">OnlineAds.lt</a> </div>
|
105 |
</br></br>
|
106 |
-
<strong>Pro Tip:</strong> For periodic Google Analytics data reporting use <a href="https://nexusad.com/?utm_source=wordpress&utm_medium=Google%2BUniversal%2BAnalytics%2B2.4&utm_campaign=wp_plugins" title="nexusAd" target="_blank">nexusAd tool</a>.
|
107 |
|
|
|
108 |
|
109 |
</div>
|
110 |
</br>
|
81 |
$roles = $wp_roles->get_names(); ?>
|
82 |
<div class="checkbox">
|
83 |
<label>
|
84 |
+
<input type="checkbox" name="tracking_off_for_role" id="tracking_off_for_role" <?php if(get_option('tracking_off_for_role')=='on'): ?> checked="checked" <?php endif; ?>>
|
85 |
+
<?php echo __('Disable Tracking For', 'gua'); ?>
|
86 |
+
</label>
|
87 |
+
<select id="tracking_off_for_this_role" name="tracking_off_for_this_role">
|
88 |
+
<?php// echo "<pre/>"; print_r($roles); ?>
|
89 |
+
<?php foreach($roles as $role) { ?>
|
90 |
+
|
91 |
<option value="<?php echo $role;?>" <?php if(get_option('tracking_off_for_this_role')== $role){echo 'selected="selected"';} ?>><?php echo $role;?></option>
|
92 |
<?php } ?>
|
93 |
</select>
|
94 |
+
|
95 |
</div>
|
96 |
</div>
|
97 |
</div>
|
104 |
</form>
|
105 |
</div>
|
106 |
<div class="clearfix"></div>
|
107 |
+
<div class="row col-lg-6"><?php echo __('Have a question? Drop it at', 'gua'); ?> <a href="http://onlineads.lt/?utm_source=WordPress&utm_medium=Google%20Universal%20Analytics%202.4.1&utm_content=Google%20Universal%20Analytics&utm_campaign=WordPress%20plugins" title="Google Universal Analytics">OnlineAds.lt</a> </div>
|
108 |
</br></br>
|
|
|
109 |
|
110 |
+
<strong>Pro Tip:</strong> For periodic Google Analytics data reporting use <a href="https://nexusad.com/?utm_source=wordpress&utm_medium=Google%2BUniversal%2BAnalytics%2B2.4.1&utm_campaign=wp_plugins" title="nexusAd" target="_blank">nexusAd tool</a>.
|
111 |
|
112 |
</div>
|
113 |
</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, user id, google universal analytics, classic, custom, nexusad
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 2.4
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Adds the latest Google Universal Analytics JavaScript tracking code to your WordPress website. Many options!
|
@@ -74,6 +74,9 @@ Check it out [nexusAd tool](https://nexusad.com).
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
77 |
= 2.4 =
|
78 |
* Tested with WordPress 4.0
|
79 |
* Tracking data to Google is now passed through a secure connection - SSL (even if your website is not using it).
|
@@ -139,6 +142,9 @@ Check it out [nexusAd tool](https://nexusad.com).
|
|
139 |
|
140 |
== Upgrade Notice ==
|
141 |
|
|
|
|
|
|
|
142 |
= 2.4 =
|
143 |
* WordPress 4.0 compatability.
|
144 |
* User ID tracking.
|
4 |
Tags: javascript, tracking, google, analytics, universal, statistics, google analytics, universal analytics, user id, google universal analytics, classic, custom, nexusad
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 2.4.1
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Adds the latest Google Universal Analytics JavaScript tracking code to your WordPress website. Many options!
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 2.4.1 =
|
78 |
+
* Bug fixes.
|
79 |
+
|
80 |
= 2.4 =
|
81 |
* Tested with WordPress 4.0
|
82 |
* Tracking data to Google is now passed through a secure connection - SSL (even if your website is not using it).
|
142 |
|
143 |
== Upgrade Notice ==
|
144 |
|
145 |
+
= 2.4.1 =
|
146 |
+
* Bug fixes.
|
147 |
+
|
148 |
= 2.4 =
|
149 |
* WordPress 4.0 compatability.
|
150 |
* User ID tracking.
|