| Server IP : 172.67.75.225 / Your IP : 216.73.216.185 Web Server : nginx/1.27.1 System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64 User : vinodai ( 3134) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v1396/woofsite3/public_html/wp-content/plugins/klaviyo/inc/js/ |
Upload File : |
/**
* Identify browser on site if they are logged in.
*
* Object possibly containing user/commenter email address:
* @typedef {Object} klUser
* @property {string} currect_user_email - Email of logged in user
* @property {string} commenter_email - Email of logged in commenter
*
*/
function klIdentifyBrowser(klUser) {
var klaviyo = window.klaviyo || [];
if (klUser.current_user_email) {
klaviyo.push(["identify", {
"$email": klUser.current_user_email
}]);
} else {
// See if current user is a commenter
if (klUser.commenter_email) {
klaviyo.push(["identify", {
"$email": klUser.commenter_email
}]);
}
}
}
window.addEventListener("load", function() {
!function(){if(!window.klaviyo){window._klOnsite=window._klOnsite||[];try{window.klaviyo=new Proxy({},{get:function(n,i){return"push"===i?function(){var n;(n=window._klOnsite).push.apply(n,arguments)}:function(){for(var n=arguments.length,o=new Array(n),w=0;w<n;w++)o[w]=arguments[w];var t="function"==typeof o[o.length-1]?o.pop():void 0,e=new Promise((function(n){window._klOnsite.push([i].concat(o,[function(i){t&&t(i),n(i)}]))}));return e}}})}catch(n){window.klaviyo=window.klaviyo||[],window.klaviyo.push=function(){var n;(n=window._klOnsite).push.apply(n,arguments)}}}}();
klIdentifyBrowser(klUser);
});