Changeset 2617095
- Timestamp:
- 10/20/2021 10:11:51 AM (4 years ago)
- Location:
- gatorleads
- Files:
-
- 13 added
- 3 edited
-
tags/1.0.5 (added)
-
tags/1.0.5/admin.php (added)
-
tags/1.0.5/gatorleads.php (added)
-
tags/1.0.5/includes (added)
-
tags/1.0.5/includes/admin.inc.php (added)
-
tags/1.0.5/includes/ajax_functions.php (added)
-
tags/1.0.5/includes/restclient.php (added)
-
tags/1.0.5/includes/trackingcode.php (added)
-
tags/1.0.5/install.php (added)
-
tags/1.0.5/js (added)
-
tags/1.0.5/js/gatorleads_admin.js (added)
-
tags/1.0.5/readme.txt (added)
-
tags/1.0.5/uninstall.php (added)
-
trunk/gatorleads.php (modified) (2 diffs)
-
trunk/includes/trackingcode.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gatorleads/trunk/gatorleads.php
r2616649 r2617095 4 4 Plugin URI: http://wordpress.org/extend/plugins/GatorLeads/ 5 5 Description: Inserts the GatorLeads tracker into the footer of Wordpress pages 6 Version: 1.0. 46 Version: 1.0.5 7 7 Author: GatorLeads 8 8 Author URI: https://www.gatorleads.co.uk … … 21 21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 22 */ 23 define('GATORLEADS_VERSION', '1.0. 4');23 define('GATORLEADS_VERSION', '1.0.5'); 24 24 25 25 require_once(dirname(__FILE__).'/includes/trackingcode.php'); -
gatorleads/trunk/includes/trackingcode.php
r2616639 r2617095 103 103 104 104 <?php 105 105 106 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 })(); 115 133 <?php } 116 134 ?> 117 135 118 136 </script> 119 <!-- WOW Async Tracking Code End --> 120 137 121 138 <?php 122 139 } -
gatorleads/trunk/readme.txt
r2616639 r2617095 4 4 Requires at least: 4.0 5 5 Tested up to: 5.8.1 6 Stable tag: 1.0. 46 Stable tag: 1.0.5 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 == Changelog == 49 49 50 = 1.0.5 = 51 Updated Cookiebot consent support to handle if the Cookiebot consent is not intialised. 52 50 53 = 1.0.4 = 51 54 Tested on WordPress 5.8.1. Added CookieBot consent option.
Note: See TracChangeset
for help on using the changeset viewer.