PageSourceSearch

https://shippingeasy.com/wp-content/themes/shippingeasy_v3/js/set_referral_code.js?ver=1677788830

js shippingeasy.com collected 2026-10-02 17:12:27 UTC 625 bytes, 23 lines download raw bytes

1function getParameterByName(name) {
2  const queryParams = new URLSearchParams(window.location.search);
3  return queryParams.get(name);
4}
5
6function createCookie(name, value) {
7  if (value) {
8    document.cookie = `${name}=${value};max-age=${60*60*24*30};domain=.${window.location.host.replace('www.', '')};path=/`;
9  }
10}
11
12const ref = getParameterByName("ref");
13const seRef = getParameterByName("se-ref");
14
15createCookie("refcode", ref);
16createCookie("refcode", seRef);
17
18const isSamesiteReferrer = document.referrer.includes(document.location.host);
19
20if (!isSamesiteReferrer) {
21  createCookie("referrer", document.referrer);
22}
23

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.