PageSourceSearch

https://booking.jaegershotel.de/assets/GoogleAnalytics-CZc839eo.js

js jaegershotel.de collected 2026-10-04 06:46:34 UTC 5,073 bytes, 1 lines download raw bytes

1import{F as h,b as u}from"./formkit.theme-DVbh0M_W.js";import"./vendor-lxhXACKn.js";import"./globalBasic-DCViCoV8.js";class I extends h{constructor(n){super(n),this.id="google-analytics",this.group="analytical",this.setup()}setup(){var t;if(!this.allowed)return;const n=document.createElement("script");n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id="+((t=this.config)==null?void 0:t.id),n.onload=()=>{var c;window.dataLayer=window.dataLayer||[],this.gtag("js",new Date),this.gtag("config",(c=this.config)==null?void 0:c.id)},document.head.appendChild(n)}gtag(){window.dataLayer.push(arguments)}conversion(n){var s,e;if(!this.allowed)return;const t=u(),c=(s=t==null?void 0:t.settings)==null?void 0:s.currency;let i={transaction_id:n.resId,affiliation:"HotelPartner",hotel:(e=t==null?void 0:t.settings)==null?void 0:e.linkHotel,checkin:n.config.arrival,checkout:n.config.departure,value:n.price,currency:c,items:[]};n.rooms.forEach((a,r)=>{var m,o,y,g;i.items.push({item_id:`${a.id}_${a.rateKey}`,item_name:((o=(m=t==null?void 0:t.roomContentByRoomId[a.id])==null?void 0:m.name)==null?void 0:o.en)+" / "+a.name,affiliation:"HotelPartner",currency:c,index:r,item_category:"Room",item_category2:(g=(y=t==null?void 0:t.roomContentByRoomId[a.id])==null?void 0:y.name)==null?void 0:g.en,item_category3:a.name,price:a.price,quantity:a.quantity}),n.extras.forEach((d,l)=>{var p,_;i.items.push({item_id:d.id,item_name:((_=(p=t==null?void 0:t.extrasById["_"+d.id])==null?void 0:p.publicName)==null?void 0:_.en)??"Unknown extra",affiliation:"HotelPartner",currency:c,index:0,item_category:"Extras",price:d.price,quantity:1})})}),this.gtag("event","purchase",i)}viewItemList(n,t,c){var e;if(!this.allowed)return;const i=u(),s=(e=i==null?void 0:i.settings)==null?void 0:e.currency;window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"view_item_list",ecommerce:{currency:s||"EUR",item_list_id:t,item_list_name:c,items:n.map(a=>JSON.parse(a.toJson()))}})}viewItem(n,t,c){var e;if(!this.allowed)return;const i=u(),s=(e=i==null?void 0:i.settings)==null?void 0:e.currency;window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"view_item",ecommerce:{currency:s||"EUR",item_list_id:t,item_list_name:c,items:n.map(a=>JSON.parse(a.toJson()))}})}removeFromCart(n,t,c){var a;if(!this.allowed)return;const i=u(),s=(a=i==null?void 0:i.settings)==null?void 0:a.currency,e=n.reduce((r,m)=>r+(m.price??0)*m.quantity,0);window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"remove_from_cart",ecommerce:{currency:s||"EUR",item_list_id:t,item_list_name:c,value:e,items:n.map(r=>JSON.parse(r.toJson()))}})}cartUpdate(n){var s;if(!this.allowed||n.price<1)return;const t=u(),c=(s=t==null?void 0:t.settings)==null?void 0:s.currency,i=[];n.rooms.forEach(e=>{var a,r,m,o;i.push({item_id:`${e.id}_${e.rateKey}`,item_name:((r=(a=t==null?void 0:t.roomContentByRoomId[e.id])==null?void 0:a.name)==null?void 0:r.en)+" / "+e.name,item_category:"Room",item_category2:(o=(m=t==null?void 0:t.roomContentByRoomId[e.id])==null?void 0:m.name)==null?void 0:o.en,item_category3:e.name,price:e.price,quantity:e.quantity})}),n.extras.forEach(e=>{i.push({item_id:e.id,item_name:e.name,item_category:"Extra",price:e.price,quantity:1})}),this.gtag("event","add_to_cart",{currency:c||"EUR",value:n.price||0,items:i})}viewCart(n){var s;if(!this.allowed||n.price<1)return;const t=u(),c=(s=t==null?void 0:t.settings)==null?void 0:s.currency,i=[];n.rooms.forEach(e=>{var a,r,m,o;i.push({item_id:`${e.id}_${e.rateKey}`,item_name:((r=(a=t==null?void 0:t.roomContentByRoomId[e.id])==null?void 0:a.name)==null?void 0:r.en)+" / "+e.name,item_category:"Room",item_category2:(o=(m=t==null?void 0:t.roomContentByRoomId[e.id])==null?void 0:m.name)==null?void 0:o.en,item_category3:e.name,price:e.price,quantity:e.quantity})}),n.extras.forEach(e=>{i.push({item_id:e.id,item_name:e.name,item_category:"Extra",price:e.price,quantity:1})}),this.gtag("event","view_cart",{currency:c||"EUR",value:n.price||0,items:i})}beginCheckout(n){var s;if(!this.allowed||n.price<1)return;const t=u(),c=(s=t==null?void 0:t.settings)==null?void 0:s.currency,i=[];
1n.rooms.forEach(e=>{var a,r,m,o;i.push({item_id:`${e.id}_${e.rateKey}`,item_name:((r=(a=t==null?void 0:t.roomContentByRoomId[e.id])==null?void 0:a.name)==null?void 0:r.en)+" / "+e.name,item_category:"Room",item_category2:(o=(m=t==null?void 0:t.roomContentByRoomId[e.id])==null?void 0:m.name)==null?void 0:o.en,item_category3:e.name,price:e.price,quantity:e.quantity})}),n.extras.forEach(e=>{i.push({item_id:e.id,item_name:e.name,item_category:"Extra",price:e.price,quantity:1})}),this.gtag("event","begin_checkout",{currency:c||"EUR",value:n.price||0,items:i})}event(n,t,c){var s;if(!this.allowed)return;const i=u();this.gtag("event","wbeEvent",{action:n,category:c.category??"wbe",nonInteraction:c.nonInteraction??!0,actionLabel:t,wbeHotelID:(s=i==null?void 0:i.settings)==null?void 0:s.linkHotel,event:"wbeEvent"})}pageView(n,t){this.allowed&&this.gtag("event","page_view",{page_title:t,page_location:n})}}export{I as GoogleAnalytics};

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.