!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("ga-event-reporter-web",[],t):"object"==typeof exports?exports["ga-event-reporter-web"]=t():e["ga-event-reporter-web"]=t()}("undefined"!=typeof self?self:this,()=>(function(){const e="promoteAnalyticsChannels",t="globalGtag",n="Purchase",a="Lead",o={[n]:"PURCHASE",[a]:"SUBMIT_LEAD_FORM"},i={price:"price",id:"id",currency:"currency",name:"name",category:"category",brand:"brand",variant:"variant",list:"list_name",quantity:"quantity",step:"checkout_step",option:"checkout_option",position:"list_position",coupon:"coupon",affiliation:"affiliation",revenue:"value",tax:"tax",sku:"sku",shipping:"shipping"},r=e=>{let{contents:t=[]}=e;return t.map(e=>{let{currency:t,...n}=e;return c(n,i)})},c=(e,t)=>{const n=Object.keys(e);return 0===n.length?e:n.reduce((n,a)=>{const o=t[a];return o&&(e[a]||0===e[a])&&(n[o]=e[a]),n},{})};let d;const s=()=>{var e,t;const n={"Content-Type":"application/json","X-XSRF-TOKEN":(()=>{const e=new RegExp("XSRF-TOKEN=(.+?);").exec(document.cookie);return e?e[1]:""})()},a=null==(e=window.wixEmbedsAPI)?void 0:e.getAppToken,o=null==a?void 0:a("22bef345-3c5b-4c18-b782-74d4085112ff");return o&&(n.authorization=o),{headers:n,metaSiteId:null==(t=window.wixEmbedsAPI)?void 0:t.getMetaSiteId()}},l=async e=>{try{return await(async e=>{var t;let{headers:n,metaSiteId:a}=e;const o=await fetch(`${window.location.origin}/_serverless/pa-google/v1/accounts/current-site/conversion-actions?metaSiteId=${a}`,{method:"GET",headers:n}),i=await o.json();return!(null==(t=i.conversionActions)||!t.length||(d=i.conversionActions,gtag("config",d[0].conversionId),0))})(e)}catch{return!1}},g=(e,t)=>{const n=o[e],a=d.find(e=>e.category.category===n);if(a){let e={send_to:`${a.conversionId}/${a.conversionLabel}`};switch(n){case"PURCHASE":{const{revenue:n,id:a,currency:o,coupon:d,...s}=t;e={...e,...c({revenue:n,id:a,currency:o,coupon:d},i),transactionId:t.id,items:r(s)};break}}gtag("event","conversion",e)}};let u,p=!1;const w=e=>{let{name:n}=e;return n===t||"googleAnalyticsConsentMode"===n},y=(n=>{let a,{isBootstrapped:o,getBootstrapPromise:i}=n;const r=()=>window[e]||[],c=()=>{a&&(window[e]=r().filter(e=>e!==a),a=void 0)},d=async function(){const e=r().find(e=>e!==a&&w(e));for(var n=arguments.length,d=new Array(n),s=0;s{if(e.name===t)try{await e.report(...n)}catch{}})(e,d);await i(),o()&>ag(...d)};return{registerIfNeeded:()=>{r().some(w)||(a={name:t,config:{},report:d},window[e]=[...r(),a])},retire:c,setTrackingId:e=>{a&&(a.config.trackingId=e)}}})({isBootstrapped:()=>p,getBootstrapPromise:()=>f}),f=(async()=>{const e=s();try{(()=>{if(window.dataLayer=window.dataLayer||[],window.consentPolicyManager&&window.consentPolicyManager.initRan){const{policy:n,defaultPolicy:a}=window.consentPolicyManager.getCurrentConsentPolicy();t("default",e(n,a))}else t("default",{advertising:!1,analytics:!1,functional:!1,waitForUpdate:500});function e(e,t){const{gdprEnforcedGeo:n}=window.wixTagManager.getConfig();return t&&n?{...e,advertising:!1,analytics:!1}:e}function t(e,t){let{advertising:n,analytics:a,functional:o,waitForUpdate:i}=t;!function(){window.dataLayer.push(arguments)}("consent",e,{ad_storage:n?"granted":"denied",ad_user_data:n?"granted":"denied",ad_personalization:n?"granted":"denied",analytics_storage:a?"granted":"denied",functionality_storage:o?"granted":"denied",personalization_storage:"granted",security_storage:"granted",...i?{wait_for_update:i}:{}})}window.document.addEventListener("consentPolicyInitialized",n=>{let{detail:a}=n;t("update",e(a.policy,a.defaultPolicy))}),window.document.addEventListener("consentPolicyChanged",e=>{let{detail:n}=e;t("update",n.policy)})})(),(()=>{const e=document.createElement("script");e.type="text/javascript",e.innerHTML="\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date())\n ",document.head.appendChild(e);const t=document.createElement("script");t.type="text/javascript",t.setAttribute("async","true"),t.setAttribute("src","https://www.googletagmanager.com/gtag/js"),document.head.appendChild(t)})(),u=l(e),p=await u,p&&y.setTrackingId(d[0].conversionId)}catch{}p||y.retire()})();y.registerIfNeeded(),window.dispatchEvent(new CustomEvent("TagLoaded",{detail:{embed:{id:"google-ads-events-reporter",config:{type:"gtag"}}}}));const v=()=>{window.wixDevelopersAnalytics.register("d6708a0e-5b2a-458e-8cfe-bdca240aa2ce",(e,t)=>{p?g(e,t):(async(e,t)=>{await u,p&&g(e,t)})(e,t)})};window.wixDevelopersAnalytics?v():window.addEventListener("wixDevelopersAnalyticsReady",v)}(),{}));
//# sourceMappingURL=ga-event-reporter-web.umd.min.js.map
if (typeof define === 'function' && define.amd && typeof require === 'function') {
require(['ga-event-reporter-web']);
}
top of page
Let Us Be Your Event Entertainment! CSz specializes in providing clean comedy. We offe a unique brand of custom entertainment that routinely exceeds client expectations.
CSz is completely flexible to meet the needs of your event. Our ability to customize the show takes the risk out of hiring live comedy.
Whether it's a conference dinner or a team outing, CSz can bring the funny to your event. We're available any day, any time, anywhere. And the laughter is guaranteed.
bottom of page