Google Analytics Counter Tracker - Version 2.0.1

Version Description

Download this release

Release Info

Developer Analytics Counter
Plugin Icon 128x128 Google Analytics Counter Tracker
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0.0 to 2.0.1

analytics-counter.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Google Analytics Counter Tracker
4
 
5
  Description: Google analytics counter tracker - analyse the visitors hits on you website and display it graphically
6
- Version: 2.0.0
7
  Author: WPAdm
8
  Author URI: http://www.wpadm.com
9
  Plugin URI: http://www.wpadm.com
3
  Plugin Name: Google Analytics Counter Tracker
4
 
5
  Description: Google analytics counter tracker - analyse the visitors hits on you website and display it graphically
6
+ Version: 2.0.1
7
  Author: WPAdm
8
  Author URI: http://www.wpadm.com
9
  Plugin URI: http://www.wpadm.com
class.wpadm-ga.php CHANGED
@@ -18,8 +18,7 @@ class WPAdm_GA
18
  } else {
19
  if(WPAdm_GA_Options::gaTokenIsExpired() && !isset($_GET['token'])) {
20
  ob_clean();
21
- $location = self::URL_GA_AUTH . '?redirect=' . urlencode(home_url( add_query_arg( NULL, NULL ) ));
22
- // wp_redirect($localion);
23
  header("Location: $location");
24
  }
25
  WPAdm_GA_View::$content_file = WPADM_GA__PLUGIN_DIR . 'view' . DIRECTORY_SEPARATOR . 'visit.php';
@@ -38,7 +37,7 @@ class WPAdm_GA
38
  } else {
39
  if(WPAdm_GA_Options::gaTokenIsExpired() && !isset($_GET['token'])) {
40
  ob_clean();
41
- $location = self::URL_GA_AUTH . '?redirect=' . urlencode(home_url( add_query_arg( NULL, NULL ) ));
42
  header("Location: $location");
43
  }
44
  WPAdm_GA_View::$content_file = WPADM_GA__PLUGIN_DIR . 'view' . DIRECTORY_SEPARATOR . 'users.php';
@@ -60,7 +59,7 @@ class WPAdm_GA
60
  } else {
61
  if(WPAdm_GA_Options::gaTokenIsExpired() && !isset($_GET['token'])) {
62
  ob_clean();
63
- $location = self::URL_GA_AUTH . '?redirect=' . urlencode(home_url( add_query_arg( NULL, NULL ) ));
64
  header("Location: $location");
65
  }
66
  WPAdm_GA_View::$content_file = WPADM_GA__PLUGIN_DIR . 'view' . DIRECTORY_SEPARATOR . 'settings.php';
@@ -544,5 +543,9 @@ public static function registerPluginStyles() {
544
  }
545
  wp_die();
546
  }
 
 
 
 
547
  }
548
 
18
  } else {
19
  if(WPAdm_GA_Options::gaTokenIsExpired() && !isset($_GET['token'])) {
20
  ob_clean();
21
+ $location = self::URL_GA_AUTH . '?redirect=' . urlencode(self::getCurUrl());
 
22
  header("Location: $location");
23
  }
24
  WPAdm_GA_View::$content_file = WPADM_GA__PLUGIN_DIR . 'view' . DIRECTORY_SEPARATOR . 'visit.php';
37
  } else {
38
  if(WPAdm_GA_Options::gaTokenIsExpired() && !isset($_GET['token'])) {
39
  ob_clean();
40
+ $location = self::URL_GA_AUTH . '?redirect=' . urlencode(self::getCurUrl());
41
  header("Location: $location");
42
  }
43
  WPAdm_GA_View::$content_file = WPADM_GA__PLUGIN_DIR . 'view' . DIRECTORY_SEPARATOR . 'users.php';
59
  } else {
60
  if(WPAdm_GA_Options::gaTokenIsExpired() && !isset($_GET['token'])) {
61
  ob_clean();
62
+ $location = self::URL_GA_AUTH . '?redirect=' . urlencode(self::getCurUrl());
63
  header("Location: $location");
64
  }
65
  WPAdm_GA_View::$content_file = WPADM_GA__PLUGIN_DIR . 'view' . DIRECTORY_SEPARATOR . 'settings.php';
543
  }
544
  wp_die();
545
  }
546
+
547
+ protected static function getCurUrl() {
548
+ return 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . rtrim($_SERVER['HTTP_HOST'], '/')."/" . ltrim($_SERVER['REQUEST_URI'], '/');
549
+ }
550
  }
551
 
readme.txt CHANGED
@@ -1,6 +1,6 @@
1
  === Google Analytics Counter Tracker ===
2
  Plugin Name: Google Analytics Counter Tracker
3
- Version: 2.0.0
4
  Tags: Google Analytics, Analytics, Statistics, Analytics dashboard, Reports, Charts, Stats, Web stats, Visit, Audience Overview, Visitors Overview, Marketing, Google, Keywords, Counter, Tracker, Hit counter, hitcounter, visitor tracker, visitor tracking, visitors, tracking, stats, statscounter, analyse, hits, hit, track
5
  Requires at least: 3.9
6
  Tested up to: 4.4
@@ -58,7 +58,7 @@ Screenshots for Google Analytics Counter Tracker coming soon.
58
  * Mobile-Friendly Design
59
  * Sessions and Pageviews
60
  * Users and new users
61
- * Top countries and geo locations
62
  * Browsers, Operating systems and Screen resolutions
63
 
64
  == Installation ==
@@ -75,11 +75,24 @@ If you need help with the Google Analytics Counter Tracker plugin or you want to
75
 
76
  == Changelog ==
77
 
78
- The new improved version of Analytics Counter plugin is now online. In this regard we ask all our users to sign-in again. It should be made only once. We apologize for this small inconvenience.<br />
79
 
80
- * The Google Analytics Counter Tracker version 2.0.0 compatible to WordPress 4.4
 
81
 
 
 
 
 
 
 
 
 
 
 
 
 
82
 
83
  == Other ==
84
 
85
- Other
1
  === Google Analytics Counter Tracker ===
2
  Plugin Name: Google Analytics Counter Tracker
3
+ Version: 2.0.1
4
  Tags: Google Analytics, Analytics, Statistics, Analytics dashboard, Reports, Charts, Stats, Web stats, Visit, Audience Overview, Visitors Overview, Marketing, Google, Keywords, Counter, Tracker, Hit counter, hitcounter, visitor tracker, visitor tracking, visitors, tracking, stats, statscounter, analyse, hits, hit, track
5
  Requires at least: 3.9
6
  Tested up to: 4.4
58
  * Mobile-Friendly Design
59
  * Sessions and Pageviews
60
  * Users and new users
61
+ * Top countries and GEO locations
62
  * Browsers, Operating systems and Screen resolutions
63
 
64
  == Installation ==
75
 
76
  == Changelog ==
77
 
78
+ The new improved version of Analytics Counter plugin is now online.<br />
79
 
80
+ = Google Analytics Counter Tracker version 3.0.0 coming soon for WordPress users. =
81
+ * this version coming soon
82
 
83
+ = Google Analytics Counter Tracker version 2.0.1 is now online and available for WordPress users. =
84
+ * Small fixes
85
+ * Changelog was updated for Google Analytics Counter Tracker
86
+
87
+ = Google Analytics Counter Tracker version 2.0.0 compatible to WordPress 4.4 =
88
+ * In this regard we ask all our users to sign-in again. It should be made only once. We apologize for this small inconvenience.
89
+
90
+ = Google Analytics Counter Tracker version 1.0.2 is now online and available for WordPress users. =
91
+ * Bug fixes
92
+
93
+ = Google Analytics Counter Tracker version 1.0.0 is now online and available for WordPress users. =
94
+ * The first Google Analytics Counter Tracker for WordPress is published
95
 
96
  == Other ==
97
 
98
+ Other information coming soon
view/scripts/wpadm-ga.css CHANGED
@@ -14,6 +14,7 @@
14
  margin-top: 0px;
15
  margin-bottom: 0px;
16
  height: 100%;
 
17
  }
18
 
19
  label.checkbox-label input[type=checkbox]{
14
  margin-top: 0px;
15
  margin-bottom: 0px;
16
  height: 100%;
17
+ color: white;
18
  }
19
 
20
  label.checkbox-label input[type=checkbox]{