PageSourceSearch

https://denobiawards.com/js/save_gclid_cookie.js

js denobiawards.com collected 2026-10-06 13:00:41 UTC 603 bytes, 18 lines download raw bytes

1function setCookie(name, value, days) {
2    var date = new Date();
3    date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
4    var expires = "; expires=" + date.toGMTString();
5    document.cookie = name + "=" + value + expires + ";path=/";
6}
7
8function getParam(p) {
9    var match = RegExp('[?&]' + p + '=([^&]*)').exec(window.location.search);
10    return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
11}
12var gclid = getParam('gclid');
13if (gclid) {
14    var gclsrc = getParam('gclsrc');
15    if (!gclsrc || gclsrc.indexOf('aw') !== -1) {
16        setCookie('gclid', gclid, 90);
17    }
18}

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.