Version Description
Download this release
Release Info
Developer | yuvalo |
Plugin | WP Google Analytics Events |
Version | 2.4.4 |
Comparing to | |
See all releases |
Code changes from version 2.4.3 to 2.4.4
- css/style.css +146 -12
- ga-scroll-event.php +3 -2
- images/bg_icon_pro_features.png +0 -0
- images/bg_icon_support.png +0 -0
- images/icon_block.png +0 -0
- images/icon_lock.png +0 -0
- images/icon_video.png +0 -0
- includes/admin.php +103 -9
- includes/functions.php +8 -8
- includes/notice.php +2 -2
- js/ga-scroll-events.js +7 -4
- readme.txt +8 -2
css/style.css
CHANGED
@@ -1,8 +1,13 @@
|
|
1 |
-
|
2 |
float:left;
|
3 |
display: block;
|
4 |
max-width: 900px;
|
5 |
}
|
|
|
|
|
|
|
|
|
|
|
6 |
#ga_main th {
|
7 |
/*min-width:100px;*/
|
8 |
}
|
@@ -14,7 +19,7 @@
|
|
14 |
list-style-type: none;
|
15 |
}
|
16 |
#ga_mainwrap{
|
17 |
-
width:
|
18 |
float: left;
|
19 |
}
|
20 |
|
@@ -24,6 +29,8 @@
|
|
24 |
margin-top:52px;
|
25 |
margin-right: 30px;
|
26 |
}
|
|
|
|
|
27 |
.ga_intable {
|
28 |
margin-left:10px;
|
29 |
}
|
@@ -82,16 +89,16 @@
|
|
82 |
text-align: center;
|
83 |
}
|
84 |
|
85 |
-
.
|
86 |
list-style-type: none !important;
|
87 |
font-size: 14px;
|
88 |
}
|
89 |
|
90 |
-
.
|
91 |
margin-right: 5px;
|
92 |
}
|
93 |
|
94 |
-
.
|
95 |
text-align: center;
|
96 |
font-size: 19px;
|
97 |
background-color: #32373c;
|
@@ -99,33 +106,33 @@
|
|
99 |
}
|
100 |
|
101 |
|
102 |
-
.
|
103 |
background-color: #96D0B5;
|
104 |
padding: 0px !important;
|
105 |
}
|
106 |
|
107 |
-
.
|
108 |
padding: 0px 10px !important;
|
109 |
}
|
110 |
|
111 |
-
.
|
112 |
font-size: 17px;
|
113 |
line-height: 30px;
|
114 |
height: 32px;
|
115 |
}
|
116 |
|
117 |
-
.
|
118 |
padding: 10px 0 10px 3%;
|
119 |
}
|
120 |
|
121 |
-
.
|
122 |
display: block !important;
|
123 |
width: 100% !important;
|
124 |
background-color: #22636A;
|
125 |
padding: 10px 0 10px;
|
126 |
}
|
127 |
|
128 |
-
.
|
129 |
display: block;
|
130 |
margin: auto;
|
131 |
}
|
@@ -326,10 +333,14 @@ a.btn_close_popup img {
|
|
326 |
|
327 |
@media screen and (min-width: 1024px){
|
328 |
|
329 |
-
|
330 |
width: 70%;
|
331 |
}
|
332 |
|
|
|
|
|
|
|
|
|
333 |
#ga_main td{
|
334 |
max-width: 100px;
|
335 |
}
|
@@ -344,3 +355,126 @@ a.btn_close_popup img {
|
|
344 |
width: auto;
|
345 |
}
|
346 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.ga_main_general_width {
|
2 |
float:left;
|
3 |
display: block;
|
4 |
max-width: 900px;
|
5 |
}
|
6 |
+
|
7 |
+
.ga_main_full_width {
|
8 |
+
float:left;
|
9 |
+
display: block;
|
10 |
+
}
|
11 |
#ga_main th {
|
12 |
/*min-width:100px;*/
|
13 |
}
|
19 |
list-style-type: none;
|
20 |
}
|
21 |
#ga_mainwrap{
|
22 |
+
width: 99%;
|
23 |
float: left;
|
24 |
}
|
25 |
|
29 |
margin-top:52px;
|
30 |
margin-right: 30px;
|
31 |
}
|
32 |
+
|
33 |
+
|
34 |
.ga_intable {
|
35 |
margin-left:10px;
|
36 |
}
|
89 |
text-align: center;
|
90 |
}
|
91 |
|
92 |
+
.ga_events_banner li {
|
93 |
list-style-type: none !important;
|
94 |
font-size: 14px;
|
95 |
}
|
96 |
|
97 |
+
.ga_events_banner li i {
|
98 |
margin-right: 5px;
|
99 |
}
|
100 |
|
101 |
+
.ga_events_banner th {
|
102 |
text-align: center;
|
103 |
font-size: 19px;
|
104 |
background-color: #32373c;
|
106 |
}
|
107 |
|
108 |
|
109 |
+
.ga_events_banner form {
|
110 |
background-color: #96D0B5;
|
111 |
padding: 0px !important;
|
112 |
}
|
113 |
|
114 |
+
.ga_events_banner .features td{
|
115 |
padding: 0px 10px !important;
|
116 |
}
|
117 |
|
118 |
+
.ga_events_banner .button-large {
|
119 |
font-size: 17px;
|
120 |
line-height: 30px;
|
121 |
height: 32px;
|
122 |
}
|
123 |
|
124 |
+
.ga_events_banner form .form-content {
|
125 |
padding: 10px 0 10px 3%;
|
126 |
}
|
127 |
|
128 |
+
.ga_events_banner form .clear {
|
129 |
display: block !important;
|
130 |
width: 100% !important;
|
131 |
background-color: #22636A;
|
132 |
padding: 10px 0 10px;
|
133 |
}
|
134 |
|
135 |
+
.ga_events_banner form .btn-subscribe {
|
136 |
display: block;
|
137 |
margin: auto;
|
138 |
}
|
333 |
|
334 |
@media screen and (min-width: 1024px){
|
335 |
|
336 |
+
.ga_main_general_width{
|
337 |
width: 70%;
|
338 |
}
|
339 |
|
340 |
+
.ga_main_full_width{
|
341 |
+
width: 100%;
|
342 |
+
}
|
343 |
+
|
344 |
#ga_main td{
|
345 |
max-width: 100px;
|
346 |
}
|
355 |
width: auto;
|
356 |
}
|
357 |
}
|
358 |
+
|
359 |
+
.ga_events_top {
|
360 |
+
clear: both;
|
361 |
+
}
|
362 |
+
|
363 |
+
|
364 |
+
.ga_events_featurebox {
|
365 |
+
width: 385px;
|
366 |
+
min-height: 252px;
|
367 |
+
background-color: white;
|
368 |
+
display: inline-block;
|
369 |
+
float: left;
|
370 |
+
margin: 10px 18px 0px 0px;
|
371 |
+
position: relative;
|
372 |
+
}
|
373 |
+
|
374 |
+
.ga_events_box_general {
|
375 |
+
background-image: url(../images/bg_icon_pro_features.png);
|
376 |
+
background-position: right;
|
377 |
+
background-repeat: no-repeat;
|
378 |
+
}
|
379 |
+
|
380 |
+
.ga_events_box_support {
|
381 |
+
background-image: url(../images/bg_icon_support.png);
|
382 |
+
background-position: -1px 125px;
|
383 |
+
background-repeat: no-repeat;
|
384 |
+
}
|
385 |
+
.ga_events_box_title {
|
386 |
+
line-height: 47px;
|
387 |
+
border-bottom: 1px solid gainsboro;
|
388 |
+
}
|
389 |
+
|
390 |
+
.ga_events_box_title span {
|
391 |
+
margin-left: 20px;
|
392 |
+
font-size: 20px;
|
393 |
+
font-weight: bold;
|
394 |
+
}
|
395 |
+
|
396 |
+
.ga_events_box_video .ga_events_box_title {
|
397 |
+
background-image: url(../images/icon_video.png);
|
398 |
+
background-position: 97%;
|
399 |
+
background-repeat: no-repeat;
|
400 |
+
}
|
401 |
+
|
402 |
+
.ga_events_box_body span{
|
403 |
+
margin-left: 20px;
|
404 |
+
color: #495A6B;
|
405 |
+
display: block;
|
406 |
+
}
|
407 |
+
.ga_events_box_list {
|
408 |
+
margin-top: 20px;
|
409 |
+
}
|
410 |
+
.ga_events_box_li_title {
|
411 |
+
font-weight: bold;
|
412 |
+
display: block;
|
413 |
+
}
|
414 |
+
|
415 |
+
.ga_events_box_li_icon {
|
416 |
+
margin-left: 20px;
|
417 |
+
float: left;
|
418 |
+
}
|
419 |
+
.ga_events_box_li_content {
|
420 |
+
display: inline-block;
|
421 |
+
float: left;
|
422 |
+
max-width: 315px;
|
423 |
+
}
|
424 |
+
|
425 |
+
.ga_events_box_list li {
|
426 |
+
height: 38px;
|
427 |
+
}
|
428 |
+
|
429 |
+
.ga_events_featurebox .btn {
|
430 |
+
float: right;
|
431 |
+
position: absolute;
|
432 |
+
bottom: 5px;
|
433 |
+
right: 5px;
|
434 |
+
margin-right: 10px;
|
435 |
+
margin-bottm: 5px;
|
436 |
+
background: #3498DC;
|
437 |
+
background-image: -webkit-linear-gradient(top, #3498DC, #3498DC);
|
438 |
+
background-image: -moz-linear-gradient(top, #3498DC, #3498DC);
|
439 |
+
background-image: -ms-linear-gradient(top, #3498DC, #3498DC);
|
440 |
+
background-image: -o-linear-gradient(top, #3498DC, #3498DC);
|
441 |
+
background-image: linear-gradient(to bottom, #3498DC, #3498DC);
|
442 |
+
-webkit-border-radius: 5px;
|
443 |
+
-moz-border-radius: 5px;
|
444 |
+
border-radius: 5px;
|
445 |
+
font-family: Arial;
|
446 |
+
color: #ffffff;
|
447 |
+
font-size: 16px;
|
448 |
+
padding: 10px 33px 10px 33px;
|
449 |
+
text-decoration: none;
|
450 |
+
}
|
451 |
+
|
452 |
+
.ga_events_featurebox .btn:hover {
|
453 |
+
background: #3cb0fd;
|
454 |
+
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
|
455 |
+
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
|
456 |
+
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
|
457 |
+
background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
|
458 |
+
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
|
459 |
+
text-decoration: none;
|
460 |
+
}
|
461 |
+
|
462 |
+
.ga_events_box_video .btn {
|
463 |
+
background: #E94D3D !important;
|
464 |
+
background: #E94D3D;
|
465 |
+
background-image: -webkit-linear-gradient(top, #E94D3D, #E94D3D);
|
466 |
+
background-image: -moz-linear-gradient(top, #E94D3D, #E94D3D);
|
467 |
+
background-image: -ms-linear-gradient(top, #E94D3D, #E94D3D);
|
468 |
+
background-image: -o-linear-gradient(top, #E94D3D, #E94D3D);
|
469 |
+
background-image: linear-gradient(to bottom, #E94D3D, #E94D3D);
|
470 |
+
}
|
471 |
+
|
472 |
+
.ga_events_box_video .btn:hover {
|
473 |
+
background: #E94D3D !important;
|
474 |
+
background: #E94D3D;
|
475 |
+
background-image: -webkit-linear-gradient(top, #E94D3D, #E94D3D);
|
476 |
+
background-image: -moz-linear-gradient(top, #E94D3D, #E94D3D);
|
477 |
+
background-image: -ms-linear-gradient(top, #E94D3D, #E94D3D);
|
478 |
+
background-image: -o-linear-gradient(top, #E94D3D, #E94D3D);
|
479 |
+
background-image: linear-gradient(to bottom, #E94D3D, #E94D3D);
|
480 |
+
}
|
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.4.
|
7 |
Author: Yuval Oren
|
8 |
Author URI: http://wpflow.com
|
9 |
License: GPLv2
|
@@ -41,6 +41,7 @@ require_once(plugin_dir_path(__FILE__) ."/includes/admin.php");
|
|
41 |
|
42 |
|
43 |
|
|
|
44 |
/*
|
45 |
* Plugin Activation
|
46 |
*/
|
@@ -83,7 +84,7 @@ add_action('init','ga_events_scripts');
|
|
83 |
|
84 |
function ga_events_scripts() {
|
85 |
wp_enqueue_script('jquery');
|
86 |
-
wp_enqueue_script('scrolldepth',plugins_url( '/js/ga-scroll-events.js', __FILE__) , array('jquery'), '2.4.
|
87 |
}
|
88 |
|
89 |
add_action( 'plugins_loaded', 'ga_events_setup');
|
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.4.4
|
7 |
Author: Yuval Oren
|
8 |
Author URI: http://wpflow.com
|
9 |
License: GPLv2
|
41 |
|
42 |
|
43 |
|
44 |
+
|
45 |
/*
|
46 |
* Plugin Activation
|
47 |
*/
|
84 |
|
85 |
function ga_events_scripts() {
|
86 |
wp_enqueue_script('jquery');
|
87 |
+
wp_enqueue_script('scrolldepth',plugins_url( '/js/ga-scroll-events.js', __FILE__) , array('jquery'), '2.4.4', false);
|
88 |
}
|
89 |
|
90 |
add_action( 'plugins_loaded', 'ga_events_setup');
|
images/bg_icon_pro_features.png
ADDED
Binary file
|
images/bg_icon_support.png
ADDED
Binary file
|
images/icon_block.png
ADDED
Binary file
|
images/icon_lock.png
ADDED
Binary file
|
images/icon_video.png
ADDED
Binary file
|
includes/admin.php
CHANGED
@@ -18,17 +18,20 @@ function ga_events_menu() {
|
|
18 |
}
|
19 |
|
20 |
function ga_events_settings_page() {
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
?>
|
23 |
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
|
24 |
<div id="ga_mainwrap">
|
25 |
-
<div id="ga_main" class="wrap">
|
26 |
<?php screen_icon( 'plugins' ); ?>
|
27 |
<h2>GA Scroll Events Plugin</h2>
|
28 |
|
29 |
-
<?php
|
30 |
-
$active_page = isset( $_GET[ 'page' ] ) ? $_GET[ 'page' ] : 'wp-google-analytics-events';
|
31 |
-
?>
|
32 |
<h2 class="nav-tab-wrapper">
|
33 |
<a href="?page=wp-google-analytics-events" class="nav-tab <?php echo $active_page == 'wp-google-analytics-events' ? 'nav-tab-active' : ''; ?>">General Settings</a>
|
34 |
<a href="?page=wp-google-analytics-events-click" class="nav-tab <?php echo $active_page == 'wp-google-analytics-events-click' ? 'nav-tab-active' : ''; ?>">Click Tracking</a>
|
@@ -50,7 +53,6 @@ function ga_events_settings_page() {
|
|
50 |
<form id="ga-events-settings-form" method="post" action='options.php'>
|
51 |
<?php settings_fields('ga_events_options'); ?>
|
52 |
<?php
|
53 |
-
$show_sidebar = true;
|
54 |
if ($active_page == 'wp-google-analytics-events-click') {
|
55 |
do_settings_sections('ga_events_click');
|
56 |
} else if ($active_page == 'wp-google-analytics-events-scroll') {
|
@@ -79,7 +81,7 @@ function ga_events_settings_page() {
|
|
79 |
<?php
|
80 |
if ($show_sidebar) {
|
81 |
?>
|
82 |
-
<div class="wrap ga_events_sidebar">
|
83 |
<table class="form-table widefat" >
|
84 |
<thead>
|
85 |
<th>Need More Features?</th>
|
@@ -92,7 +94,6 @@ function ga_events_settings_page() {
|
|
92 |
<li title="Dynamic Event Data"><i class="fa fa-check-square-o fa-lg"></i><strong>Placeholders</strong></li>
|
93 |
<li><i class="fa fa-check-square-o fa-lg"></i><strong>YouTube Video Tracking</strong></li>
|
94 |
<li><i class="fa fa-check-square-o fa-lg"></i><strong>Vimeo Video support</strong></li>
|
95 |
-
<li><i class="fa fa-check-square-o fa-lg"></i><strong>Set Value for Events</strong></li>
|
96 |
<li><i class="fa fa-check-square-o fa-lg"></i><strong>HTML Tag support</strong></li>
|
97 |
<li><i class="fa fa-check-square-o fa-lg"></i><strong>Pro Support</strong></li>
|
98 |
</ul>
|
@@ -113,8 +114,101 @@ function ga_events_settings_page() {
|
|
113 |
</table>
|
114 |
|
115 |
</div>
|
116 |
-
<?php }
|
117 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
</div> <!-- END #ga_mainwrap ->
|
119 |
<?php
|
120 |
} ?>
|
18 |
}
|
19 |
|
20 |
function ga_events_settings_page() {
|
21 |
+
$active_page = isset( $_GET[ 'page' ] ) ? $_GET[ 'page' ] : 'wp-google-analytics-events';
|
22 |
+
$wpgae_main_class = "ga_main_full_width";
|
23 |
+
$show_sidebar = false;
|
24 |
+
if ($active_page == 'wp-google-analytics-events') {
|
25 |
+
$wpgae_main_class= "ga_main_general_width";
|
26 |
+
$show_sidebar = true;
|
27 |
+
}
|
28 |
?>
|
29 |
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
|
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>
|
37 |
<a href="?page=wp-google-analytics-events-click" class="nav-tab <?php echo $active_page == 'wp-google-analytics-events-click' ? 'nav-tab-active' : ''; ?>">Click Tracking</a>
|
53 |
<form id="ga-events-settings-form" method="post" action='options.php'>
|
54 |
<?php settings_fields('ga_events_options'); ?>
|
55 |
<?php
|
|
|
56 |
if ($active_page == 'wp-google-analytics-events-click') {
|
57 |
do_settings_sections('ga_events_click');
|
58 |
} else if ($active_page == 'wp-google-analytics-events-scroll') {
|
81 |
<?php
|
82 |
if ($show_sidebar) {
|
83 |
?>
|
84 |
+
<div class="wrap ga_events_banner ga_events_sidebar">
|
85 |
<table class="form-table widefat" >
|
86 |
<thead>
|
87 |
<th>Need More Features?</th>
|
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>HTML Tag support</strong></li>
|
98 |
<li><i class="fa fa-check-square-o fa-lg"></i><strong>Pro Support</strong></li>
|
99 |
</ul>
|
114 |
</table>
|
115 |
|
116 |
</div>
|
117 |
+
<?php } else {
|
118 |
?>
|
119 |
+
<div class="wrap ga_events_banner ga_events_top">
|
120 |
+
<div class="ga_events_featurebox ga_events_box_general">
|
121 |
+
<div class="ga_events_box_title">
|
122 |
+
<span>
|
123 |
+
Become a Pro
|
124 |
+
</span>
|
125 |
+
</div>
|
126 |
+
<div class="ga_events_box_body">
|
127 |
+
<ul class="ga_events_box_list">
|
128 |
+
<li>
|
129 |
+
<div class="ga_events_box_li_icon">
|
130 |
+
<img src="<?php echo plugins_url( 'images/icon_block.png', dirname(__FILE__)) ?>" />
|
131 |
+
</div>
|
132 |
+
<div class="ga_events_box_li_content">
|
133 |
+
<span class="ga_events_box_li_title">Link Tracking</span>
|
134 |
+
<span class="ga_events_box_li_txt">Automatically track any link on your website</span>
|
135 |
+
</div>
|
136 |
+
</li>
|
137 |
+
<li>
|
138 |
+
<div class="ga_events_box_li_icon">
|
139 |
+
<img src="<?php echo plugins_url( 'images/icon_block.png', dirname(__FILE__)) ?>" />
|
140 |
+
</div>
|
141 |
+
<div class="ga_events_box_li_content">
|
142 |
+
<span class="ga_events_box_li_title">Placeholder Variables</span>
|
143 |
+
<span class="ga_events_box_li_txt">Include dynamic information in your events</span>
|
144 |
+
</div>
|
145 |
+
</li>
|
146 |
+
<li>
|
147 |
+
<div class="ga_events_box_li_icon">
|
148 |
+
<img src="<?php echo plugins_url( 'images/icon_block.png', dirname(__FILE__)) ?>" />
|
149 |
+
</div>
|
150 |
+
<div class="ga_events_box_li_content">
|
151 |
+
<span class="ga_events_box_li_title">HTML Tag support</span>
|
152 |
+
<span class="ga_events_box_li_txt">Add much more custom tags</span>
|
153 |
+
</div>
|
154 |
+
</li>
|
155 |
+
</ul>
|
156 |
+
</div>
|
157 |
+
<div>
|
158 |
+
<a class="btn" href="https://wpflow.com/upgrade/?utm_source=wpadmin&utm_medium=banner&utm_campaign=btng">Go Pro</a>
|
159 |
+
</div>
|
160 |
+
</div>
|
161 |
+
<div class="ga_events_featurebox ga_events_box_video">
|
162 |
+
<div class="ga_events_box_title">
|
163 |
+
<span>
|
164 |
+
Track Videos like a Pro
|
165 |
+
</span>
|
166 |
+
</div>
|
167 |
+
<div class="ga_events_box_body">
|
168 |
+
<ul class="ga_events_box_list">
|
169 |
+
<li>
|
170 |
+
<div class="ga_events_box_li_icon">
|
171 |
+
<img src="<?php echo plugins_url( 'images/icon_lock.png', dirname(__FILE__)) ?>" />
|
172 |
+
</div>
|
173 |
+
<div class="ga_events_box_li_content">
|
174 |
+
<span class="ga_events_box_li_title">YouTube Video Tracking</span>
|
175 |
+
<span class="ga_events_box_li_txt">Track all video play/stop events and make
|
176 |
+
smarter segments on how people watch your content.</span>
|
177 |
+
</div>
|
178 |
+
</li>
|
179 |
+
<li>
|
180 |
+
<div class="ga_events_box_li_icon" style="margin-top:10px">
|
181 |
+
<img src="<?php echo plugins_url( 'images/icon_lock.png', dirname(__FILE__)) ?>" />
|
182 |
+
</div>
|
183 |
+
<div class="ga_events_box_li_content" style="margin-top:10px">
|
184 |
+
<span class="ga_events_box_li_title">Vimeo Video support</span>
|
185 |
+
<span class="ga_events_box_li_txt">And yes, you can also track Vimeo videos</span>
|
186 |
+
</div>
|
187 |
+
</li>
|
188 |
+
</ul>
|
189 |
+
</div>
|
190 |
+
<a class="btn" href="https://wpflow.com/upgrade/?utm_source=wpadmin&utm_medium=banner&utm_campaign=btnv">Go Premium</a>
|
191 |
+
</div>
|
192 |
+
<div class="ga_events_featurebox ga_events_box_support">
|
193 |
+
<div class="ga_events_box_title">
|
194 |
+
<span>
|
195 |
+
Product Support
|
196 |
+
</span>
|
197 |
+
</div>
|
198 |
+
<div class="ga_events_box_body">
|
199 |
+
<ul class="ga_events_box_list">
|
200 |
+
<li>
|
201 |
+
<div class="ga_events_box_li_content">
|
202 |
+
<span class="ga_events_box_li_title" style="margin-left:40px;">Premium Support</span>
|
203 |
+
<span class="ga_events_box_li_txt" style="margin-left:40px;">Direct super-fast help from our dedicated support team</span>
|
204 |
+
</div>
|
205 |
+
</li>
|
206 |
+
</ul>
|
207 |
+
</div>
|
208 |
+
<a class="btn" href="https://wpflow.com/upgrade/?utm_source=wpadmin&utm_medium=banner&utm_campaign=btns">Get Pro Support</a>
|
209 |
+
</div>
|
210 |
+
</div>
|
211 |
+
<?php } ?>
|
212 |
</div> <!-- END #ga_mainwrap ->
|
213 |
<?php
|
214 |
} ?>
|
includes/functions.php
CHANGED
@@ -155,7 +155,7 @@ function extractEventData($event, $data){
|
|
155 |
$extracted = array();
|
156 |
switch ($event) {
|
157 |
case 'click':
|
158 |
-
$extracted =
|
159 |
$data['name'],
|
160 |
$data['type'],
|
161 |
$data['category'],
|
@@ -163,10 +163,10 @@ function extractEventData($event, $data){
|
|
163 |
$data['label'],
|
164 |
$data['interaction'],
|
165 |
$data['value']
|
166 |
-
|
167 |
break;
|
168 |
case 'divs':
|
169 |
-
$extracted =
|
170 |
$data['name'],
|
171 |
$data['type'],
|
172 |
$data['category'],
|
@@ -177,10 +177,10 @@ function extractEventData($event, $data){
|
|
177 |
// $data['tracktime'],
|
178 |
//$data['time']
|
179 |
|
180 |
-
|
181 |
break;
|
182 |
case 'youtube':
|
183 |
-
$extracted =
|
184 |
'title' => $data['title'],
|
185 |
'id' => $data['id'],
|
186 |
'id_type' => $data['type'],
|
@@ -188,10 +188,10 @@ function extractEventData($event, $data){
|
|
188 |
'pause' => $data['pause'],
|
189 |
'end' => $data['end'],
|
190 |
'quality' => $data['quality']
|
191 |
-
|
192 |
break;
|
193 |
case 'vimeo':
|
194 |
-
$extracted =
|
195 |
'title' => $data['title'],
|
196 |
'id' => $data['id'],
|
197 |
'id_type' => $data['type'],
|
@@ -199,7 +199,7 @@ function extractEventData($event, $data){
|
|
199 |
'pause' => $data['pause'],
|
200 |
'end' => $data['end'],
|
201 |
'skip' => $data['skip']
|
202 |
-
|
203 |
break;
|
204 |
|
205 |
default:
|
155 |
$extracted = array();
|
156 |
switch ($event) {
|
157 |
case 'click':
|
158 |
+
$extracted = array(
|
159 |
$data['name'],
|
160 |
$data['type'],
|
161 |
$data['category'],
|
163 |
$data['label'],
|
164 |
$data['interaction'],
|
165 |
$data['value']
|
166 |
+
);
|
167 |
break;
|
168 |
case 'divs':
|
169 |
+
$extracted = array(
|
170 |
$data['name'],
|
171 |
$data['type'],
|
172 |
$data['category'],
|
177 |
// $data['tracktime'],
|
178 |
//$data['time']
|
179 |
|
180 |
+
);
|
181 |
break;
|
182 |
case 'youtube':
|
183 |
+
$extracted = array(
|
184 |
'title' => $data['title'],
|
185 |
'id' => $data['id'],
|
186 |
'id_type' => $data['type'],
|
188 |
'pause' => $data['pause'],
|
189 |
'end' => $data['end'],
|
190 |
'quality' => $data['quality']
|
191 |
+
);
|
192 |
break;
|
193 |
case 'vimeo':
|
194 |
+
$extracted = array(
|
195 |
'title' => $data['title'],
|
196 |
'id' => $data['id'],
|
197 |
'id_type' => $data['type'],
|
199 |
'pause' => $data['pause'],
|
200 |
'end' => $data['end'],
|
201 |
'skip' => $data['skip']
|
202 |
+
);
|
203 |
break;
|
204 |
|
205 |
default:
|
includes/notice.php
CHANGED
@@ -18,7 +18,7 @@ function whatsnew_admin_notice__success() {
|
|
18 |
$user_id = $current_user->ID;
|
19 |
$was_ignored = get_user_meta($user_id, 'wpgae_whatsnew_ignore_notice', true);
|
20 |
/* Check that the user hasn't already clicked to ignore the message */
|
21 |
-
if (! $was_ignored ) {
|
22 |
echo '<div class="notice notice-success"><p>';
|
23 |
printf(__('Learn about what\'s new in <strong><a href="%s">WP Google Analytics Events</a></strong>'), 'admin.php?page=wp-google-analytics-events-whatsnew&wpgae_whatsnew_notify=1');
|
24 |
|
@@ -87,7 +87,7 @@ if ( ! function_exists( 'ga_events_review_notice' ) ) {
|
|
87 |
// Output the activation banner.
|
88 |
$nag_admin_dismiss_url = 'plugins.php?ga_events_review_dismiss=0';
|
89 |
$user_meta = get_user_meta( $user_id, 'ga_events_review_dismiss' );
|
90 |
-
if ( empty($user_meta) ) {
|
91 |
?>
|
92 |
<div class="update-nag">
|
93 |
|
18 |
$user_id = $current_user->ID;
|
19 |
$was_ignored = get_user_meta($user_id, 'wpgae_whatsnew_ignore_notice', true);
|
20 |
/* Check that the user hasn't already clicked to ignore the message */
|
21 |
+
if (! $was_ignored && current_user_can( 'manage_options' ) ) {
|
22 |
echo '<div class="notice notice-success"><p>';
|
23 |
printf(__('Learn about what\'s new in <strong><a href="%s">WP Google Analytics Events</a></strong>'), 'admin.php?page=wp-google-analytics-events-whatsnew&wpgae_whatsnew_notify=1');
|
24 |
|
87 |
// Output the activation banner.
|
88 |
$nag_admin_dismiss_url = 'plugins.php?ga_events_review_dismiss=0';
|
89 |
$user_meta = get_user_meta( $user_id, 'ga_events_review_dismiss' );
|
90 |
+
if ( empty($user_meta) && current_user_can( 'manage_options' ) ) {
|
91 |
?>
|
92 |
<div class="update-nag">
|
93 |
|
js/ga-scroll-events.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
-
* WP Googel Analytics Events | v2.4.
|
3 |
* Copyright (c) 2013 Yuval Oren (@yuvalo)
|
4 |
* License: GPLv2
|
5 |
*/
|
@@ -64,7 +64,7 @@ var scroll_events = (function ($) {
|
|
64 |
};
|
65 |
|
66 |
var click_event = function( event ){
|
67 |
-
|
68 |
track_event(event.data.category, event.data.action, event.data.label, event.data.universal, event.data.bounce, event.data.evalue);
|
69 |
var hasHref = event.currentTarget.href;
|
70 |
if (hasHref && hasHref !== "") {
|
@@ -125,9 +125,12 @@ var scroll_events = (function ($) {
|
|
125 |
|
126 |
var i;
|
127 |
for (i = 0; i < click_elements.length; i++) {
|
128 |
-
var clicked =
|
|
|
|
|
129 |
clicked.universal = universal;
|
130 |
-
|
|
|
131 |
}
|
132 |
|
133 |
|
1 |
/*!
|
2 |
+
* WP Googel Analytics Events | v2.4.4
|
3 |
* Copyright (c) 2013 Yuval Oren (@yuvalo)
|
4 |
* License: GPLv2
|
5 |
*/
|
64 |
};
|
65 |
|
66 |
var click_event = function( event ){
|
67 |
+
|
68 |
track_event(event.data.category, event.data.action, event.data.label, event.data.universal, event.data.bounce, event.data.evalue);
|
69 |
var hasHref = event.currentTarget.href;
|
70 |
if (hasHref && hasHref !== "") {
|
125 |
|
126 |
var i;
|
127 |
for (i = 0; i < click_elements.length; i++) {
|
128 |
+
var clicked = click_elements[i];
|
129 |
+
var selector = unescapeChars(clicked.select);
|
130 |
+
|
131 |
clicked.universal = universal;
|
132 |
+
//$(selector).on('click', clicked, click_event);
|
133 |
+
$('body').on('click', selector, clicked, click_event);
|
134 |
}
|
135 |
|
136 |
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== WP Google Analytics Events ===
|
2 |
Contributors: yuvalo, claconsay
|
3 |
Tags: analytics, google, events, ga, google analytics, tracking
|
4 |
-
Tested up to: 4.
|
5 |
-
Stable tag: 2.4.
|
6 |
License: GPLv2
|
7 |
Requires at least: 3.0
|
8 |
|
@@ -91,6 +91,12 @@ 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.4.3 =
|
95 |
1. Google Tag Manager Support
|
96 |
2. Updated User Interface
|
1 |
=== WP Google Analytics Events ===
|
2 |
Contributors: yuvalo, claconsay
|
3 |
Tags: analytics, google, events, ga, google analytics, tracking
|
4 |
+
Tested up to: 4.8
|
5 |
+
Stable tag: 2.4.4
|
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.4.4 =
|
95 |
+
1. Better support for tracking dynamic elements
|
96 |
+
2. Support for older versions of PHP
|
97 |
+
3. User interface fixes
|
98 |
+
|
99 |
+
|
100 |
= Version 2.4.3 =
|
101 |
1. Google Tag Manager Support
|
102 |
2. Updated User Interface
|