Google Analytics - Version 2.3.6

Version Description

  • Add onboarding product to property creation.
Download this release

Release Info

Developer ShareThis
Plugin Icon wp plugin Google Analytics
Version 2.3.6
Comparing to
See all releases

Code changes from version 2.3.5 to 2.3.6

Files changed (3) hide show
  1. class/Ga_Sharethis.php +1 -0
  2. googleanalytics.php +58 -58
  3. readme.txt +4 -1
class/Ga_Sharethis.php CHANGED
@@ -26,6 +26,7 @@ class Ga_Sharethis {
26
  $query_params = array(
27
  'domain' => $domain,
28
  'is_wordpress' => true,
 
29
  );
30
  $response = $api_client->call( 'ga_api_create_sharethis_property', array(
31
  $query_params
26
  $query_params = array(
27
  'domain' => $domain,
28
  'is_wordpress' => true,
29
+ 'onboarding_product' => 'ga',
30
  );
31
  $response = $api_client->call( 'ga_api_create_sharethis_property', array(
32
  $query_params
googleanalytics.php CHANGED
@@ -1,58 +1,58 @@
1
- <?php
2
-
3
- /*
4
- * Plugin Name: Google Analytics
5
- * Plugin URI: http://wordpress.org/extend/plugins/googleanalytics/
6
- * Description: Use Google Analytics on your WordPress site without touching any code, and view visitor reports right in your WordPress admin dashboard!
7
- * Version: 2.3.5
8
- * Author: ShareThis
9
- * Author URI: http://sharethis.com
10
- */
11
-
12
- if ( !defined( 'WP_CONTENT_URL' ) ) {
13
- define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
14
- }
15
- if ( !defined( 'WP_CONTENT_DIR' ) ) {
16
- define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
17
- }
18
- if ( !defined( 'WP_PLUGIN_URL' ) ) {
19
- define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
20
- }
21
- if ( !defined( 'WP_PLUGIN_DIR' ) ) {
22
- define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
23
- }
24
- if ( !defined( 'GA_NAME' ) ) {
25
- define( 'GA_NAME', 'googleanalytics' );
26
- }
27
- if ( !defined( 'GA_PLUGIN_DIR' ) ) {
28
- define( 'GA_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . GA_NAME );
29
- }
30
- if ( !defined( 'GA_PLUGIN_URL' ) ) {
31
- define( 'GA_PLUGIN_URL', WP_PLUGIN_URL . '/' . GA_NAME );
32
- }
33
- if ( !defined( 'GA_MAIN_FILE_PATH' ) ) {
34
- define( 'GA_MAIN_FILE_PATH', __FILE__ );
35
- }
36
- if ( !defined( 'GA_SHARETHIS_SCRIPTS_INCLUDED' ) ) {
37
- define( 'GA_SHARETHIS_SCRIPTS_INCLUDED', 0 );
38
- }
39
-
40
- /**
41
- * Prevent to launch the plugin within different plugin dir name
42
- */
43
- if ( !preg_match( '/(\/|\\\)' . GA_NAME . '(\/|\\\)/', realpath( __FILE__ ), $test ) ) {
44
- echo _( 'Invalid plugin installation directory. Please verify if the plugin\'s dir name is equal to "' . GA_NAME . '".' );
45
-
46
- // To make able the message above to be displayed in the activation error notice.
47
- die();
48
- }
49
-
50
- define( 'GOOGLEANALYTICS_VERSION', '2.1.3' );
51
- include_once GA_PLUGIN_DIR . '/overwrite/ga_overwrite.php';
52
- include_once GA_PLUGIN_DIR . '/class/Ga_Autoloader.php';
53
- include_once GA_PLUGIN_DIR . '/tools/class-support-logging.php';
54
- Ga_Autoloader::register();
55
- Ga_Hook::add_hooks( GA_MAIN_FILE_PATH );
56
-
57
- add_action( 'plugins_loaded', 'Ga_Admin::loaded_googleanalytics' );
58
- add_action( 'init', 'Ga_Helper::init' );
1
+ <?php
2
+
3
+ /*
4
+ * Plugin Name: Google Analytics
5
+ * Plugin URI: http://wordpress.org/extend/plugins/googleanalytics/
6
+ * Description: Use Google Analytics on your WordPress site without touching any code, and view visitor reports right in your WordPress admin dashboard!
7
+ * Version: 2.3.6
8
+ * Author: ShareThis
9
+ * Author URI: http://sharethis.com
10
+ */
11
+
12
+ if ( !defined( 'WP_CONTENT_URL' ) ) {
13
+ define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
14
+ }
15
+ if ( !defined( 'WP_CONTENT_DIR' ) ) {
16
+ define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
17
+ }
18
+ if ( !defined( 'WP_PLUGIN_URL' ) ) {
19
+ define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
20
+ }
21
+ if ( !defined( 'WP_PLUGIN_DIR' ) ) {
22
+ define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
23
+ }
24
+ if ( !defined( 'GA_NAME' ) ) {
25
+ define( 'GA_NAME', 'googleanalytics' );
26
+ }
27
+ if ( !defined( 'GA_PLUGIN_DIR' ) ) {
28
+ define( 'GA_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . GA_NAME );
29
+ }
30
+ if ( !defined( 'GA_PLUGIN_URL' ) ) {
31
+ define( 'GA_PLUGIN_URL', WP_PLUGIN_URL . '/' . GA_NAME );
32
+ }
33
+ if ( !defined( 'GA_MAIN_FILE_PATH' ) ) {
34
+ define( 'GA_MAIN_FILE_PATH', __FILE__ );
35
+ }
36
+ if ( !defined( 'GA_SHARETHIS_SCRIPTS_INCLUDED' ) ) {
37
+ define( 'GA_SHARETHIS_SCRIPTS_INCLUDED', 0 );
38
+ }
39
+
40
+ /**
41
+ * Prevent to launch the plugin within different plugin dir name
42
+ */
43
+ if ( !preg_match( '/(\/|\\\)' . GA_NAME . '(\/|\\\)/', realpath( __FILE__ ), $test ) ) {
44
+ echo _( 'Invalid plugin installation directory. Please verify if the plugin\'s dir name is equal to "' . GA_NAME . '".' );
45
+
46
+ // To make able the message above to be displayed in the activation error notice.
47
+ die();
48
+ }
49
+
50
+ define( 'GOOGLEANALYTICS_VERSION', '2.1.3' );
51
+ include_once GA_PLUGIN_DIR . '/overwrite/ga_overwrite.php';
52
+ include_once GA_PLUGIN_DIR . '/class/Ga_Autoloader.php';
53
+ include_once GA_PLUGIN_DIR . '/tools/class-support-logging.php';
54
+ Ga_Autoloader::register();
55
+ Ga_Hook::add_hooks( GA_MAIN_FILE_PATH );
56
+
57
+ add_action( 'plugins_loaded', 'Ga_Admin::loaded_googleanalytics' );
58
+ add_action( 'init', 'Ga_Helper::init' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: sharethis, scottstorebloom
3
  Tags: analytics, google analytics, google analytics plugin, google analytics widget, google analytics dashboard
4
  Requires at least: 3.8
5
  Tested up to: 5.4.1
6
- Stable tag: 2.3.5
7
 
8
  Use Google Analytics on your Wordpress site without touching any code, and view visitor reports right in your Wordpress admin dashboard!
9
 
@@ -84,6 +84,9 @@ We are always happy to help.
84
 
85
  == Changelog ==
86
 
 
 
 
87
  = 2.3.5 =
88
  * Updated analytics feature.
89
  * Add filter to show 30 days worth of data.
3
  Tags: analytics, google analytics, google analytics plugin, google analytics widget, google analytics dashboard
4
  Requires at least: 3.8
5
  Tested up to: 5.4.1
6
+ Stable tag: 2.3.6
7
 
8
  Use Google Analytics on your Wordpress site without touching any code, and view visitor reports right in your Wordpress admin dashboard!
9
 
84
 
85
  == Changelog ==
86
 
87
+ = 2.3.6 =
88
+ * Add onboarding product to property creation.
89
+
90
  = 2.3.5 =
91
  * Updated analytics feature.
92
  * Add filter to show 30 days worth of data.