Better Google Analytics - Version 1.1.4

Version Description

  • Updated options container to pass W3C validation
  • Updated for WordPress 4.5
Download this release

Release Info

Developer digitalpoint
Plugin Icon 128x128 Better Google Analytics
Version 1.1.4
Comparing to
See all releases

Code changes from version 1.1.3 to 1.1.4

better-analytics.php CHANGED
@@ -7,7 +7,7 @@
7
  Plugin Name: Better Analytics
8
  Plugin URI: https://marketplace.digitalpoint.com/better-analytics.3354/item
9
  Description: Adds Google Universal Analytics code to your WordPress site. Options to track most everything (social button interactions, advertising clicks, emails sent/opened, YouTube video engagement, custom dimension tracking of authors/categories, etc.) Integrates with API for reports/charts on dashboard, heat maps and real-time traffic tracking.
10
- Version: 1.1.3
11
  Author: Digital Point
12
  Author URI: https://www.digitalpoint.com/
13
  License: GPLv2
@@ -23,7 +23,7 @@ if (!function_exists('add_action'))
23
  exit;
24
  }
25
 
26
- define('BETTER_ANALYTICS_VERSION', '1.1.3');
27
  define('BETTER_ANALYTICS_MINIMUM_WP_VERSION', '3.8'); // Dashicons: https://codex.wordpress.org/Function_Reference/add_menu_page
28
  define('BETTER_ANALYTICS_PRODUCT_URL', 'https://marketplace.digitalpoint.com/better-analytics.3354/item');
29
  define('BETTER_ANALYTICS_PRO_PRODUCT_URL', 'https://marketplace.digitalpoint.com/better-analytics-pro.3355/item');
7
  Plugin Name: Better Analytics
8
  Plugin URI: https://marketplace.digitalpoint.com/better-analytics.3354/item
9
  Description: Adds Google Universal Analytics code to your WordPress site. Options to track most everything (social button interactions, advertising clicks, emails sent/opened, YouTube video engagement, custom dimension tracking of authors/categories, etc.) Integrates with API for reports/charts on dashboard, heat maps and real-time traffic tracking.
10
+ Version: 1.1.4
11
  Author: Digital Point
12
  Author URI: https://www.digitalpoint.com/
13
  License: GPLv2
23
  exit;
24
  }
25
 
26
+ define('BETTER_ANALYTICS_VERSION', '1.1.4');
27
  define('BETTER_ANALYTICS_MINIMUM_WP_VERSION', '3.8'); // Dashicons: https://codex.wordpress.org/Function_Reference/add_menu_page
28
  define('BETTER_ANALYTICS_PRODUCT_URL', 'https://marketplace.digitalpoint.com/better-analytics.3354/item');
29
  define('BETTER_ANALYTICS_PRO_PRODUCT_URL', 'https://marketplace.digitalpoint.com/better-analytics-pro.3355/item');
js/universal.php CHANGED
@@ -203,4 +203,4 @@ if (DigitalPointBetterAnalytics_Base_Public::getInstance()->experimentId !== nul
203
  );
204
  }
205
 
206
- echo "<meta id='ba_s' data-o=\"" . htmlentities(json_encode($jsonOptions)) . "\" />";
203
  );
204
  }
205
 
206
+ echo "<meta id=\"ba_s\" property=\"options\" content=\"\" data-o=\"" . htmlentities(json_encode($jsonOptions)) . "\" />";
library/DigitalPointBetterAnalytics/Helper/Reporting.php CHANGED
@@ -2,6 +2,19 @@
2
 
3
  class DigitalPointBetterAnalytics_Helper_Reporting extends DigitalPointBetterAnalytics_Helper_Reporting_Advanced
4
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  protected $_credentials = array(
6
  'client_id' => '416831151869-fks5s6f1d9q3a1j6ua0158hqclde21ta.apps.googleusercontent.com',
7
  'client_secret' => 'zkhfn3qPn0y-Dg8ZXHBeHBR9',
2
 
3
  class DigitalPointBetterAnalytics_Helper_Reporting extends DigitalPointBetterAnalytics_Helper_Reporting_Advanced
4
  {
5
+ /**
6
+ * These credentials are Google API Project credentials, not credentials for a Google account.
7
+ *
8
+ * For reference, the credentials ARE supposed to be embedded in the source for "Installed Applications" (which is what a WordPress plugin is).
9
+ *
10
+ * Quote from: https://developers.google.com/identity/protocols/OAuth2#installed
11
+ *
12
+ * "The process results in a client ID and, in some cases, a client secret, which you embed in the source
13
+ * code of your application. (In this context, the client secret is obviously not treated as a secret.)"
14
+ *
15
+ * OAuth2 tokens (which are never stored or transmitted outside the individual WordPress install) are the magic sauce that allows API calls to be made.
16
+ **/
17
+
18
  protected $_credentials = array(
19
  'client_id' => '416831151869-fks5s6f1d9q3a1j6ua0158hqclde21ta.apps.googleusercontent.com',
20
  'client_secret' => 'zkhfn3qPn0y-Dg8ZXHBeHBR9',
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: digitalpoint
3
  Tags: analytics, google analytics, universal analytics, statistics, tracking, code, dashboard, analytics dashboard, google analytics dashboard, google analytics plugin, google analytics widget, reports, charts, multisite, api, stats, web stats, visits, javascript, pageviews, marketing, widget, realtime, real time, youtube, outbrain, taboola, adsense, twitter, pinterest, linkedin, facebook, google, digitalpoint, ab testing, ab tests, split testing, google analytics content experiments, content experiments
4
  Donate link: https://marketplace.digitalpoint.com/better-analytics.3354/item#utm_source=readme&utm_medium=wordpress&utm_campaign=plugin
5
  Requires at least: 3.8
6
- Tested up to: 4.4
7
- Stable tag: 1.1.3
8
  License: GPLv2
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -201,6 +201,10 @@ Thank you to all the individuals who have contributed translations for Better Go
201
  26. Advanced settings allow you to fine tune how the system works with Google Analytics.
202
 
203
  == Changelog ==
 
 
 
 
204
  = 1.1.3 =
205
  * Feature: New option under Advanced tab - Hide "API Not Linked" Notice
206
  * Feature: New option under Advanced tab - Ability to limit access to settings to current admin account
3
  Tags: analytics, google analytics, universal analytics, statistics, tracking, code, dashboard, analytics dashboard, google analytics dashboard, google analytics plugin, google analytics widget, reports, charts, multisite, api, stats, web stats, visits, javascript, pageviews, marketing, widget, realtime, real time, youtube, outbrain, taboola, adsense, twitter, pinterest, linkedin, facebook, google, digitalpoint, ab testing, ab tests, split testing, google analytics content experiments, content experiments
4
  Donate link: https://marketplace.digitalpoint.com/better-analytics.3354/item#utm_source=readme&utm_medium=wordpress&utm_campaign=plugin
5
  Requires at least: 3.8
6
+ Tested up to: 4.5
7
+ Stable tag: 1.1.4
8
  License: GPLv2
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
201
  26. Advanced settings allow you to fine tune how the system works with Google Analytics.
202
 
203
  == Changelog ==
204
+ = 1.1.4 =
205
+ * Updated options container to pass W3C validation
206
+ * Updated for WordPress 4.5
207
+
208
  = 1.1.3 =
209
  * Feature: New option under Advanced tab - Hide "API Not Linked" Notice
210
  * Feature: New option under Advanced tab - Ability to limit access to settings to current admin account