WP Google Analytics Events - Version 2.1

Version Description

Download this release

Release Info

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

Code changes from version 2.0 to 2.1

Files changed (4) hide show
  1. css/style.css +3 -2
  2. ga-scroll-event.php +2 -2
  3. includes/admin.php +1 -1
  4. readme.txt +50 -5
css/style.css CHANGED
@@ -1,6 +1,7 @@
1
  #ga_main {
2
  float:left;
3
  display: block;
 
4
  }
5
  #ga_main th {
6
  /*min-width:100px;*/
@@ -184,7 +185,7 @@ a.btn_close_popup img {
184
  top: 11px;
185
  }
186
 
187
- @media only screen and (max-width: 1440px) {
188
 
189
  /* Force table to not be like tables anymore */
190
  #ga-events-inputs table,
@@ -236,4 +237,4 @@ a.btn_close_popup img {
236
  .ga-events-help {
237
  margin-right: 2px;
238
  color: #0085ba;
239
- }
1
  #ga_main {
2
  float:left;
3
  display: block;
4
+ max-width: 900px;
5
  }
6
  #ga_main th {
7
  /*min-width:100px;*/
185
  top: 11px;
186
  }
187
 
188
+ @media only screen and (max-width: 1024px) {
189
 
190
  /* Force table to not be like tables anymore */
191
  #ga-events-inputs table,
237
  .ga-events-help {
238
  margin-right: 2px;
239
  color: #0085ba;
240
+ }
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.0
7
  Author: Yuval Oren
8
  Author URI: http://wpflow.com
9
  License: GPLv2
@@ -85,7 +85,7 @@ function ga_events_header() {
85
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
86
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
87
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
88
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
89
 
90
  <?php echo (isset($options['anonymizeip']) && $options['anonymizeip']) ? "ga('create','$id', '$domain', {anonymizeIp: true});" : "ga('create','$id', '$domain');";?>
91
  ga('send', 'pageview');
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.1
7
  Author: Yuval Oren
8
  Author URI: http://wpflow.com
9
  License: GPLv2
85
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
86
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
87
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
88
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
89
 
90
  <?php echo (isset($options['anonymizeip']) && $options['anonymizeip']) ? "ga('create','$id', '$domain', {anonymizeIp: true});" : "ga('create','$id', '$domain');";?>
91
  ga('send', 'pageview');
includes/admin.php CHANGED
@@ -39,7 +39,7 @@ function ga_events_settings_page() {
39
  } else {
40
  ?>
41
 
42
- <form method="post" action='options.php'>
43
  <?php settings_fields('ga_events_options'); ?>
44
  <?php
45
  $show_sidebar = true;
39
  } else {
40
  ?>
41
 
42
+ <form id="ga-events-settings-form" method="post" action='options.php'>
43
  <?php settings_fields('ga_events_options'); ?>
44
  <?php
45
  $show_sidebar = true;
readme.txt CHANGED
@@ -2,27 +2,69 @@
2
  Contributors: yuvalo
3
  Tags: analytics, google, events, ga, google analytics, tracking
4
  Tested up to: 4.5
5
- Stable tag: 2.0
6
  License: GPLv2
7
  Requires at least: 3.0
8
 
9
  Track Google Analytics Events on your website - Enables you to send an event when a user Scrolls or Click an element on your website.
10
  == Description ==
11
- The WP Google Analytics Events plugin allows you to send events to Google Analytics for:
 
12
  1. A user scrolls to a point of interest on your site
13
- 2. Clicking elements on the page, such as a Video play button or an Ajax submit form.
14
 
15
  For example, create a Google Analytics event when a visitor scrolled down and viewed your pricing table. Track Video Plays and banner clicks.
16
  Get to know what your visitors are doing on the website.
17
 
18
- The plugin also supports the new Universal Tracking code by Google.
19
 
20
 
21
- http://www.youtube.com/watch?v=UP8mfuV9huI
 
 
 
 
 
 
22
 
 
 
 
 
 
 
 
 
 
23
 
24
  [Plugin Documentation](http://wpflow.com/documentation/ "Documentation")
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  == Installation ==
27
  Add the plugin by uploading the zip file or by installing it from the Wordpress Plugin directory.
28
  Activate the plugin and go to the WP Google Analytics Settings page.
@@ -39,6 +81,9 @@ http://www.youtube.com/watch?v=UP8mfuV9huI
39
  2. Google Analytics real time events screenshot-2.png
40
  == Changelog ==
41
  = Version 2.0 =
 
 
 
42
  1. IP Anonimization
43
  2. Link Issues
44
  = Version 1.9 =
2
  Contributors: yuvalo
3
  Tags: analytics, google, events, ga, google analytics, tracking
4
  Tested up to: 4.5
5
+ Stable tag: 2.1
6
  License: GPLv2
7
  Requires at least: 3.0
8
 
9
  Track Google Analytics Events on your website - Enables you to send an event when a user Scrolls or Click an element on your website.
10
  == Description ==
11
+ The WP Google Analytics Events plugin allows you to send events to Google Analytics when:
12
+
13
  1. A user scrolls to a point of interest on your site
14
+ 2. Clicking elements on the page, such as buttons or Ajax submit forms.
15
 
16
  For example, create a Google Analytics event when a visitor scrolled down and viewed your pricing table. Track Video Plays and banner clicks.
17
  Get to know what your visitors are doing on the website.
18
 
19
+ And best of all - No Coding Required
20
 
21
 
22
+ https://www.youtube.com/watch?v=5jKWlRiwKzU
23
+
24
+ Events were introduced by Google Analytics to allow tracking of custom metrics that were not based on page views.
25
+ Tracking events is usually done by writing JavaScript code, and that is not the WordPress way.
26
+ We created this plugin, so you can use this feature without writing a line of code.
27
+
28
+ There are many benefits for using events, and you can get very creative:
29
 
30
+ 1. Setting event-driven goals in Google Analytics
31
+ 2. Tracking in page navigation
32
+ 3. Comparing call to action button performance
33
+ 4. Understanding what percentage of your visitors got to the end of an article
34
+ 5. Tracking contact form submissions
35
+ 6. Track Links
36
+
37
+
38
+ If you want to learn more about Event Tracking or how to use this plugin, visit our documentation page here -
39
 
40
  [Plugin Documentation](http://wpflow.com/documentation/ "Documentation")
41
 
42
+ == FAQ ==
43
+ ## Where can I see the events in Google Analytics?
44
+ There are two places that show events in GA -
45
+
46
+ 1. The real-time dashboard under "events" - An event should show up here in (almost) real-time.
47
+ 2. The full report can be found under "Behavior" -> "Events". Note that it can take up to 24 hours to show up in this section.
48
+
49
+ ## Do I have to write any code to use this plugin?
50
+ Don't be silly. This is why we made this plugin. But on a serious note, this could get a little technical so take a look at our [Plugin Documentation](http://wpflow.com/documentation/ "Documentation") page.
51
+
52
+ ## What are some examples of using events?
53
+ There are many benefits of using events, and you can get very creative:
54
+
55
+ 1. Setting event-driven goals in Google Analytics
56
+ 2. Tracking in page navigation
57
+ 3. Comparing call to action button performance
58
+ 4. Understanding what percentage of your visitors got to the end of an article
59
+ 5. Tracking contact form submissions
60
+ 6. Track Links
61
+
62
+
63
+ ## I'm stuck and need support
64
+ You can always use the support tab to open a ticket.
65
+ Please note that while we do our best to answer your questions, we don't check this forum every day.
66
+ If you are looking for more in-depth support, we encourage you to check out [WP Google Analytics Events Pro](http://wpflow.com/upgrade/ "Upgrade to WP Google Analytics Events Pro").
67
+
68
  == Installation ==
69
  Add the plugin by uploading the zip file or by installing it from the Wordpress Plugin directory.
70
  Activate the plugin and go to the WP Google Analytics Settings page.
81
  2. Google Analytics real time events screenshot-2.png
82
  == Changelog ==
83
  = Version 2.0 =
84
+ 1. Minor bug fixes
85
+ 2. New intro video
86
+ = Version 2.0 =
87
  1. IP Anonimization
88
  2. Link Issues
89
  = Version 1.9 =