//tealium universal tag - utag.1255 ut4.0.202504161328, Copyright 2025 Tealium.com Inc. All Rights Reserved. try{(function(id,loader){var u={"id":id};utag.o[loader].sender[id]=u;u.ev={"view":1,"link":1};u.map={"ga4_profile_id":"measurement_id","ga4_list_name":"items.item_list_name,product_item_list_name","ga4_page_type":"all_events.page_type,all_events.content_group","language_code":"all_events.site_language_code","ga4_brand":"all_events.brand","ga4_brand_locale_space":"all_events.brand_id","ga4_country_code":"all_events.brand_locale","ga4_a_b_test_rule_name":"all_events.a_b_test_rule_name","ga4_a_b_test_variant":"all_events.a_b_test_variant","js_page.navigator.userAgent":"config.user_agent","dom.query_string":"all_events.query_string","ga4_traffic_type":"config.traffic_type","ga4_ecom_impression_event_category":"view_item_list.feature_name,select_item.feature_name","ga4_ecom_impression_event_action":"view_item_list.feature_action,select_item.feature_action","ga4_ecom_impression_event_label":"view_item_list.feature_label,select_item.feature_label","external_session_id":"all_events.external_session_id","ga4_event_non_interaction":"all_events.event_noninteraction","cp._upid":"set.user_properties.upid","tealium_session_number":"all_events.elc_session_number","tealium_session_event_number":"all_events.session_event_number","ut.event":"all_events.event_type","ga4_ecom_event_plp:view_item_list":"view_item_list","ga4_product_impression_base_id":"product_base_id","ga4_product_impression_id":"product_id","ga4_product_impression_shade":"product_shade","ga4_product_impression_sku":"product_sku","ga4_product_impression_product_code":"product_variant","ga4_product_impression_price":"product_unit_price","ga4_product_impression_name":"product_name","ga4_product_impression_brand":"product_brand,product_affiliation","ga4_product_impression_size":"product_size","ga4_product_impression_category":"product_category","ga4_product_impression_position":"product_index","location":"all_events.page_location"};u.extend=[];u.send=function(utag_event,data_layer){if(u.ev[utag_event]||u.ev.all!==undefined){utag.DB("send:1255");utag.DB(data_layer);var a,b,c,d,i,j,has_purchase=false,prop;a=utag_event;b=data_layer;u.data={"base_url":"https://www.googletagmanager.com/gtag/js?id=##utag_measurement_id##","measurement_id":"","clear_global_vars":"false","data_layer_name":"","send_page_view":"false","order_id":"","order_total":"","order_subtotal":"","order_shipping":"","order_tax":"","order_store":"","order_currency":"","order_coupon_code":"","product_id":[],"product_name":[],"product_brand":[],"product_category":[],"product_subcategory":[],"product_addcategory3":[],"product_addcategory4":[],"product_addcategory5":[],"product_quantity":[],"product_unit_price":[],"product_discount":[],"product_coupon":[],"product_variant":[],"product_promotion_id":[],"product_promotion_name":[],"product_creative_name":[],"product_creative_slot":[],"product_location_id":[],"product_index":[],"product_item_list_name":[],"product_item_list_id":[],"product_affiliation":[],"product_base_id":[],"product_shade":[],"product_size":[],"product_sku":[],"product_url":[],"product_cart_id":[],"product_discount_amount":[],"product_is_replenishment_item":[],"product_impression_product_id":[],"product_impression_product_name":[],"product_impression_category":[],"product_impression_quantity":[],"product_impression_unit_price":[],"product_impression_variant":[],"product_impression_index":[],"product_impression_base_id":[],"product_impression_shade":[],"product_impression_size":[],"product_impression_sku":[],"event_queue":[],"config":{},"set":{"developer_id.dYmQxMT":true,"user_properties":{}},"dynamic_event_trigger":"","dynamic_event":{},"event":{},"items":[]};utag.DB("send:1255:EXTENSIONS");utag.DB(data_layer);for(var mapping_key in utag.loader.GV(u.map)){if(data_layer[mapping_key]!==undefined&&data_layer[mapping_key]!==""&&data_layer[mapping_key]!==null){var destinations=u.map[mapping_key].split(",");for(i=0;i-1)&&destinations[i]&&(destinations[i].includes('user_properties')||excludeUserParams.indexOf(destinations[i])>-1)){mapFunc(destinations[i].split("."),u.data,data_layer[mapping_key]);}}}else{var event_destinations=mapping_key.split(":");if(event_destinations.length===2&&data_layer[event_destinations[0]]===event_destinations[1]){if(u.map[mapping_key]){u.data.event_queue=u.data.event_queue.concat(u.map[mapping_key].split(","));}}}} utag.DB("send:1255:MAPPINGS");utag.DB(u.data);u.data.order_id=u.data.order_id||data_layer._corder||"";u.data.order_total=u.data.order_total||data_layer._ctotal||"";u.data.order_shipping=u.data.order_shipping||data_layer._cship||"";u.data.order_tax=u.data.order_tax||data_layer._ctax||"";u.data.order_store=u.data.order_store||data_layer._cstore||"";u.data.order_currency=u.data.order_currency||data_layer._ccurrency||"";u.data.order_coupon_code=u.data.order_coupon_code||data_layer._cpromo||"";if(data_layer['onetrust_active_groups']&&data_layer['onetrust_active_groups'].includes(',2')){u.data.customer_id=u.data.customer_id||data_layer._ccustid||"";u.data.customer_city=u.data.customer_city||data_layer._ccity||"";u.data.customer_state=u.data.customer_state||data_layer._cstate||"";u.data.customer_zip=u.data.customer_zip||data_layer._czip||"";u.data.customer_country=u.data.customer_country||data_layer._ccountry||"";} if(u.data.product_id.length===0&&data_layer._cprod!==undefined){u.data.product_id=data_layer._cprod.slice(0);} if(u.data.product_name.length===0&&data_layer._cprodname!==undefined){u.data.product_name=data_layer._cprodname.slice(0);} if(u.data.product_brand.length===0&&data_layer._cbrand!==undefined){u.data.product_brand=data_layer._cbrand.slice(0);} if(u.data.product_category.length===0&&data_layer._ccat!==undefined){u.data.product_category=data_layer._ccat.slice(0);} if(u.data.product_subcategory.length===0&&data_layer._ccat2!==undefined){u.data.product_subcategory=data_layer._ccat2.slice(0);} if(u.data.product_quantity.length===0&&data_layer._cquan!==undefined){u.data.product_quantity=data_layer._cquan.slice(0);} if(u.data.product_unit_price.length===0&&data_layer._cprice!==undefined){u.data.product_unit_price=data_layer._cprice.slice(0);} if(u.data.product_discount.length===0&&data_layer._cpdisc!==undefined){u.data.product_discount=data_layer._cpdisc.slice(0);} if(utag.ut.typeOf(u.data.measurement_id)==="string"&&u.data.measurement_id!==""){u.data.measurement_id=u.data.measurement_id.replace(/\s/g,"").split(",");} if(u.data.data_layer_name){u.data.base_url=u.data.base_url+"&l="+u.data.data_layer_name;} if(!u.data.measurement_id){utag.DB(u.id+": Tag not fired: Required attribute measurement_id not populated");return;} if(u.data.gtag_enable_tcf_support){window["gtag_enable_tcf_support"]=toBoolean(u.data.gtag_enable_tcf_support);} var utmParams=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"];var utmPageLocation=u.data.config.page_location||data_layer["dom.url"];var utmQuery=[];utmParams.forEach(function(paramName){if(u.data[paramName]&&utmPageLocation.indexOf(paramName+"=")===-1){utmQuery.push(paramName+"="+u.data[paramName]);}});if(utmQuery.length){u.data.config.page_location=utmPageLocation.indexOf("?")===-1?utmPageLocation+"?"+utmQuery.join("&"):utmPageLocation+"&"+utmQuery.join("&");} u.data.event.send_to=u.data.event.send_to||u.data.measurement_id;if(u.data.customer_id){u.data.config.user_id=u.data.customer_id;} if(toBoolean(u.data.clear_global_vars)){setGlobalProperties(u.data.config,true);for(prop in utag.loader.GV(u.data.set)){if(prop!=="developer_id.dYmQxMT"){setGlobalProperties(u.data.set,true,prop);}}} setGlobalProperties(u.data.config,false);setGlobalProperties(u.data.set,false);if(u.data.config.send_page_view!==undefined){u.data.send_page_view=toBoolean(u.data.config.send_page_view);} if(toBoolean(u.data.send_page_view)&&(utag_event==='view'||!u.initialized)){u.data.event_queue.unshift("page_view");} u.data.config.send_page_view=false;for(i=0;i0){mapFunc(arr,obj[i],item);}else{obj[i]=item;}} function toBoolean(val){val=val||"";return val===true||val.toLowerCase()==="true"||val.toLowerCase()==="on";} function hasgtagjs(){window.gtagRename=window.gtagRename||""||"gtag";if(utag.ut.gtagScriptRequested){return true;} var i,s=document.getElementsByTagName("script");for(i=0;i=0&&(s[i].id&&s[i].id.indexOf("utag")>-1)){return true;}} var data_layer_name=""||"dataLayer";window[data_layer_name]=window[data_layer_name]||[];if(typeof window[window.gtagRename]!=="function"){window[window.gtagRename]=function(){window[data_layer_name].push(arguments);};var cross_track=toBoolean(""),cross_track_domains="";if(cross_track&&cross_track_domains!==""){window[window.gtagRename]("set","linker",{domains:cross_track_domains.split(","),accept_incoming:true});} window[window.gtagRename]("js",new Date());} return false;} u.scriptrequested=hasgtagjs();u.initialized=false;u.o=window[window.gtagRename];function setGlobalProperties(data,reset,custom_property){var map={"user_id":{"name":"user_id","type":"exists","reset":true},"page_path":{"name":"page_path","type":"exists","reset":true},"page_title":{"name":"page_title","type":"exists","reset":true},"page_location":{"name":"page_location","type":"exists","reset":false},"developer_id.dYmQxMT":{"name":"developer_id.dYmQxMT","type":"exists","reset":false},"user_properties":{"name":"user_properties","type":"object","reset":true}},prop,subProp,g={};if(custom_property&&reset){g[custom_property]="";} for(prop in utag.loader.GV(map)){if(reset&&map[prop].reset){if(map[prop].name==="user_properties"){for(subProp in data[prop]){if(!g[map[prop].name]){g[map[prop].name]={};} g[map[prop].name][subProp]="";}}else{g[map[prop].name]="";}}else{if(map[prop].type==="bool"){if(data[prop]==true||data[prop]==="true"){g[map[prop].name]=true;}} else if(map[prop].type==="exists"||map[prop].type==="object"){if(data[prop]){g[map[prop].name]=data[prop];}}}} if(!utag.ut.isEmptyObject(g)){u.o("set",g);}} function getItems(length){var g={},i,items=[];length=length||u.data.product_id.length||u.data.product_name.length;for(i=0;i