Plugin Directory

Changeset 1887028


Ignore:
Timestamp:
06/04/2018 07:57:11 PM (8 years ago)
Author:
firebrandllc
Message:

added translation .pot and updated JavaScript to work with gtag

Location:
wp-scroll-depth/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wp-scroll-depth/trunk/admin.php

    r1390582 r1887028  
    6969function wp_scroll_depth_field_callback($args){
    7070    global $wp_scroll_depth_vals;
     71    $ui = $wp_scroll_depth_vals['ui_strings'];
    7172    $textwidth = 40;
    7273    $option_value = get_option($args['id'], $args['default']);
     
    7677            echo '<select id="' . $args['id'] . '" name="' . $args['id'] . '">';
    7778            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>';
    8081            } 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>';
    8384            }
    8485            echo '</select>';
     
    110111function wp_scroll_depth_admin_menu(){
    111112    global $wp_scroll_depth_vals;
     113    $ui = $wp_scroll_depth_vals['ui_strings'];
    112114
    113115    add_options_page(
    114         'Scroll Depth Options', // page_title
     116        'Scroll Depth ' . $ui['options_title'], // page_title
    115117        'ScrollDepth', // menu_title
    116118        'manage_options', // capability
     
    122124function wp_scroll_depth_options_display() {
    123125    global $wp_scroll_depth_vals;
     126    $ui = $wp_scroll_depth_vals['ui_strings'];
    124127    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' ) );
    126129    }
    127     echo '<div><h2>' .'WP - Scroll Depth Options' . '</h2>';
     130    echo '<div><h2>' .'WP - Scroll Depth ' . $ui['options_title'] . '</h2>';
    128131    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');
    131134    echo '</div>';
    132135
     
    136139    do_settings_sections($wp_scroll_depth_vals['pageslug'] );
    137140    echo "<br />\n";
    138     submit_button(__('Save Changes'));
     141    submit_button(__('Save Changes', 'wp-scroll-depth'));
    139142    echo '</form>';
    140143    echo '</div>';
  • wp-scroll-depth/trunk/js/jquery-scrolldepth/jquery.scrolldepth.js

    r1705922 r1887028  
    11/*!
    22 * @preserve
    3  * jquery.scrolldepth.js | v1.0
     3 * jquery.scrolldepth.js | v1.0-rx
    44 * Copyright (c) 2016 Rob Flaherty (@robflaherty)
    55 * Licensed under the MIT and GPL licenses.
     6 * This incorporates the gtag modifications from jwahdatehagh
     7 * https://github.com/robflaherty/jquery-scrolldepth/commit/794fc523df040be6ee2fb1e80a7ffc54e8906be2
    68 */
    79
     
    4547      classicGA,
    4648      gaGlobal,
     49      globalSiteTag,
    4750      standardEventHandler;
    4851
     
    7073        universalGA = true;
    7174        gaGlobal = options.gaGlobal;
     75      } else if (typeof gtag === "function") {
     76        globalSiteTag = true;
     77        gaGlobal = 'gtag';
    7278      } else if (typeof ga === "function") {
    7379        universalGA = true;
     
    112118          }
    113119
     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         
    114128        } else {
    115129
  • wp-scroll-depth/trunk/js/jquery-scrolldepth/jquery.scrolldepth.min.js

    r1705922 r1887028  
    11/*!
    22 * @preserve
    3  * jquery.scrolldepth.js | v1.0
     3 * jquery.scrolldepth.js | v1.0-rx
    44 * Copyright (c) 2016 Rob Flaherty (@robflaherty)
    55 * Licensed under the MIT and GPL licenses.
     6 * This incorporates the gtag modifications from jwahdatehagh
     7 * https://github.com/robflaherty/jquery-scrolldepth/commit/794fc523df040be6ee2fb1e80a7ffc54e8906be2
    68 */
    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&&gtag("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  
    1111function wp_scroll_depth_privacy_delarations() {
    1212    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>';
    1515}
    1616/**
  • wp-scroll-depth/trunk/readme.txt

    r1879421 r1887028  
    44Requires at least: 3.2.1
    55Tested up to: 4.9.6
    6 Stable tag: 1.4.2
     6Stable tag: 1.5.0
    77License: MIT
    88License URI: http://opensource.org/licenses/MIT
     
    1414
    1515Google 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.
    1717
    1818From the Scroll Depth website:
     
    2222
    2323More information about Scroll Depth can be found in [the Scroll Depth documentation](http://scrolldepth.parsnip.io/).
     24This version incorporates support for the new (Feb 2018) "gtag" Google Analytics snippet [courtesy of Jalil Wahdatehagh](https://github.com/robflaherty/jquery-scrolldepth/commit/794fc523df040be6ee2fb1e80a7ffc54e8906be2).
     25This code has been modified to more closely match the event structure used by the other GA implementations.
    2426
    2527### Features:
     
    9092== Changelog ==
    9193
     94= 1.5.0 =
     95- Updated localization hooks for string constants
     96- Incorporated support for gtag version of Google Analytics
     97
    9298= 1.4.2 =
    9399- Tested with WordPress 4.9.6
  • wp-scroll-depth/trunk/wp-scroll-depth.php

    r1879421 r1887028  
    11<?php
    22/*
    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
    1012*/
    1113
     
    3840        'option_fields' => array(
    3941            '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'),
    4245                'type' => 'numeric',
    4346                'default' => '0'),
    4447               
    4548            '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'),
    4953                'type' => 'list',
    5054                'default' => ''
     
    5256           
    5357            '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'),
    5661                'type' => 'bool',
    5762                'default'=> 'true',
     
    5964           
    6065            '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'),
    6369                'type' => 'bool',
    6470                'default' => 'true',
     
    6672           
    6773            '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'),
    7077                'type' => 'bool',
    7178                'default' => 'false'
     
    7481            'nonInteraction' => array(
    7582                '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'),
    7784                'type' => 'bool',
    7885                'default' => 'false'
     
    8188            'gtmOverride' => array(
    8289                'name' => 'gtmOverride',
    83                 'note' => 'By default, if Scroll Depth detects Google Tag Manager it assumes that you&rsquo;re using it for your GA implementation. If you&rsquo;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&rsquo;re using it for your GA implementation. If you&rsquo;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'),
    8491                'type' => 'bool',
    8592                'default' => 'false'
     
    8895            'gaGlobal' => array(
    8996                'name' => 'gaGlobal',
    90                 'note' => 'Use this option if you&rsquo;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&rsquo;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'),
    9198                'type' => 'string',
    9299                'default' => ''
     
    94101           
    95102            'eventHandler' => array(
    96                 'name' => 'Event Handler',
    97                 'note' => 'If you&rsquo;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&rsquo;d like to use Scroll Depth with something other than Google Analytics you can use this option to define a callback.<br />
    98106                <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 />
    99107                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') . '
    101109                <code style="white-space: pre;">
    102110function(data) {
     
    116124        'admin_group' => 'wp_scroll_depth_group',
    117125        '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        )
    119134    );
    120135   
Note: See TracChangeset for help on using the changeset viewer.