WP Google Analytics Events - Version 2.5.5

Version Description

Download this release

Release Info

Developer yuvalo
Plugin Icon 128x128 WP Google Analytics Events
Version 2.5.5
Comparing to
See all releases

Code changes from version 2.5.4 to 2.5.5

ga-scroll-event.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Google Analytics Events
4
  Plugin URI: http://wpflow.com
5
  Description: Adds the Google Analytics code to your website and enables you to send events on scroll or click.
6
- Version: 2.5.4
7
  Author: Yuval Oren
8
  Author URI: http://wpflow.com
9
  License: GPLv2
3
  Plugin Name: WP Google Analytics Events
4
  Plugin URI: http://wpflow.com
5
  Description: Adds the Google Analytics code to your website and enables you to send events on scroll or click.
6
+ Version: 2.5.5
7
  Author: Yuval Oren
8
  Author URI: http://wpflow.com
9
  License: GPLv2
includes/admin.php CHANGED
@@ -30,7 +30,7 @@ if ($active_page == 'wp-google-analytics-events') {
30
  <div id="ga_mainwrap">
31
  <div id="ga_main" class="wrap <?php echo $wpgae_main_class; ?>">
32
  <?php screen_icon( 'plugins' ); ?>
33
- <h2>GA Scroll Events Plugin</h2>
34
 
35
  <h2 class="nav-tab-wrapper">
36
  <a href="?page=wp-google-analytics-events" class="nav-tab <?php echo $active_page == 'wp-google-analytics-events' ? 'nav-tab-active' : ''; ?>">General Settings</a>
@@ -38,6 +38,7 @@ if ($active_page == 'wp-google-analytics-events') {
38
  <a href="?page=wp-google-analytics-events-scroll" class="nav-tab <?php echo $active_page == 'wp-google-analytics-events-scroll' ? 'nav-tab-active' : ''; ?>">Scroll Tracking</a>
39
  <a href="?page=wp-google-analytics-events-started" class="nav-tab <?php echo $active_page == 'wp-google-analytics-events-started' ? 'nav-tab-active' : ''; ?>"><i class="fa fa-question-circle ga-events-help"></i> Getting Started Guide</a>
40
  <a href="?page=wp-google-analytics-events-whatsnew&wpgae_whatsnew_notify=1" class="nav-tab <?php echo $active_page == 'wp-google-analytics-events-whatsnew' ? 'nav-tab-active' : ''; ?>"><i class="fa fa-question-circle ga-events-help"></i> What's New</a>
 
41
  </h2>
42
  <?php
43
  if ($active_page == 'wp-google-analytics-events-started') {
@@ -92,11 +93,12 @@ if ($active_page == 'wp-google-analytics-events') {
92
  <ul>
93
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>Link Tracking</strong></li>
94
  <li title="Dynamic Event Data"><i class="fa fa-check-square-o fa-lg"></i><strong>Placeholders</strong></li>
 
95
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>YouTube Video Tracking</strong></li>
96
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>Vimeo Video support</strong></li>
97
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>Allow non-admin users to manage the plugin</strong></li>
98
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>HTML Tag support</strong></li>
99
- <li><i class="fa fa-check-square-o fa-lg"></i><strong>Pro Support</strong></li>
100
  </ul>
101
  </td>
102
  </tr>
@@ -172,8 +174,8 @@ if ($active_page == 'wp-google-analytics-events') {
172
  <img src="<?php echo plugins_url( 'images/icon_lock.png', dirname(__FILE__)) ?>" />
173
  </div>
174
  <div class="ga_events_box_li_content">
175
- <span class="ga_events_box_li_title">YouTube Video Tracking</span>
176
- <span class="ga_events_box_li_txt">Track all video play/stop events and make
177
  smarter segments on how people watch your content.</span>
178
  </div>
179
  </li>
@@ -182,8 +184,8 @@ smarter segments on how people watch your content.</span>
182
  <img src="<?php echo plugins_url( 'images/icon_lock.png', dirname(__FILE__)) ?>" />
183
  </div>
184
  <div class="ga_events_box_li_content" style="margin-top:10px">
185
- <span class="ga_events_box_li_title">Vimeo Video support</span>
186
- <span class="ga_events_box_li_txt">And yes, you can also track Vimeo videos</span>
187
  </div>
188
  </li>
189
  </ul>
@@ -229,7 +231,7 @@ echo "<script>
229
  ";
230
  }
231
 
232
- function load_custom_wp_admin_style() {
233
  wp_register_style( 'wpgae-font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css' );
234
  wp_register_style( 'custom_wp_admin_css', plugins_url('css/style.css', dirname(__FILE__)), array('wpgae-font-awesome'));
235
  wp_enqueue_style( 'custom_wp_admin_css' );
@@ -245,7 +247,7 @@ function load_custom_wp_admin_style() {
245
  wp_enqueue_script( 'admin-init', plugins_url('js/admin.js', dirname(__FILE__)) , array('jquery','jquery-ui-tooltip','wpgae-ajax'), null, true );
246
  }
247
 
248
- add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' );
249
 
250
  add_action('admin_init', 'ga_events_admin_init');
251
 
@@ -262,10 +264,10 @@ function ga_events_admin_init() {
262
 
263
 
264
  register_setting('ga_events_options','ga_events_options','ga_events_validate');
265
- add_settings_section('ga_events_main','WP Google Analytics Events Settings', 'ga_events_section_text','ga_events');
266
- add_settings_section('ga_events_click_section','', 'ga_events_section_text','ga_events_click');
267
- add_settings_section('ga_events_scroll_section','', 'ga_events_section_text','ga_events_scroll');
268
- add_settings_section('ga_events_started_section','Getting Started Guide', 'ga_events_section_text','ga_events_started');
269
  add_settings_section('ga_events_whatsnew_section','', 'ga_events_whatsnew_section_content','ga_events_whatsnew');
270
  add_settings_field('ga_events_id', '','ga_events_setting_input','ga_events','ga_events_main');
271
  add_settings_field('ga_events_exclude_snippet', '','ga_events_setting_snippet_input','ga_events','ga_events_main');
@@ -284,8 +286,15 @@ function ga_events_admin_init() {
284
 
285
  }
286
 
287
- function ga_events_section_text() {
288
- echo "<br><a style='margin-left:8px;' href='http://wpflow.com/documentation' target='_blank'>Plugin Documentation</a>";
 
 
 
 
 
 
 
289
  }
290
 
291
  function ga_events_whatsnew_section_content() {
30
  <div id="ga_mainwrap">
31
  <div id="ga_main" class="wrap <?php echo $wpgae_main_class; ?>">
32
  <?php screen_icon( 'plugins' ); ?>
33
+ <h2>WP Google Analytics Events</h2>
34
 
35
  <h2 class="nav-tab-wrapper">
36
  <a href="?page=wp-google-analytics-events" class="nav-tab <?php echo $active_page == 'wp-google-analytics-events' ? 'nav-tab-active' : ''; ?>">General Settings</a>
38
  <a href="?page=wp-google-analytics-events-scroll" class="nav-tab <?php echo $active_page == 'wp-google-analytics-events-scroll' ? 'nav-tab-active' : ''; ?>">Scroll Tracking</a>
39
  <a href="?page=wp-google-analytics-events-started" class="nav-tab <?php echo $active_page == 'wp-google-analytics-events-started' ? 'nav-tab-active' : ''; ?>"><i class="fa fa-question-circle ga-events-help"></i> Getting Started Guide</a>
40
  <a href="?page=wp-google-analytics-events-whatsnew&wpgae_whatsnew_notify=1" class="nav-tab <?php echo $active_page == 'wp-google-analytics-events-whatsnew' ? 'nav-tab-active' : ''; ?>"><i class="fa fa-question-circle ga-events-help"></i> What's New</a>
41
+ <a href="https://wordpress.org/support/plugin/wp-google-analytics-events/" class="nav-tab" target="_blank"><i class="fa fa-question-circle ga-events-help"></i>Plugin Support</a>
42
  </h2>
43
  <?php
44
  if ($active_page == 'wp-google-analytics-events-started') {
93
  <ul>
94
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>Link Tracking</strong></li>
95
  <li title="Dynamic Event Data"><i class="fa fa-check-square-o fa-lg"></i><strong>Placeholders</strong></li>
96
+ <li><i class="fa fa-check-square-o fa-lg"></i><strong>Track your Self-Hosted Media video and audio</strong></li>
97
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>YouTube Video Tracking</strong></li>
98
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>Vimeo Video support</strong></li>
99
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>Allow non-admin users to manage the plugin</strong></li>
100
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>HTML Tag support</strong></li>
101
+ <li><i class="fa fa-check-square-o fa-lg"></i><strong>Access to our Pro Support Team</strong></li>
102
  </ul>
103
  </td>
104
  </tr>
174
  <img src="<?php echo plugins_url( 'images/icon_lock.png', dirname(__FILE__)) ?>" />
175
  </div>
176
  <div class="ga_events_box_li_content">
177
+ <span class="ga_events_box_li_title">Self-Hosted Media - Track Audio and Video</span>
178
+ <span class="ga_events_box_li_txt">Track all video play/stop events and create
179
  smarter segments on how people watch your content.</span>
180
  </div>
181
  </li>
184
  <img src="<?php echo plugins_url( 'images/icon_lock.png', dirname(__FILE__)) ?>" />
185
  </div>
186
  <div class="ga_events_box_li_content" style="margin-top:10px">
187
+ <span class="ga_events_box_li_title">YouTube and Vimeo Video support</span>
188
+ <span class="ga_events_box_li_txt">We also support YouTube and Vimeo</span>
189
  </div>
190
  </li>
191
  </ul>
231
  ";
232
  }
233
 
234
+ function wpgae_load_custom_wp_admin_style() {
235
  wp_register_style( 'wpgae-font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css' );
236
  wp_register_style( 'custom_wp_admin_css', plugins_url('css/style.css', dirname(__FILE__)), array('wpgae-font-awesome'));
237
  wp_enqueue_style( 'custom_wp_admin_css' );
247
  wp_enqueue_script( 'admin-init', plugins_url('js/admin.js', dirname(__FILE__)) , array('jquery','jquery-ui-tooltip','wpgae-ajax'), null, true );
248
  }
249
 
250
+ add_action( 'admin_enqueue_scripts', 'wpgae_load_custom_wp_admin_style' );
251
 
252
  add_action('admin_init', 'ga_events_admin_init');
253
 
264
 
265
 
266
  register_setting('ga_events_options','ga_events_options','ga_events_validate');
267
+ add_settings_section('ga_events_main','WP Google Analytics Events Settings', 'ga_events_gs_section_text','ga_events');
268
+ add_settings_section('ga_events_click_section','', 'ga_events_click_section_text','ga_events_click');
269
+ add_settings_section('ga_events_scroll_section','', 'ga_events_scroll_section_text','ga_events_scroll');
270
+ add_settings_section('ga_events_started_section','Getting Started Guide', 'ga_events_gs_section_text','ga_events_started');
271
  add_settings_section('ga_events_whatsnew_section','', 'ga_events_whatsnew_section_content','ga_events_whatsnew');
272
  add_settings_field('ga_events_id', '','ga_events_setting_input','ga_events','ga_events_main');
273
  add_settings_field('ga_events_exclude_snippet', '','ga_events_setting_snippet_input','ga_events','ga_events_main');
286
 
287
  }
288
 
289
+ function ga_events_gs_section_text() {
290
+ echo "<br><a style='margin-left:8px;' href='https://wpflow.com/knowledgebase/basic-configuration/' target='_blank'>Plugin Documentation</a>";
291
+ }
292
+ function ga_events_click_section_text() {
293
+ echo "<br><a style='margin-left:8px;' href='https://wpflow.com/knowledgebase/use-wp-google-analytics-events-click-tracking-tab/' target='_blank'>Plugin Documentation</a>";
294
+ }
295
+
296
+ function ga_events_scroll_section_text() {
297
+ echo "<br><a style='margin-left:8px;' href='https://wpflow.com/knowledgebase/scroll-tracking/' target='_blank'>Plugin Documentation</a>";
298
  }
299
 
300
  function ga_events_whatsnew_section_content() {
js/ga-scroll-events.js CHANGED
@@ -1,5 +1,5 @@
1
  /*!
2
- * WP Googel Analytics Events | v2.5.4
3
  * Copyright (c) 2013 Yuval Oren (@yuvalo)
4
  * License: GPLv2
5
  */
1
  /*!
2
+ * WP Googel Analytics Events | v2.5.5
3
  * Copyright (c) 2013 Yuval Oren (@yuvalo)
4
  * License: GPLv2
5
  */
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === WP Google Analytics Events ===
2
  Contributors: yuvalo
3
  Tags: analytics, google, events, ga, google analytics, tracking
4
- Tested up to: 5.2.3
5
- Stable tag: 2.5.4
6
  License: GPLv2
7
  Requires at least: 3.0
8
 
@@ -91,6 +91,10 @@ If you are looking for more in-depth support, we encourage you to check out [WP
91
  2. Google Analytics real time events screenshot-2.png
92
  == Changelog ==
93
 
 
 
 
 
94
  = Version 2.5.4 =
95
  1. Fixed a bug related to bootstrap modals
96
 
1
  === WP Google Analytics Events ===
2
  Contributors: yuvalo
3
  Tags: analytics, google, events, ga, google analytics, tracking
4
+ Tested up to: 5.2.4
5
+ Stable tag: 2.5.5
6
  License: GPLv2
7
  Requires at least: 3.0
8
 
91
  2. Google Analytics real time events screenshot-2.png
92
  == Changelog ==
93
 
94
+ = Version 2.5.5 =
95
+ 1. Fixed an admin panel conflict
96
+ 2. Updated the documentation links
97
+
98
  = Version 2.5.4 =
99
  1. Fixed a bug related to bootstrap modals
100