Plugin Directory

Changeset 2617095


Ignore:
Timestamp:
10/20/2021 10:11:51 AM (4 years ago)
Author:
Wow Analytics
Message:

Updated to version 1.0.5

Location:
gatorleads
Files:
13 added
3 edited

Legend:

Unmodified
Added
Removed
  • gatorleads/trunk/gatorleads.php

    r2616649 r2617095  
    44Plugin URI: http://wordpress.org/extend/plugins/GatorLeads/
    55Description: Inserts the GatorLeads tracker into the footer of Wordpress pages
    6 Version: 1.0.4
     6Version: 1.0.5
    77Author: GatorLeads
    88Author URI: https://www.gatorleads.co.uk
     
    2121Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
    2222*/
    23 define('GATORLEADS_VERSION', '1.0.4');
     23define('GATORLEADS_VERSION', '1.0.5');
    2424
    2525require_once(dirname(__FILE__).'/includes/trackingcode.php');
  • gatorleads/trunk/includes/trackingcode.php

    r2616639 r2617095  
    103103
    104104            <?php
     105
    105106            if($cookiebot_consent && $trackuser_bool){?>
    106             window.addEventListener('CookiebotOnLoad', function (e) {
    107                 if(typeof Cookiebot !== 'undefined') {
    108                     if (Cookiebot.consent.marketing)
    109                     {
    110                     _wow.push(['disableUserTracking', false]);
    111                     }
    112                 }
    113                 _wow.push(['trackPageView']);
    114             }, false);
     107                (function () {
     108                    var intervalCheck = 0;
     109                    var checkExist = setInterval(function() {
     110                       
     111                        if(typeof Cookiebot !== 'undefined' && typeof Cookiebot.consent !== 'undefined') {
     112                       
     113                            if (Cookiebot.consent.marketing)  {
     114                                _wow.push(['disableUserTracking', false]);
     115                            }
     116                       
     117                            clearInterval(checkExist);
     118                            _wow.push(['trackPageView']);
     119                            return;
     120                        }
     121                       
     122                        intervalCheck++;
     123
     124                        if(intervalCheck = 100) {
     125                            clearInterval(checkExist);
     126                            _wow.push(['trackPageView']);
     127                            return;
     128                        }
     129
     130                    }, 100); // check every 100ms
     131
     132                })();
    115133            <?php }
    116134             ?>
    117135             
    118136    </script>
    119     <!-- WOW Async Tracking Code End -->
    120 
     137   
    121138<?php
    122139}
  • gatorleads/trunk/readme.txt

    r2616639 r2617095  
    44Requires at least: 4.0
    55Tested up to: 5.8.1
    6 Stable tag: 1.0.4
     6Stable tag: 1.0.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848== Changelog ==
    4949
     50= 1.0.5 =
     51Updated Cookiebot consent support to handle if the Cookiebot consent is not intialised.
     52
    5053= 1.0.4 =
    5154Tested on WordPress 5.8.1.  Added CookieBot consent option.
Note: See TracChangeset for help on using the changeset viewer.