PageSourceSearch

https://emmahemingwillis.com/wp-content/plugins/klaviyo/inc/js/kl-identify-browser.js

js emmahemingwillis.com collected 2026-10-02 11:10:29 UTC 754 bytes, 30 lines download raw bytes

1/**
2 * Identify browser on site if they are logged in.
3 * 
4 * Object possibly containing user/commenter email address:
5 * @typedef {Object} klUser
6 *   @property {string} currect_user_email - Email of logged in user
7 *   @property {string} commenter_email - Email of logged in commenter
8 *
9 */
10
11
12function klIdentifyBrowser(klUser) {
13  var _learnq = window._learnq || [];
14  if (klUser.current_user_email) {
15    _learnq.push(["identify", {
16      "$email": klUser.current_user_email
17    }]);
18  } else {
19    // See if current user is a commenter
20    if (klUser.commenter_email) {
21      _learnq.push(["identify", {
22        "$email": klUser.commenter_email
23      }]);
24    }
25  }
26}
27
28window.addEventListener("load", function() {
29    klIdentifyBrowser(klUser);
30});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.