Changeset 1887028
- Timestamp:
- 06/04/2018 07:57:11 PM (8 years ago)
- Location:
- wp-scroll-depth/trunk
- Files:
-
- 6 edited
-
admin.php (modified) (5 diffs)
-
js/jquery-scrolldepth/jquery.scrolldepth.js (modified) (4 diffs)
-
js/jquery-scrolldepth/jquery.scrolldepth.min.js (modified) (1 diff)
-
privacy.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
-
wp-scroll-depth.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-scroll-depth/trunk/admin.php
r1390582 r1887028 69 69 function wp_scroll_depth_field_callback($args){ 70 70 global $wp_scroll_depth_vals; 71 $ui = $wp_scroll_depth_vals['ui_strings']; 71 72 $textwidth = 40; 72 73 $option_value = get_option($args['id'], $args['default']); … … 76 77 echo '<select id="' . $args['id'] . '" name="' . $args['id'] . '">'; 77 78 if ( 'true' == $option_value ){ 78 echo '<option value="true" selected> true</option>';79 echo '<option value="false"> false</option>';79 echo '<option value="true" selected>' . $ui['true'] . '</option>'; 80 echo '<option value="false">' . $ui['true'] . '</option>'; 80 81 } else { 81 echo '<option value="true"> true</option>';82 echo '<option value="false" selected> false</option>';82 echo '<option value="true">' . $ui['true'] . '</option>'; 83 echo '<option value="false" selected>' . $ui['true'] . '</option>'; 83 84 } 84 85 echo '</select>'; … … 110 111 function wp_scroll_depth_admin_menu(){ 111 112 global $wp_scroll_depth_vals; 113 $ui = $wp_scroll_depth_vals['ui_strings']; 112 114 113 115 add_options_page( 114 'Scroll Depth Options', // page_title116 'Scroll Depth ' . $ui['options_title'], // page_title 115 117 'ScrollDepth', // menu_title 116 118 'manage_options', // capability … … 122 124 function wp_scroll_depth_options_display() { 123 125 global $wp_scroll_depth_vals; 126 $ui = $wp_scroll_depth_vals['ui_strings']; 124 127 if ( !current_user_can( 'manage_options' ) ) { 125 wp_die( __( 'You do not have sufficient permissions to access this page.' ) );128 wp_die( __( 'You do not have sufficient permissions to access this page.', 'wp-scroll-depth' ) ); 126 129 } 127 echo '<div><h2>' .'WP - Scroll Depth Options'. '</h2>';130 echo '<div><h2>' .'WP - Scroll Depth ' . $ui['options_title'] . '</h2>'; 128 131 echo '<div class="wrap">'; 129 echo '<p>The WordPress Scroll Depth plugin uses the <a href="http://scrolldepth.parsnip.io/">jQuery Scroll Depth plugin</a> by Rob Flaherty</p>';130 echo '<p>You can pass parementers to jQuery.scrollDepth() by selecting options below:</p>';132 echo __('<p>The WordPress Scroll Depth plugin uses the <a href="http://scrolldepth.parsnip.io/">jQuery Scroll Depth plugin</a> by Rob Flaherty</p>', 'wp-scroll-depth'); 133 echo __('<p>You can pass parementers to jQuery.scrollDepth() by selecting options below:</p>', 'wp-scroll-depth'); 131 134 echo '</div>'; 132 135 … … 136 139 do_settings_sections($wp_scroll_depth_vals['pageslug'] ); 137 140 echo "<br />\n"; 138 submit_button(__('Save Changes' ));141 submit_button(__('Save Changes', 'wp-scroll-depth')); 139 142 echo '</form>'; 140 143 echo '</div>'; -
wp-scroll-depth/trunk/js/jquery-scrolldepth/jquery.scrolldepth.js
r1705922 r1887028 1 1 /*! 2 2 * @preserve 3 * jquery.scrolldepth.js | v1.0 3 * jquery.scrolldepth.js | v1.0-rx 4 4 * Copyright (c) 2016 Rob Flaherty (@robflaherty) 5 5 * Licensed under the MIT and GPL licenses. 6 * This incorporates the gtag modifications from jwahdatehagh 7 * https://github.com/robflaherty/jquery-scrolldepth/commit/794fc523df040be6ee2fb1e80a7ffc54e8906be2 6 8 */ 7 9 … … 45 47 classicGA, 46 48 gaGlobal, 49 globalSiteTag, 47 50 standardEventHandler; 48 51 … … 70 73 universalGA = true; 71 74 gaGlobal = options.gaGlobal; 75 } else if (typeof gtag === "function") { 76 globalSiteTag = true; 77 gaGlobal = 'gtag'; 72 78 } else if (typeof ga === "function") { 73 79 universalGA = true; … … 112 118 } 113 119 120 if (globalSiteTag) { 121 gtag('event', 'scroll_depth', { 122 'event_category': 'Scroll Depth', 123 'event_label': label, // was scroll_distance 124 'value': scrollDistance // was px_distance 125 }); 126 } 127 114 128 } else { 115 129 -
wp-scroll-depth/trunk/js/jquery-scrolldepth/jquery.scrolldepth.min.js
r1705922 r1887028 1 1 /*! 2 2 * @preserve 3 * jquery.scrolldepth.js | v1.0 3 * jquery.scrolldepth.js | v1.0-rx 4 4 * Copyright (c) 2016 Rob Flaherty (@robflaherty) 5 5 * Licensed under the MIT and GPL licenses. 6 * This incorporates the gtag modifications from jwahdatehagh 7 * https://github.com/robflaherty/jquery-scrolldepth/commit/794fc523df040be6ee2fb1e80a7ffc54e8906be2 6 8 */ 7 !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var n,t, r,o,i={minHeight:0,elements:[],percentage:!0,userTiming:!0,pixelDepth:!0,nonInteraction:!0,gaGlobal:!1,gtmOverride:!1,trackerName:!1,dataLayer:"dataLayer"},a=e(window),l=[],c=!1,u=0;return e.scrollDepth=function(p){function s(e,i,a,l){var c=p.trackerName?p.trackerName+".send":"send";o?(o({event:"ScrollDistance",eventCategory:"Scroll Depth",eventAction:e,eventLabel:i,eventValue:1,eventNonInteraction:p.nonInteraction}),p.pixelDepth&&arguments.length>2&&a>u&&(u=a,o({event:"ScrollDistance",eventCategory:"Scroll Depth",eventAction:"Pixel Depth",eventLabel:d(a),eventValue:1,eventNonInteraction:p.nonInteraction})),p.userTiming&&arguments.length>3&&o({event:"ScrollTiming",eventCategory:"Scroll Depth",eventAction:e,eventLabel:i,eventTiming:l})):(n&&(window[r](c,"event","Scroll Depth",e,i,1,{nonInteraction:p.nonInteraction}),p.pixelDepth&&arguments.length>2&&a>u&&(u=a,window[r](c,"event","Scroll Depth","Pixel Depth",d(a),1,{nonInteraction:p.nonInteraction})),p.userTiming&&arguments.length>3&&window[r](c,"timing","Scroll Depth",e,l,i)),t&&(_gaq.push(["_trackEvent","Scroll Depth",e,i,1,p.nonInteraction]),p.pixelDepth&&arguments.length>2&&a>u&&(u=a,_gaq.push(["_trackEvent","Scroll Depth","Pixel Depth",d(a),1,p.nonInteraction])),p.userTiming&&arguments.length>3&&_gaq.push(["_trackTiming","Scroll Depth",e,l,i,100])))}function h(e){return{"25%":parseInt(.25*e,10),"50%":parseInt(.5*e,10),"75%":parseInt(.75*e,10),"100%":e-5}}function g(n,t,r){e.each(n,function(n,o){-1===e.inArray(n,l)&&t>=o&&(s("Percentage",n,t,r),l.push(n))})}function f(n,t,r){e.each(n,function(n,o){-1===e.inArray(o,l)&&e(o).length&&t>=e(o).offset().top&&(s("Elements",o,t,r),l.push(o))})}function d(e){return(250*Math.floor(e/250)).toString()}function m(){y()}function v(e,n){var t,r,o,i=null,a=0,l=function(){a=new Date,i=null,o=e.apply(t,r)};return function(){var c=new Date;a||(a=c);var u=n-(c-a);return t=this,r=arguments,0>=u?(clearTimeout(i),i=null,a=c,o=e.apply(t,r)):i||(i=setTimeout(l,u)),o}}function y(){c=!0,a.on("scroll.scrollDepth",v(function(){var n=e(document).height(),t=window.innerHeight?window.innerHeight:a.height(),r=a.scrollTop()+t,o=h(n),i=+new Date-D;return l.length>=p.elements.length+(p.percentage?4:0)?(a.off("scroll.scrollDepth"),void(c=!1)):(p.elements&&f(p.elements,r,i),void(p.percentage&&g(o,r,i)))},500))}var D=+new Date;p=e.extend({},i,p),e(document).height()<p.minHeight||(p.gaGlobal?(n=!0,r=p.gaGlobal):"function"==typeof ga?(n=!0,r="ga"):"function"==typeof __gaTracker&&(n=!0,r="__gaTracker"),"undefined"!=typeof _gaq&&"function"==typeof _gaq.push&&(t=!0),"function"==typeof p.eventHandler?o=p.eventHandler:"undefined"==typeof window[p.dataLayer]||"function"!=typeof window[p.dataLayer].push||p.gtmOverride||(o=function(e){window[p.dataLayer].push(e)}),e.scrollDepth.reset=function(){l=[],u=0,a.off("scroll.scrollDepth"),y()},e.scrollDepth.addElements=function(n){"undefined"!=typeof n&&e.isArray(n)&&(e.merge(p.elements,n),c||y())},e.scrollDepth.removeElements=function(n){"undefined"!=typeof n&&e.isArray(n)&&e.each(n,function(n,t){var r=e.inArray(t,p.elements),o=e.inArray(t,l);-1!=r&&p.elements.splice(r,1),-1!=o&&l.splice(o,1)})},m())},e.scrollDepth});9 !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var n,t,o,r,i,l={minHeight:0,elements:[],percentage:!0,userTiming:!0,pixelDepth:!0,nonInteraction:!0,gaGlobal:!1,gtmOverride:!1,trackerName:!1,dataLayer:"dataLayer"},a=e(window),c=[],p=!1,u=0;return e.scrollDepth=function(h){var g=+new Date;function s(e,l,a,c){var p=h.trackerName?h.trackerName+".send":"send";i?(i({event:"ScrollDistance",eventCategory:"Scroll Depth",eventAction:e,eventLabel:l,eventValue:1,eventNonInteraction:h.nonInteraction}),h.pixelDepth&&arguments.length>2&&a>u&&(u=a,i({event:"ScrollDistance",eventCategory:"Scroll Depth",eventAction:"Pixel Depth",eventLabel:f(a),eventValue:1,eventNonInteraction:h.nonInteraction})),h.userTiming&&arguments.length>3&&i({event:"ScrollTiming",eventCategory:"Scroll Depth",eventAction:e,eventLabel:l,eventTiming:c}),r&>ag("event","scroll_depth",{event_category:"Scroll Depth",event_label:l,value:a})):(n&&(window[o](p,"event","Scroll Depth",e,l,1,{nonInteraction:h.nonInteraction}),h.pixelDepth&&arguments.length>2&&a>u&&(u=a,window[o](p,"event","Scroll Depth","Pixel Depth",f(a),1,{nonInteraction:h.nonInteraction})),h.userTiming&&arguments.length>3&&window[o](p,"timing","Scroll Depth",e,c,l)),t&&(_gaq.push(["_trackEvent","Scroll Depth",e,l,1,h.nonInteraction]),h.pixelDepth&&arguments.length>2&&a>u&&(u=a,_gaq.push(["_trackEvent","Scroll Depth","Pixel Depth",f(a),1,h.nonInteraction])),h.userTiming&&arguments.length>3&&_gaq.push(["_trackTiming","Scroll Depth",e,c,l,100])))}function f(e){return(250*Math.floor(e/250)).toString()}function v(){var n,t,o,r,i,l,u,f;p=!0,a.on("scroll.scrollDepth",(n=function(){var n=e(document).height(),t=window.innerHeight?window.innerHeight:a.height(),o=a.scrollTop()+t,r=function(e){return{"25%":parseInt(.25*e,10),"50%":parseInt(.5*e,10),"75%":parseInt(.75*e,10),"100%":e-5}}(n),i=+new Date-g;if(c.length>=h.elements.length+(h.percentage?4:0))return a.off("scroll.scrollDepth"),void(p=!1);h.elements&&function(n,t,o){e.each(n,function(n,r){-1===e.inArray(r,c)&&e(r).length&&t>=e(r).offset().top&&(s("Elements",r,t,o),c.push(r))})}(h.elements,o,i),h.percentage&&function(n,t,o){e.each(n,function(n,r){-1===e.inArray(n,c)&&t>=r&&(s("Percentage",n,t,o),c.push(n))})}(r,o,i)},t=500,l=null,u=0,f=function(){u=new Date,l=null,i=n.apply(o,r)},function(){var e=new Date;u||(u=e);var a=t-(e-u);return o=this,r=arguments,a<=0?(clearTimeout(l),l=null,u=e,i=n.apply(o,r)):l||(l=setTimeout(f,a)),i}))}h=e.extend({},l,h),e(document).height()<h.minHeight||(h.gaGlobal?(n=!0,o=h.gaGlobal):"function"==typeof gtag?(r=!0,o="gtag"):"function"==typeof ga?(n=!0,o="ga"):"function"==typeof __gaTracker&&(n=!0,o="__gaTracker"),"undefined"!=typeof _gaq&&"function"==typeof _gaq.push&&(t=!0),"function"==typeof h.eventHandler?i=h.eventHandler:void 0===window[h.dataLayer]||"function"!=typeof window[h.dataLayer].push||h.gtmOverride||(i=function(e){window[h.dataLayer].push(e)}),e.scrollDepth.reset=function(){c=[],u=0,a.off("scroll.scrollDepth"),v()},e.scrollDepth.addElements=function(n){void 0!==n&&e.isArray(n)&&(e.merge(h.elements,n),p||v())},e.scrollDepth.removeElements=function(n){void 0!==n&&e.isArray(n)&&e.each(n,function(n,t){var o=e.inArray(t,h.elements),r=e.inArray(t,c);-1!=o&&h.elements.splice(o,1),-1!=r&&c.splice(r,1)})},v())},e.scrollDepth}); -
wp-scroll-depth/trunk/privacy.php
r1879421 r1887028 11 11 function wp_scroll_depth_privacy_delarations() { 12 12 return 13 '<h2>' . __( 'User interaction information is sent to a third party' ) . '</h2>' .14 '<p>' . __( 'This site monitors what content is visible in a visitor\'s browser and sends that data to Google Analytics so that we can improve our content and layout. ' ) . '</p>';13 '<h2>' . __( 'User interaction information is sent to a third party' , 'wp-scroll-depth') . '</h2>' . 14 '<p>' . __( 'This site monitors what content is visible in a visitor\'s browser and sends that data to Google Analytics so that we can improve our content and layout. ' , 'wp-scroll-depth') . '</p>'; 15 15 } 16 16 /** -
wp-scroll-depth/trunk/readme.txt
r1879421 r1887028 4 4 Requires at least: 3.2.1 5 5 Tested up to: 4.9.6 6 Stable tag: 1. 4.26 Stable tag: 1.5.0 7 7 License: MIT 8 8 License URI: http://opensource.org/licenses/MIT … … 14 14 15 15 Google Analytics doesn't capture user scrolling information by default. This could be very important information if you have tall, scrolling, pages. Scroll Depth sends this information as Google Analytics events. 16 *Update:* Google Tag Manager now includes Scroll Depth and Element Visibility triggers. 16 *Update:* Google Tag Manager now includes Scroll Depth and Element Visibility triggers. If you are running GTM, you don't really need this plugin. 17 17 18 18 From the Scroll Depth website: … … 22 22 23 23 More information about Scroll Depth can be found in [the Scroll Depth documentation](http://scrolldepth.parsnip.io/). 24 This version incorporates support for the new (Feb 2018) "gtag" Google Analytics snippet [courtesy of Jalil Wahdatehagh](https://github.com/robflaherty/jquery-scrolldepth/commit/794fc523df040be6ee2fb1e80a7ffc54e8906be2). 25 This code has been modified to more closely match the event structure used by the other GA implementations. 24 26 25 27 ### Features: … … 90 92 == Changelog == 91 93 94 = 1.5.0 = 95 - Updated localization hooks for string constants 96 - Incorporated support for gtag version of Google Analytics 97 92 98 = 1.4.2 = 93 99 - Tested with WordPress 4.9.6 -
wp-scroll-depth/trunk/wp-scroll-depth.php
r1879421 r1887028 1 1 <?php 2 2 /* 3 Plugin Name: WP Scroll Depth 4 Plugin URI: http://firebrand.net/ 5 Description: Load the jQuery plugin, "Scroll Depth" by Rob Flaherty. This creates scrolling events for Google Analytics. 6 Version: 1.4.2 7 Author: Lon Koenig (Firebrand LLC) 8 Author URI: http://firebrand.net/ 9 License: MIT 3 * Plugin Name: WP Scroll Depth 4 * Plugin URI: http://firebrand.net/ 5 * Description: Load the jQuery plugin, "Scroll Depth" by Rob Flaherty. This creates scrolling events for Google Analytics. 6 * Version: 1.5.0 7 * Text Domain: wp-scroll-depth 8 * Domain Path: /languages 9 * Author: Lon Koenig (Firebrand LLC) 10 * Author URI: http://firebrand.net/ 11 * License: MIT 10 12 */ 11 13 … … 38 40 'option_fields' => array( 39 41 'minHeight' => array( 40 'name' => 'Minimum Scroll Height', 41 'note' => 'This lets you disable scroll tracking for documents that don\'t meet a height requirement. "Only track scroll events for documents taller than 2000px." <br />The default setting is 0 (all pages are tracked). <br />This is an integer count in pixels', 42 /* translators: Label for integer value input field where users enter miniumum height in pixels */ 43 'name' => __('Minimum Scroll Height', 'wp-scroll-depth'), 44 'note' => __('This lets you disable scroll tracking for documents that don\'t meet a height requirement. "Only track scroll events for documents taller than 2000px." <br />The default setting is 0 (all pages are tracked). <br />This is an integer count in pixels', 'wp-scroll-depth'), 42 45 'type' => 'numeric', 43 46 'default' => '0'), 44 47 45 48 'elements' => array( 46 'name' => 'Elements to track', 47 'note' => 'This lets you record scroll events for specific elements on the page. "Track when the footer is scrolled into view." . <br /> 48 You may track multiple elements; just separated them by commas. Do not use quotes. <br />Example: <em>#colophon</em>', 49 /* translators: Label for input field where users enter element IDs */ 50 'name' => __('Elements to track', 'wp-scroll-depth'), 51 'note' => __('This lets you record scroll events for specific elements on the page. "Track when the footer is scrolled into view." . <br /> 52 You may track multiple elements; just separated them by commas. Do not use quotes. <br />Example: <em>#colophon</em>', 'wp-scroll-depth'), 49 53 'type' => 'list', 50 54 'default' => '' … … 52 56 53 57 'percentage' => array( 54 'name' => 'Percentage', 55 'note' => 'If you want to turn off scroll percentage tracking and track only the DOM elements you specify in the elements option, set this to false. <br />The default setting is true.', 58 /* translators: Label for percentage value input field */ 59 'name' => __('Percentage', 'wp-scroll-depth'), 60 'note' => __('If you want to turn off scroll percentage tracking and track only the DOM elements you specify in the elements option, set this to false. <br />The default setting is true.', 'wp-scroll-depth'), 56 61 'type' => 'bool', 57 62 'default'=> 'true', … … 59 64 60 65 'userTiming' => array( 61 'name' => 'Send Timing Events', 62 'note' => 'You can turn off User Timing events by setting this to false. <br />The default setting is true.', 66 /* translators: Label for true/false selector */ 67 'name' => __('Send Timing Events', 'wp-scroll-depth'), 68 'note' => __('You can turn off User Timing events by setting this to false. <br />The default setting is true.', 'wp-scroll-depth'), 63 69 'type' => 'bool', 64 70 'default' => 'true', … … 66 72 67 73 'pixelDepth' => array( 68 'name' => 'Pixel Depth', 69 'note' => 'You can turn off Pixel Depth events by setting this to false. <br />The default setting is true.', 74 /* translators: Label for true/false selector */ 75 'name' => __('Pixel Depth', 'wp-scroll-depth'), 76 'note' => __('You can turn off Pixel Depth events by setting this to false. <br />The default setting is true.', 'wp-scroll-depth'), 70 77 'type' => 'bool', 71 78 'default' => 'false' … … 74 81 'nonInteraction' => array( 75 82 'name' => 'nonInteraction', 76 'note' => 'By default, Scroll Depth events use nonInteraction=true, which means that scroll events will not impact your bounce rate. Change this option to false if you consider scrolling an activity that negates a bounce. Read more about <a href="http://analytics.blogspot.com/2011/10/non-interaction-events-wait-what.html">non-interactive events</a>.',83 'note' => __('By default, Scroll Depth events use nonInteraction=true, which means that scroll events will not impact your bounce rate. Change this option to false if you consider scrolling an activity that negates a bounce. Read more about <a href="http://analytics.blogspot.com/2011/10/non-interaction-events-wait-what.html">non-interactive events</a>.', 'wp-scroll-depth'), 77 84 'type' => 'bool', 78 85 'default' => 'false' … … 81 88 'gtmOverride' => array( 82 89 'name' => 'gtmOverride', 83 'note' => 'By default, if Scroll Depth detects Google Tag Manager it assumes that you’re using it for your GA implementation. If you’re using GTM but not using it for GA then you can set this option to true and Scroll Depth will ignore GTM.',90 'note' => __('By default, if Scroll Depth detects Google Tag Manager it assumes that you’re using it for your GA implementation. If you’re using GTM but not using it for GA then you can set this option to true and Scroll Depth will ignore GTM.', 'wp-scroll-depth'), 84 91 'type' => 'bool', 85 92 'default' => 'false' … … 88 95 'gaGlobal' => array( 89 96 'name' => 'gaGlobal', 90 'note' => 'Use this option if you’re using Universal Analytics and have changed the global object name from the default "ga". Note: Scroll Depth automatically supports the common custom object name, "__gaTracker".',97 'note' => __('Use this option if you’re using Universal Analytics and have changed the global object name from the default "ga". Note: Scroll Depth automatically supports the common custom object name, "__gaTracker".', 'wp-scroll-depth'), 91 98 'type' => 'string', 92 99 'default' => '' … … 94 101 95 102 'eventHandler' => array( 96 'name' => 'Event Handler', 97 'note' => 'If you’d like to use Scroll Depth with something other than Google Analytics you can use this option to define a callback.<br /> 103 /* translators: Label for input field where user can enter JavaScript event handler - might be best to leave this */ 104 'name' => __('Event Handler', 'wp-scroll-depth'), 105 'note' => __('If you’d like to use Scroll Depth with something other than Google Analytics you can use this option to define a callback.<br /> 98 106 <em>Note:</em> If you use this option it will override the default event handler and events will not be sent to Google Analytics.<br /> 99 107 Check the <a href="http://scrolldepth.parsnip.io/">docs</a> for more information.<br /> 100 <em>Example:</em> 108 <em>Example:</em>', 'wp-scroll-depth') . ' 101 109 <code style="white-space: pre;"> 102 110 function(data) { … … 116 124 'admin_group' => 'wp_scroll_depth_group', 117 125 'section_id' => 'wp_scroll_depth_section', 118 'version' => '1.4.0' 126 'version' => '1.5.0', 127 'ui_strings' => array( 128 'true' => __('true', 'wp-scroll-depth'), 129 'false' => __('false', 'wp-scroll-depth'), 130 'options_title' => __('Options', 'wp-scroll-depth'), 131 132 133 ) 119 134 ); 120 135
Note: See TracChangeset
for help on using the changeset viewer.