0% found this document useful (0 votes)
86 views7 pages

F

This document defines functions for initializing and setting properties on JavaScript objects, getting user agent strings, generating random numbers, setting and reading cookies, and parsing URLs. It includes functions for initializing an object to track page load metrics, summarizing those metrics, setting Google Analytics custom dimensions and metrics, and initializing default tracking values from the current URL.

Uploaded by

lina rojas c
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views7 pages

F

This document defines functions for initializing and setting properties on JavaScript objects, getting user agent strings, generating random numbers, setting and reading cookies, and parsing URLs. It includes functions for initializing an object to track page load metrics, summarizing those metrics, setting Google Analytics custom dimensions and metrics, and initializing default tracking values from the current URL.

Uploaded by

lina rojas c
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

(function(){var aa="function"==typeof Object.defineProperties?

Object.defineProperty:function(a,b,d){a!=Array.prototype&&a!
=Object.prototype&&(a[b]=d.value)},ca="undefined"!=typeof window&&window===this?
this:"undefined"!=typeof global&&null!=global?global:this;function da(a,b){if(b)
{var d=ca;a=a.split(".");for(var c=0;c<a.length-1;c++){var e=a[c];e in d||
(d[e]={});d=d[e]}a=a[a.length-1];c=d[a];b=b(c);b!=c&&null!=b&&aa(d,a,
{configurable:!0,writable:!0,value:b})}}
da("Object.values",function(a){return a?a:function(b){var d=[],c;for(c in
b)Object.prototype.hasOwnProperty.call(b,c)&&d.push(b[c]);return d}});var h=this||
self,ea=/^[\w+/_-]+[=]{0,2}$/,t=null;function v(a){a=parseFloat(a);return
isNaN(a)||1<a||0>a?0:a};var
fa=v("0.20"),ha=v("0.002"),ia=v("0.00"),ja=v("0.00");function w(a){w[" "](a);return
a}w[" "]=function(){};function ka(a){var b=!1,d;return function(){b||(d=a(),b=!
0);return d}};function x(){this.a="";this.b=la}var la={};function ma(a){var b=new
x;b.a=a;return b};var A;a:{var na=h.navigator;if(na){var oa=na.userAgent;if(oa)
{A=oa;break a}}A=""};function pa(a,b){a.src=b instanceof
x&&b.constructor===x&&b.b===la?b.a:"type_error:TrustedResourceUrl";if(null===t)b:
{b=h.document;if((b=b.querySelector&&b.querySelector("script[nonce]"))&&(b=b.nonce|
|b.getAttribute("nonce"))&&ea.test(b)){t=b;break
b}t=""}b=t;b&&a.setAttribute("nonce",b)};function qa(){if(!h.crypto)return
Math.random();try{var a=new Uint32Array(1);h.crypto.getRandomValues(a);return
a[0]/65536/65536}catch(b){return Math.random()}}function ra(a,b){if(a)for(var d in
a)Object.prototype.hasOwnProperty.call(a,d)&&b.call(void 0,a[d],d,a)}var
sa=ka(function(){return-1!=A.indexOf("Google Web Preview")||1E-
4>Math.random()}),ta=ka(function(){return-1!=A.indexOf("MSIE")});var
C=null;function ua(){if(null===C){C="";try{var
a="";try{a=h.top.location.hash}catch(d){a=h.location.hash}if(a){var
b=a.match(/\bdeid=([\d,]+)/);C=b?b[1]:""}}catch(d){}}return C}function D(a,b,d){var
c=E;if(d?c.a.hasOwnProperty(d)&&""==c.a[d]:1){var e;e=(e=ua())?(e=e.match(new
RegExp("\\b("+a.join("|")+")\\b")))?e[0]:null:null;if(e)a=e;else a:{if(!ta()&&!
sa()&&(e=Math.random(),e<b)){e=qa();a=a[Math.floor(e*a.length)];break
a}a=null}a&&""!=a&&(d?c.a.hasOwnProperty(d)&&(c.a[d]=a):c.b[a]=!0)}}
function F(a){var b=E;return b.a.hasOwnProperty(a)?b.a[a]:""}function va(){var
a=E,b=[];ra(a.b,function(d,c){b.push(c)});ra(a.a,function(d){""!
=d&&b.push(d)});return b};var wa={m:2,w:13,v:14,o:16},E=null;function G(){return!!
E&&"592230571"==F(16)};var H=window,xa=document;function ya(a,b)
{if(Array.prototype.indexOf)return a=a.indexOf(b),"number"==typeof a?a:-1;for(var
d=0;d<a.length;d++)if(a[d]===b)return d;return-1}function za(a,b){for(var d in
a)Object.prototype.hasOwnProperty.call(a,d)&&b(d,a[d])};var I=/:[0-9]+$/;function
J(a,b){a=a.split("&");for(var d=0;d<a.length;d++){var
c=a[d].split("=");if(decodeURIComponent(c[0]).replace(/\+/g," ")===b)return
decodeURIComponent(c.slice(1).join("=")).replace(/\+/g," ")}}
function K(a,b){var
d="query";if("protocol"===d||"port"===d)a.protocol=L(a.protocol)||
L(H.location.protocol);"port"===d?a.port=String(Number(a.hostname?
a.port:H.location.port)||("http"==a.protocol?80:"https"==a.protocol?
443:"")):"host"===d&&(a.hostname=(a.hostname||
H.location.hostname).replace(I,"").toLowerCase());var
c=L(a.protocol);d&&(d=String(d).toLowerCase());switch(d){case
"url_no_fragment":b="";a&&a.href&&(b=a.href.indexOf("#"),b=0>b?
a.href:a.href.substr(0,b));a=b;break;case "protocol":a=c;
break;case "host":a=a.hostname.replace(I,"").toLowerCase();break;case
"port":a=String(Number(a.port)||("http"==c?80:"https"==c?443:""));break;case
"path":a="/"==a.pathname.charAt(0)?
a.pathname:"/"+a.pathname;a=a.split("/");0<=ya([],a[a.length-1])&&(a[a.length-
1]="");a=a.join("/");break;case
"query":a=a.search.replace("?","");b&&(a=J(a,b));break;case
"extension":a=a.pathname.split(".");a=1<a.length?a[a.length-1]:"";a=a.split("/")
[0];break;case "fragment":a=a.hash.replace("#","");break;default:a=a&&
a.href}return a}function L(a){return a?a.replace(":","").toLowerCase():""};function
M(a,b){var d=[];b=String(b||document.cookie).split(";");for(var c=0;c<b.length;c++)
{var
e=b[c].split("="),f=e[0].replace(/^\s*|\s*$/g,"");f&&f==a&&d.push(e.slice(1).join("
=").replace(/^\s*|\s*$/g,""))}return d}function Aa(a,b,d){var
c=document.cookie;document.cookie=a;a=document.cookie;return c!=a||void 0!
=d&&0<=M(b,a).indexOf(d)}var
Ba=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,Ca=/(^|\.)doubleclick\.net$/i;function
Da(a,b){return Ca.test(document.location.hostname)||"/"===b&&Ba.test(a)};var
Ea={};var Fa=/^\w+$/,Ga=/^[\w-]+$/,Ha=/^~?[\w-]+
$/,N={aw:"_aw",dc:"_dc",gf:"_gf",ha:"_ha"};function Ia(a,b){var d=[];if(!
a.cookie)return d;a=M(b,a.cookie);if(!a||0==a.length)return d;for(b=0;b<a.length;b+
+){var c=Ja(a[b]);c&&-1===ya(d,c)&&d.push(c)}return Ka(d)}function La(a){return
a&&"string"==typeof a&&a.match(Fa)?a:"_gcl"}
function Ma(a,b,d){function c(f,g){e[g]||(e[g]=[]);e[g].push(f)}var e={};if(void 0!
==a&&a.match(Ga))switch(b){case void 0:c(a,"aw");break;case
"aw.ds":c(a,"aw");c(a,"dc");break;case "ds":c(a,"dc");break;case "3p.ds":(void
0==Ea.gtm_3pds?0:Ea.gtm_3pds)&&c(a,"dc");break;case "gf":c(a,"gf");break;case
"ha":c(a,"ha")}d&&c(d,"dc");return e}
function Na(){var a=H.location.href;var
b=xa.createElement("a");a&&(b.href=a);a=b.pathname;"/"!==a[0]&&(a="/"+a);var
d=b.hostname.replace(I,"");var
c={href:b.href,protocol:b.protocol,host:b.host,hostname:d,pathname:a,search:b.searc
h,hash:b.hash,port:b.port};b=K(c,"gclid");a=K(c,"gclsrc");d=K(c,"dclid");b&&a||
(c=c.hash.replace("#",""),b=b||J(c,"gclid"),a=a||J(c,"gclsrc"));b=Ma(b,a,d);Oa(b,
{h:!0})}
function Oa(a,b,d){function c(p){return["GCL",B,p].join(".")}function e(p,y)
{p=N[p];p=void 0!==p?f+p:void 0;if(p){var u=g;u=u||"auto";var
n={path:k||"/"};q&&(n.expires=q);"none"!==u&&(n.domain=u);a:{void 0==y?
u=p+"=deleted; expires="+(new Date(0)).toUTCString():
((y=encodeURIComponent(y))&&1200<y.length&&(y=y.substring(0,1200)),u=p+"="+y);var
m=void 0,ba=void 0;for(r in n)if(n.hasOwnProperty(r)){var z=n[r];if(null!
=z)switch(r){case "secure":z&&(u+="; secure");break;case
"domain":m=z;break;default:"path"==
r&&(ba=z),"expires"==r&&z instanceof Date&&(z=z.toUTCString()),u+=";
"+r+"="+z}}if("auto"===m){b:{var
r=[];n=document.location.hostname.split(".");if(4===n.length&&(m=n[n.length-
1],parseInt(m,10).toString()===m)){r=["none"];break b}for(m=n.length-
2;0<=m;m--)r.push(n.slice(m).join("."));r.push("none")}for(n=0;n<r.length;+
+n)if(m="none"!=r[n]?r[n]:void 0,!Da(m,ba)&&Aa(u+(m?"; domain="+m:""),p,y))break
a}else m&&"none"!=m&&(u+="; domain="+m),!Da(m,ba)&&Aa(u,p,y)}}}b=b||{};var
f=La(b.prefix),g=b.domain||
"auto",k=b.path||"/",l=void 0==b.g?7776E3:b.g;d=d||(new Date).getTime();var q=0==l?
void 0:new Date(d+1E3*l),B=Math.round(d/1E3);a.aw&&(!0===b.h?
e("aw",c("~"+a.aw[0])):e("aw",c(a.aw[0])));a.dc&&e("dc",c(a.dc[0]));a.gf&&e("gf",c(
a.gf[0]));a.ha&&e("ha",c(a.ha[0]))}function Ja(a)
{a=a.split(".");if(3==a.length&&"GCL"==a[0]&&a[1])return a[2]}function Ka(a){return
a.filter(function(b){return Ha.test(b)})}
function Pa(){for(var a=["aw"],b=La(void 0),d={},c=0;c<a.length;c+
+)N[a[c]]&&(d[a[c]]=N[a[c]]);za(d,function(e,f){f=M(b+f,xa.cookie);if(f.length)
{f=f[0];var g=f.split(".");g=3!==g.length||"GCL"!==g[0]?0:1E3*(Number(g[1])||0);var
k={};k[e]=[Ja(f)];Oa(k,void 0,g)}})};var Qa=/^UA-\d+-\d+%3A[\w-]+(?:%2C[\w-]+)*(?:
%3BUA-\d+-\d+%3A[\w-]+(?:%2C[\w-]+)*)*$/,Ra=/^~?[\w-]+(?:\.~?[\w-]
+)*$/,Sa=/^\d+\.fls\.doubleclick\.net$/,Ta=/;gac=([^;?]+)/,Ua=/;gclaw=([^;?]
+)/;function Va(a,b){if(Sa.test(a.location.host))
{if((a=a.location.href.match(Ua))&&2==a.length&&a[1].match(Ra))return a[1]}else
if(a=Ia(a,(b||"_gcl")+"_aw"),0<a.length)return a.join(".");return""}
function Wa(a){var b=Xa,d=Ia(document,"_gcl_aw");a&&"_gcl"!
=a&&(d=d.concat(Ia(document,a+"_aw")));d.every(function(c){return
c.match("~")})&&(Na(),b&&Pa())};function Ya(){var a=void 0===a?
h:a;return(a=a.performance)&&a.now?a.now():null}function Za(a){var
b=h.performance;return b&&b.timing&&b.timing[a]||0};var
$a={s:0,i:1,u:2,l:3,j:4};function O(){this.a={}}function P(a,b,d){"number"==typeof
d&&0<d&&(a.a[b]=Math.round(d))}function ab(){function a(){return
P(b,0,Za("loadEventStart")-Za("navigationStart"))}var b=O.a();0!
=Za("loadEventStart")?a():window.addEventListener("load",a)}function bb(){var
a=O.a();return Object.values($a).map(function(b){return[b,a.a[b]||0]})}O.b=void
0;O.a=function(){return O.b?O.b:O.b=new O};function cb(a,b,d){a=db(a,!
0);if(a[b])return!1;a[b]=[];a[b][0]=d;return!0}function db(a,b){var
d=a.GooglebQhCsO;d||(d={},b&&(a.GooglebQhCsO=d));return d};var eb=null,fb=null;
function gb(a){for(var b=[],d=0,c=0;c<a.length;c++){var
e=a.charCodeAt(c);255<e&&(b[d++]=e&255,e>>=8);b[d++]=e}if(!
eb)for(eb={},fb={},a=0;65>a;a+
+)eb[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(
a),fb[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-
_.".charAt(a);a=fb;d=[];for(c=0;c<b.length;c+=3){var f=b[c],g=(e=c+1<b.length)?
b[c+1]:0,k=c+2<b.length,l=k?b[c+2]:0,q=f>>2;f=(f&3)<<4|g>>4;g=(g&15)<<2|
l>>6;l&=63;k||(l=64,e||(g=64));d.push(a[q],a[f],a[g],
a[l])}return d.join("")};var hb=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)
(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function ib(a)
{var b=a.match(hb);a=b[5];var d=b[6];b=b[7];var
c="";a&&(c+=a);d&&(c+="?"+d);b&&(c+="#"+b);return c}function Q(a,b,d,c){for(var
e=d.length;0<=(b=a.indexOf(d,b))&&b<c;){var f=a.charCodeAt(b-1);if(38==f||
63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1}var
R=/#|$/;
function S(a,b){var d=a.search(R),c=Q(a,0,b,d);if(0>c)return null;var
e=a.indexOf("&",c);if(0>e||e>d)e=d;c+=b.length+1;return
decodeURIComponent(a.substr(c,e-c).replace(/\+/g," "))}var jb=/[?&]($|#)/;
function T(a,b,d){for(var
c=a.search(R),e=0,f,g=[];0<=(f=Q(a,e,b,c));)g.push(a.substring(e,f)),e=Math.min(a.i
ndexOf("&",f)+1||c,c);g.push(a.substr(e));a=g.join("").replace(jb,"$1");d=null!
=d?"="+encodeURIComponent(String(d)):"";(b+=d)?
(d=a.indexOf("#"),0>d&&(d=a.length),c=a.indexOf("?"),0>c||c>d?
(c=d,e=""):e=a.substring(c+1,d),d=[a.substr(0,c),e,a.substr(d)],a=d[1],d[1]=b?a?
a+"&"+b:b:a,b=d[0]+(d[1]?"?"+d[1]:"")+d[2]):b=a;return b};function kb(a,b,d,c){var
e=S(d,"fmt");if(c){var f=S(d,"random"),g=S(d,"label")||"";if(!f)return!
1;f=gb(decodeURIComponent(g.replace(/\+/g," "))+":"+decodeURIComponent(f.replace(/\
+/g," "))).replace(/[.]*$/,"");if(!cb(a,f,c))return!1}e&&4!
=e&&(d=T(d,"rfmt",e));e=T(d,"fmt",4);d=document.createElement("SCRIPT");e=ma(e);pa(
d,e);d.onload=function()
{a.google_noFurtherRedirects&&c&&c.call&&(a.google_noFurtherRedirects=null,c())};b.
getElementsByTagName("script")[0].parentElement.appendChild(d);return!0};var
lb=/^true$/.test("false"),Xa=/^true$/.test("true");var mb={id:!0,origin:!
0,destination:!0,start_date:!0,end_date:!0,location_id:!0},nb="google_conversion_id
google_conversion_format google_conversion_type google_conversion_order_id
google_conversion_language google_conversion_value google_conversion_evaluemrc
google_conversion_currency google_conversion_domain google_conversion_label
google_conversion_color google_disable_viewthrough
google_enable_display_cookie_match google_gtag_event_data google_remarketing_only
google_conversion_linker google_tag_for_child_directed_treatment
google_tag_for_under_age_of_consent google_allow_ad_personalization_signals
google_conversion_items google_conversion_merchant_id google_user_id
google_custom_params google_conversion_date google_conversion_time
google_conversion_js_version onload_callback opt_image_generator
google_conversion_page_url google_conversion_referrer_url google_gtm
google_gcl_cookie_prefix google_read_gcl_cookie_opt_out google_basket_feed_country
google_basket_feed_language google_basket_discount google_basket_transaction_type
google_disable_merchant_reported_conversions
google_additional_conversion_params".split(" ");
function U(a){return null!=a?encodeURIComponent(String(a)):""}function ob(a)
{if(null!=a){a=String(a).substring(0,512);var b=a.indexOf("#");return-1==b?
a:a.substring(0,b)}return""}function V(a,b){b=U(b);return""!=b&&(a=U(a),""!
=a)?"&".concat(a,"=",b):""}function pb(a){var b=typeof a;return
null==a||"object"==b||"function"==b?
null:String(a).replace(/,/g,"\\,").replace(/;/g,"\\;").replace(/=/g,"\\=")}
function qb(a){if(!a||"object"!=typeof a||"function"==typeof a.join)return"";var
b=[],d;for(d in a)if(Object.prototype.hasOwnProperty.call(a,d)){var
c=a[d];if(c&&"function"==typeof c.join){for(var e=[],f=0;f<c.length;++f){var
g=pb(c[f]);null!=g&&e.push(g)}c=0==e.length?null:e.join(",")}else c=pb(c);
(e=pb(d))&&null!=c&&b.push(e+"="+c)}return b.join(";")}
function rb(a,b){b=void 0===b?
null:b;a=qb(a.google_custom_params);b=qb(b);b=a.concat(0<a.length&&0<b.length?";":"
",b);return""==b?"":"&".concat("data=",encodeURIComponent(b))}function sb(a){return
null==a||0!=a&&1!=a?"":V("tfcd",a)}function tb(a){return null==a||0!=a&&1!
=a?"":V("tfua",a)}function ub(a){return!1===a?V("npa",1):!0===a?V("npa",0):""}
function vb(a){if(null!=a){a=a.toString();if(2==a.length)return
V("hl",a);if(5==a.length)return V("hl",a.substring(0,2))
+V("gl",a.substring(3,5))}return""}function W(a){return"number"!=typeof
a&&"string"!=typeof a?"":U(a.toString())}
function wb(a){if(!a)return"";a=a.google_conversion_items;if(!a)return"";for(var
b=[],d=0,c=a.length;d<c;d++){var
e=a[d],f=[];e&&(f.push(W(e.value)),f.push(W(e.quantity)),f.push(W(e.item_id)),f.pus
h(W(e.start_date)),f.push(W(e.end_date)),b.push("("+f.join("*")+")"))}return
0<b.length?"&item="+b.join(""):""}
function xb(a,b){if(b.google_read_gcl_cookie_opt_out||b.google_remarketing_only||
b.google_conversion_domain&&(!
b.google_gcl_cookie_prefix||!/^_ycl/.test(b.google_gcl_cookie_prefix)))return"";var
d="";if(b.google_gcl_cookie_prefix&&/^[a-zA-Z0-9_]+
$/.test(b.google_gcl_cookie_prefix)&&"_gcl"!=b.google_gcl_cookie_prefix)return
d=Va(a,b.google_gcl_cookie_prefix),V("gclaw",d);
(b=Va(a))&&(d=V("gclaw",b));if(Sa.test(a.location.host))var
c=(c=a.location.href.match(Ta))&&2==c.length&&c[1].match(Qa)?
decodeURIComponent(c[1]):
"";else{b=[];a=a.cookie.split(";");for(var e=/^\s*_gac_(UA-\d+-\d+)=\s*(.
+?)\s*$/,f=0;f<a.length;f++){var
g=a[f].match(e);g&&b.push({c:g[1],value:g[2]})}a={};if(b&&b.length)for(e=0;e<b.leng
th;e++)f=b[e].value.split("."),"1"==f[0]&&3==f.length&&f[1]&&(a[b[e].c]||
(a[b[e].c]=[]),a[b[e].c].push({timestamp:f[1],f:f[2]}));b=[];for(c in a)
{e=[];f=a[c];for(g=0;g<f.length;g+
+)e.push(f[g].f);b.push(c+":"+e.join(","))}c=0<b.length?b.join(";"):""}return d+(c?
V("gac",c):"")}
function yb(a,b,d){var c=[];if(a){var
e=a.screen;e&&(c.push(V("u_h",e.height)),c.push(V("u_w",e.width)),c.push(V("u_ah",e
.availHeight)),c.push(V("u_aw",e.availWidth)),c.push(V("u_cd",e.colorDepth)));a.his
tory&&c.push(V("u_his",a.history.length))}d&&"function"==typeof
d.getTimezoneOffset&&c.push(V("u_tz",-
d.getTimezoneOffset()));b&&("function"==typeof
b.javaEnabled&&c.push(V("u_java",b.javaEnabled())),b.plugins&&c.push(V("u_nplug",b.
plugins.length)),b.mimeTypes&&c.push(V("u_nmime",b.mimeTypes.length)));
return c.join("")}function zb(a){function b(c){try{return decodeURIComponent(c),!
0}catch(e){return!1}}a=a?a.title:"";if(void
0==a||""==a)return"";a=encodeURIComponent(a);for(var d=256;!
b(a.substr(0,d));)d--;return"&tiba="+a.substr(0,d)}
function Ab(a,b,d,c){var e="";if(b){if(a.top==a)var f=0;else{var
g=a.location.ancestorOrigins;if(g)f=g[g.length-1]==a.location.origin?
1:2;else{g=a.top;try{var k;if(k=!!g&&null!=g.location.href)c:{try{w(g.foo);k=!
0;break c}catch(l){}k=!1}f=k}catch(l){f=!1}f=f?1:2}}a=d?d:1==f?
a.top.location.href:a.location.href;e+=V("frm",f);e+=V("url",ob(a));e+=V("ref",ob(c
||b.referrer))}return e}
function Bb(a,b,d,c,e){e=void 0===e?null:e;var
f="/?";"landing"==c.google_conversion_type&&(f="/extclk?");f=[c.google_remarketing_
only?"/pagead/viewthroughconversion/":"/pagead/conversion/",U(c.google_conversion_i
d),f,"random=",U(c.google_conversion_time)].join("");f="https://"+
(c.google_remarketing_only?"googleads.g.doubleclick.net":c.google_conversion_domain
||"www.googleadservices.com")+f;e=void 0===e?
null:e;a=[V("cv",c.google_conversion_js_version),V("fst",c.google_conversion_first_
time),V("num",
c.google_conversion_snippets),V("fmt",c.google_conversion_format),c.google_remarket
ing_only?
V("userId",c.google_user_id):"",sb(c.google_tag_for_child_directed_treatment),tb(c.
google_tag_for_under_age_of_consent),ub(c.google_allow_ad_personalization_signals),
V("value",c.google_conversion_value),V("evaluemrc",c.google_conversion_evaluemrc),V
("currency_code",c.google_conversion_currency),V("label",c.google_conversion_label)
,V("oid",c.google_conversion_order_id),V("bg",c.google_conversion_color),vb(c.googl
e_conversion_language),
V("guid","ON"),!c.google_conversion_domain&&"GooglemKTybQhCsO"in
h&&"function"==typeof h.GooglemKTybQhCsO?
V("resp","GooglemKTybQhCsO"):"",V("disvt",c.google_disable_viewthrough),V("eid",va(
).join()),yb(a,b,c.google_conversion_date),V("gtm",c.google_gtm),b&&b.sendBeacon?
V("sendb","1"):"",Cb(),rb(c,e),xb(d,c),Ab(a,d,c.google_conversion_page_url,c.google
_conversion_referrer_url),zb(d),c.google_remarketing_only||!
c.google_additional_conversion_params?"":Db(c.google_additional_conversion_params)]
.join("");
b=ua();a+=0<b.length?"&debug_experiment_id="+b:"";c.google_remarketing_only||
c.google_conversion_domain?c=a:(Eb(c)&&!
c.google_basket_transaction_type&&(c.google_basket_transaction_type="mrc"),b=[V("mi
d",c.google_conversion_merchant_id),V("fcntr",c.google_basket_feed_country),V("flng
",c.google_basket_feed_language),V("dscnt",c.google_basket_discount),V("bttype",c.g
oogle_basket_transaction_type)].join(""),c=[a,b,wb(c)].join(""),c=4E3<c.length?
[a,V("item","elngth")].join(""):c);return f+c}
function Fb(a){if(!lb){var
b=document.createElement("IFRAME");b.style.display="none";b.src="https://bid.g.doub
leclick.net/xbbe/pixel?d=KAE";a.body.appendChild(b)}}function Gb(){return new
Image}function Hb(a,b,d,c){var e=d.onload_callback,f;e&&e.call?f=e:f=function()
{};c+=V("async","1");var g=(e=d.opt_image_generator)&&e.call,k;if(!(k=g||!1))
{if(d.google_conversion_domain)var l=!1;else try{l=kb(a,b,c,f)}catch(q){l=!1}k=!
l}k&&(a=Gb,g&&(a=e),a=a(),a.src=c,a.onload=f)}
function Ib(a){for(var
b=document.createElement("IFRAME"),d=[],c=[],e=0;e<a.google_conversion_items.length
;e++){var f=a.google_conversion_items[e];f&&f.quantity&&(f.sku||
f.item_id)&&(d.push(f.sku||f.item_id),c.push(f.quantity))}e="";null!
=a.google_basket_feed_language&&null!=a.google_basket_feed_country?
e="&mrc_language="+a.google_basket_feed_language.toString()
+"&mrc_country="+a.google_basket_feed_country.toString():null!
=a.google_conversion_language&&(f=a.google_conversion_language.toString(),5==
f.length&&(e="&mrc_language="+f.substring(0,2)+"&mrc_country="+f.substring(3,5)));b
.src="https://www.google.com/ads/mrc?sku="+d.join(",")+"&qty="+c.join(",")
+"&oid="+a.google_conversion_order_id+"&mcid="+a.google_conversion_merchant_id+e;b.
style.width="1px";b.style.height="1px";b.style.display="none";return b}function
Jb(a,b,d){function c()
{d.documentElement.appendChild(Ib(b))}"complete"===d.readyState?
c():a.addEventListener?a.addEventListener("load",c):a.attachEvent("onload",c)}
function Kb(a,b){E&&"376635471"==F(2)&&("complete"===b.readyState?
Fb(b):a.addEventListener?a.addEventListener("load",function()
{Fb(b)}):a.attachEvent("onload",function(){Fb(b)}))}function Eb(a){return!
a.google_disable_merchant_reported_conversions&&!!
a.google_conversion_merchant_id&&!!a.google_conversion_order_id&&!!
a.google_conversion_items}function Lb(a,b){function d(f){c[f]=b&&null!=b[f]?
b[f]:a[f]}for(var c={},e=0;e<nb.length;e++)d(nb[e]);d("onload_callback");return c}
function Mb(a){for(var b={},d=0;d<a.length;d++){var c=a[d],e=void
0;c.hasOwnProperty("google_business_vertical")?
(e=c.google_business_vertical,b[e]=b[e]||{google_business_vertical:e}):
(e="",Object.prototype.hasOwnProperty.call(b,e)||(b[e]={}));e=b[e];for(var
f=Object.keys(c).filter(function(l){return mb.hasOwnProperty(l)}),g=0;g<f.length;g+
+){var k=f[g];k in e||(e[k]=[]);e[k].push(c[k])}}return Object.values(b)}
function Cb(){var a="";G()&&(a=bb().map(function(b){return
b.join("-")}).join("_"));return V("li",a)}function Db(a){var b="",d;for(d in
a)a.hasOwnProperty(d)&&(b+=V(d,a[d]));return b};function Nb(a,b,d,c){function e()
{}var f=Mb(c.google_gtag_event_data.items);if(c.onload_callback&&"function"==typeof
c.onload_callback.call){var g=c.onload_callback,k=f.length;e=function(){--
k;0>=k&&g()}}c.onload_callback=e;for(var l=0;l<f.length;l+
+)Hb(a,d,c,Bb(a,b,d,c,f[l])),c.google_conversion_time=c.google_conversion_time+1};E
=new function(){var a=[],b=0,d;for(d in wa)a[b++]=wa[d];this.b={};this.a={};a=a||
[];b=0;for(d=a.length;b<d;+
+b)this.a[a[b]]=""};D(["592230570","592230571"],ha,16);if(G()){var
Ob=O.a();P(Ob,1,Ya());ab()}
function Pb(a,b,d){function c(q,B){var p=new Image;p.onload=q;p.src=B}function e()
{--f;if(0>=f){var q=db(a,!1),B=q[b];B&&(delete q[b],(q=B[0])&&q.call&&q())}}var
f=d.length+1;if(2==d.length){var
g=d[0],k=d[1];0<=Q(g,0,"rmt_tld",g.search(R))&&0<=Q(g,0,"ipr",g.search(R))&&!
k.match(hb)[6]&&(k+=ib(g),d[1]=T(k,"rmt_tld","1"))}for(g=0;g<d.length;g++)
{k=d[g];var l=S(k,"fmt");switch(parseInt(l,10)){case 1:case 2:
(l=a.document.getElementById("goog_conv_iframe"))&&!l.src?
(l.onload=e,l.src=k):c(e,k);break;case 4:kb(a,
a.document,k,e);break;case
5:if(a.navigator&&a.navigator.sendBeacon)if(a.navigator.sendBeacon(k,""))
{e();break}else k=T(k,"sendb",2);k=T(k,"fmt",3);default:c(e,k)}}e()}var
X=["GooglemKTybQhCsO"],Y=h;X[0]in Y||"undefined"==typeof Y.execScript||
Y.execScript("var "+X[0]);for(var Z;X.length&&(Z=X.shift());){var Qb;if(Qb=!
X.length)Qb=void 0!==Pb;Qb?Y[Z]=Pb:Y[Z]&&Y[Z]!==Object.prototype[Z]?
Y=Y[Z]:Y=Y[Z]={}}
window.google_trackConversion=function(a){var b=window;var
d=navigator,c=document;a=Lb(b,a);a.google_conversion_format=3;if(G()){var
e=O.a();P(e,2,Ya());if(a.google_gtm&&(e=O.a(),b.google_tag_manager&&b.google_tag_ma
nager._li)){var f=b.google_tag_manager._li;P(e,4,f.cbt);P(e,3,f.cst)}}e=!
1;if(a&&3==a.google_conversion_format)
{try{if("landing"==a.google_conversion_type||!a.google_conversion_id||
a.google_remarketing_only&&a.google_disable_viewthrough)var g=!1;else
a.google_conversion_date=new Date,
a.google_conversion_time=a.google_conversion_date.getTime(),a.google_conversion_sni
ppets="number"==typeof
a.google_conversion_snippets&&0<a.google_conversion_snippets?
a.google_conversion_snippets+1:1,"number"!=typeof
a.google_conversion_first_time&&(a.google_conversion_first_time=a.google_conversion
_time),a.google_conversion_js_version="9",0!=a.google_conversion_format&&1!
=a.google_conversion_format&&2!=a.google_conversion_format&&3!
=a.google_conversion_format&&(a.google_conversion_format=3),!1!==
a.google_enable_display_cookie_match&&(a.google_enable_display_cookie_match=!0),g=!
0;g&&(a.google_remarketing_only&&a.google_enable_display_cookie_match&&!
lb&&E&&D(["376635470","376635471"],fa,2),a.google_remarketing_only&&!
a.google_conversion_domain&&E&&D(["759238990","759238991"],ja,13),!
a.google_remarketing_only||a.google_conversion_domain||
E&&("759248991"==F(14)||"759248990"==F(14))||
E&&D(["759248990","759248991"],ia,14),!1===a.google_conversion_linker||
a.google_gtm||Wa(a.google_gcl_cookie_prefix),
1==a.google_remarketing_only&&null!=a.google_gtag_event_data&&null!
=a.google_gtag_event_data.items&&a.google_gtag_event_data.items.constructor===Array
&&0<a.google_gtag_event_data.items.length?
Nb(b,d,c,a):Hb(b,c,a,Bb(b,d,c,a)),a.google_remarketing_only&&a.google_enable_displa
y_cookie_match&&Kb(b,c),e=!0);Eb(a)&&(Jb(b,a,c),e=!0)}catch(k){}b=e}else b=!
1;return b};}).call(this);

You might also like