Version Description
- Fixed: Bug on Custom code option in tracking
Download this release
Release Info
Developer | webdorado |
Plugin | WD Google Analytics |
Version | 1.0.13 |
Comparing to | |
See all releases |
Code changes from version 1.0.12 to 1.0.13
- admin/pages/tracking.php +47 -43
- admin/tracking.php +4 -1
- google-analytics-wd.php +2 -2
- readme.txt +33 -30
admin/pages/tracking.php
CHANGED
@@ -158,49 +158,53 @@ $domain = GAWD::get_domain(esc_html(get_option('siteurl')));
|
|
158 |
<div class="gawd_tracking_display">
|
159 |
<p>CODE ADDED TO SITE:</p>
|
160 |
<div id="gawd_tracking_enable_code" <?php if('on' != $gawd_tracking_enable): ?>style="display: none;"<?php endif; ?>>
|
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 |
</div>
|
205 |
</div>
|
206 |
<div class="clear"></div>
|
158 |
<div class="gawd_tracking_display">
|
159 |
<p>CODE ADDED TO SITE:</p>
|
160 |
<div id="gawd_tracking_enable_code" <?php if('on' != $gawd_tracking_enable): ?>style="display: none;"<?php endif; ?>>
|
161 |
+
<code class="html"><script></code>
|
162 |
+
<code class="javascript">
|
163 |
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
164 |
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
165 |
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
166 |
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
167 |
+
|
168 |
+
<br /><br />
|
169 |
+
ga('create', '<?php echo $ua_code ?>', 'auto');
|
170 |
+
</code>
|
171 |
+
<code id="enable_custom_code_code" class="javascript" <?php if('on' != $enable_custom_code){; ?> style="display: none;"<?php }; ?>>
|
172 |
+
</br>
|
173 |
+
<?php echo "/*CUSTOM CODE START*/ </br>" . $gawd_custom_code . "</br>/*CUSTOM CODE END*/ </br>";?>
|
174 |
+
|
175 |
+
</code>
|
176 |
+
<code id="gawd_anonymize_code" class="javascript" <?php if('on' != $gawd_anonymize): ?>style="display: none;"<?php endif; ?>>
|
177 |
+
ga('set', 'anonymizeIp', true);
|
178 |
+
</code>
|
179 |
+
<code id="gawd_enhanced_code" class="javascript" <?php if('on' != $gawd_enhanced): ?>style="display: none;"<?php endif; ?>>
|
180 |
+
ga('require', 'linkid', 'linkid.js');
|
181 |
+
</code>
|
182 |
+
<code id="gawd_outbound_code" class="javascript" <?php echo $gawd_outbound != '' && isset($domain) && $domain != '' ? '' : 'style="display: none;"';?>>
|
183 |
+
jQuery(a[href^="http"]).filter(function () {
|
184 |
+
if (!this.href.match(/.*\.(zip|mp3*|mpe*g|pdf|docx*|pptx*|xlsx*|rar*)(\?.*)?$/)) {
|
185 |
+
if (this.href.indexOf('devops.web-dorado.info') == -1) {
|
186 |
+
return this.href
|
187 |
+
};
|
188 |
+
}
|
189 |
+
}).click(function (e) {
|
190 |
+
ga('send', 'event', 'outbound', 'click', this.href, {'nonInteraction': 1});
|
191 |
+
});
|
192 |
+
</code>
|
193 |
+
<code id="gawd_file_formats_code" class="javascript" <?php echo isset($gawd_file_formats) && $gawd_file_formats != '' ? '' : 'style="display: none"';?>>
|
194 |
+
jQuery('a').filter(function () {
|
195 |
+
return this.href.match(/.*\.(zip|mp3*|mpe*g|pdf|docx*|pptx*|xlsx*|rar*)(\?.*)?$/);
|
196 |
+
}).click(function (e) {
|
197 |
+
ga('send', 'event', 'download', 'click', this.href, {'nonInteraction': 1});
|
198 |
+
});
|
199 |
+
jQuery('a[href^="mailto"]').click(function (e) {
|
200 |
+
ga('send', 'event', 'email', 'send', this.href, {'nonInteraction': 1});
|
201 |
+
});
|
202 |
+
</code>
|
203 |
+
<code class="javascript">
|
204 |
+
</br>
|
205 |
+
ga('send', 'pageview');
|
206 |
+
</code>
|
207 |
+
<code class="html"></script></code>
|
208 |
</div>
|
209 |
</div>
|
210 |
<div class="clear"></div>
|
admin/tracking.php
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
<?php
|
2 |
$custom_dimensions = $gawd_client->get_custom_dimensions_tracking();
|
3 |
$gawd_settings = get_option('gawd_settings');
|
|
|
|
|
|
|
4 |
$gawd_custom_code = isset($gawd_settings["gawd_custom_code"]) ? $gawd_settings["gawd_custom_code"] : '';
|
5 |
require_once(GAWD_DIR . '/gawd_class.php');
|
6 |
$domain = GAWD::get_domain(esc_html(get_option('siteurl')));
|
@@ -103,7 +106,7 @@ echo "/* WEB DORADO GOOGLE ANALYTICS TRACKING CODE */";
|
|
103 |
}
|
104 |
}
|
105 |
|
106 |
-
|
107 |
?>
|
108 |
ga('send', 'pageview');
|
109 |
<?php } ?>
|
1 |
<?php
|
2 |
$custom_dimensions = $gawd_client->get_custom_dimensions_tracking();
|
3 |
$gawd_settings = get_option('gawd_settings');
|
4 |
+
|
5 |
+
$enable_custom_code = isset($gawd_settings['enable_custom_code']) ? $gawd_settings['enable_custom_code'] : '';
|
6 |
+
|
7 |
$gawd_custom_code = isset($gawd_settings["gawd_custom_code"]) ? $gawd_settings["gawd_custom_code"] : '';
|
8 |
require_once(GAWD_DIR . '/gawd_class.php');
|
9 |
$domain = GAWD::get_domain(esc_html(get_option('siteurl')));
|
106 |
}
|
107 |
}
|
108 |
|
109 |
+
echo $enable_custom_code == 'on' ? "/*CUSTOM CODE START*/" . $gawd_custom_code . "/*CUSTOM CODE END*/" : "";
|
110 |
?>
|
111 |
ga('send', 'pageview');
|
112 |
<?php } ?>
|
google-analytics-wd.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Google Analytics
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-google-analytics-plugin.html
|
6 |
* Description: Google Analytics WD is a user-friendly all in one plugin, which allows to manage and monitor your website analytics from WordPress dashboard.
|
7 |
-
* Version: 1.0.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -26,7 +26,7 @@ if (!defined('GAWD_INC')) {
|
|
26 |
}
|
27 |
|
28 |
if (!defined('GAWD_VERSION')) {
|
29 |
-
define('GAWD_VERSION', '1.0.
|
30 |
}
|
31 |
|
32 |
require_once( 'gawd_class.php' );
|
4 |
* Plugin Name: Google Analytics
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-google-analytics-plugin.html
|
6 |
* Description: Google Analytics WD is a user-friendly all in one plugin, which allows to manage and monitor your website analytics from WordPress dashboard.
|
7 |
+
* Version: 1.0.13
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
26 |
}
|
27 |
|
28 |
if (!defined('GAWD_VERSION')) {
|
29 |
+
define('GAWD_VERSION', '1.0.13');
|
30 |
}
|
31 |
|
32 |
require_once( 'gawd_class.php' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-google-analytics-plugin.h
|
|
4 |
Tags: google analytics, google analytics dashboard, statistics, tracking, analytics, analytics dashboard, stats, ga, googleanalytics, ecommerce tracking, custom reports, custom dimensions
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -100,61 +100,64 @@ Upgrade to Google Analytics WD Pro for premium features:
|
|
100 |
|
101 |
== Changelog ==
|
102 |
|
|
|
|
|
|
|
103 |
= 1.0.12 =
|
104 |
-
Fixed: Bug on report by individual post/page
|
105 |
|
106 |
= 1.0.11 =
|
107 |
-
Added: Custom code option in tracking
|
108 |
|
109 |
= 1.0.10 =
|
110 |
-
Fixed: Bug on sending a report to an email once
|
111 |
-
Changed: New logo in dashboard menu and notices
|
112 |
-
Fixed: Width issue with some reports
|
113 |
|
114 |
|
115 |
= 1.0.9 =
|
116 |
-
Added: Option to select the time of the day for scheduled emails
|
117 |
-
Changed: Save authenticate code with enter button
|
118 |
-
Changed: Select permissions for user groups in a pop-up (Settings page)
|
119 |
-
Fixed: minor bugs
|
120 |
|
121 |
= 1.0.8 =
|
122 |
-
Added: Google Analytics reports for custom post types
|
123 |
-
Added: New icon in the menu
|
124 |
-
Added: New header on WordPress.org
|
125 |
-
Fixed: JS error on creating new pages/posts
|
126 |
|
127 |
= 1.0.7 =
|
128 |
-
Fixed: Bug in Site Content reports
|
129 |
|
130 |
= 1.0.6 =
|
131 |
-
Fixed: User guide links
|
132 |
-
Fixed: Bug on datepicker
|
133 |
-
Fixed: Error when deleting the web property
|
134 |
-
Added: Validation on the form for adding goals
|
135 |
|
136 |
= 1.0.5 =
|
137 |
-
Fixed: PHP version conflict
|
138 |
-
Added: Pro flags about additional functionality available in Pro version
|
139 |
-
Added: Explanation texts and links to documentation on several pages
|
140 |
|
141 |
= 1.0.4 =
|
142 |
-
Fixed: Unauthenticate issue
|
143 |
-
Fixed: Errors for php version < 5.3
|
144 |
|
145 |
= 1.0.3 =
|
146 |
-
Fixed: Front reports permissions
|
147 |
-
Fixed: Analytics menu
|
148 |
-
Fixed: Redirect to settings page if no profile added
|
149 |
|
150 |
= 1.0.2 =
|
151 |
-
Changed: Site speed and Sales performance reports sorting
|
152 |
|
153 |
= 1.0.1 =
|
154 |
-
Changed: Reports default sorting
|
155 |
|
156 |
= 1.0.0 =
|
157 |
-
Initial version
|
158 |
|
159 |
|
160 |
== Installation ==
|
4 |
Tags: google analytics, google analytics dashboard, statistics, tracking, analytics, analytics dashboard, stats, ga, googleanalytics, ecommerce tracking, custom reports, custom dimensions
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.0.13
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
100 |
|
101 |
== Changelog ==
|
102 |
|
103 |
+
= 1.0.13 =
|
104 |
+
* Fixed: Bug on Custom code option in tracking
|
105 |
+
|
106 |
= 1.0.12 =
|
107 |
+
* Fixed: Bug on report by individual post/page
|
108 |
|
109 |
= 1.0.11 =
|
110 |
+
* Added: Custom code option in tracking
|
111 |
|
112 |
= 1.0.10 =
|
113 |
+
* Fixed: Bug on sending a report to an email once
|
114 |
+
* Changed: New logo in dashboard menu and notices
|
115 |
+
* Fixed: Width issue with some reports
|
116 |
|
117 |
|
118 |
= 1.0.9 =
|
119 |
+
* Added: Option to select the time of the day for scheduled emails
|
120 |
+
* Changed: Save authenticate code with enter button
|
121 |
+
* Changed: Select permissions for user groups in a pop-up (Settings page)
|
122 |
+
* Fixed: minor bugs
|
123 |
|
124 |
= 1.0.8 =
|
125 |
+
* Added: Google Analytics reports for custom post types
|
126 |
+
* Added: New icon in the menu
|
127 |
+
* Added: New header on WordPress.org
|
128 |
+
* Fixed: JS error on creating new pages/posts
|
129 |
|
130 |
= 1.0.7 =
|
131 |
+
* Fixed: Bug in Site Content reports
|
132 |
|
133 |
= 1.0.6 =
|
134 |
+
* Fixed: User guide links
|
135 |
+
* Fixed: Bug on datepicker
|
136 |
+
* Fixed: Error when deleting the web property
|
137 |
+
* Added: Validation on the form for adding goals
|
138 |
|
139 |
= 1.0.5 =
|
140 |
+
* Fixed: PHP version conflict
|
141 |
+
* Added: Pro flags about additional functionality available in Pro version
|
142 |
+
* Added: Explanation texts and links to documentation on several pages
|
143 |
|
144 |
= 1.0.4 =
|
145 |
+
* Fixed: Unauthenticate issue
|
146 |
+
* Fixed: Errors for php version < 5.3
|
147 |
|
148 |
= 1.0.3 =
|
149 |
+
* Fixed: Front reports permissions
|
150 |
+
* Fixed: Analytics menu
|
151 |
+
* Fixed: Redirect to settings page if no profile added
|
152 |
|
153 |
= 1.0.2 =
|
154 |
+
* Changed: Site speed and Sales performance reports sorting
|
155 |
|
156 |
= 1.0.1 =
|
157 |
+
* Changed: Reports default sorting
|
158 |
|
159 |
= 1.0.0 =
|
160 |
+
* Initial version
|
161 |
|
162 |
|
163 |
== Installation ==
|