function gtag(){dataLayer.push(arguments)}script=document.createElement("script");script.src="https://www.googletagmanager.com/gtag/js?id="+bwb.store.state.googleAnalyticsAccountId;document.body.append(script);window.dataLayer=window.dataLayer||[];gtag("js",new Date);gtag("config",bwb.store.state.googleAnalyticsAccountId,{anonymize_ip:!bwb.store.state.allowAllCookies,allow_google_signals:bwb.store.state.allowAllCookies}),function(n){bwb.syndeticsTracking={init:function(){bwb.store.state.allowAllCookies&&(this.bindClickEvent(".unbound_rec_section a.unbound_seemore_link","SeeMoreGreatRecommendations_ButtonClick"),this.bindClickEvent(".unbound_tagbox td","BrowseTag_TagClick"),this.bindClickEvent(".unbound_tagbox a","BrowseTag_ButtonClick"),this.bindClickEvent("a.author","MoreByThisAuthor_ButtonClick"),this.bindClickEvent("a.lookinside","SeeFullExcerpt_ButtonClick"),this.bindClickEvent(".unbound_patronreviews a.unbound_seemore_link","SeeMoreReviews_ButtonClick"),this.bindClickEvent(".unbound_reviews_writelink > a","WriteYourOwnReview_Link"),this.bindClickEvent(".unbound_awards a.unbound_seemore_link","SeeAllAwards_ButtonClick"),this.bindClickEvent(".unbound_award_icon img","Award_ButtonClick"),this.bindClickEvent(".unbound_lb_launch a.unbound_lightbox.series","SeeFullSeries_ButtonClick"),this.bindClickEvent(".unbound_lb_launch a.unbound_lightbox.bookprofile","BrowseProfile_ButtonClick"),console.log("syndeticsTrackingInit"))},bindClickEvent:function(t,i){var r=this.loadEventLabel();n(t).on("click",function(){gtag("event",i,{event_category:"Syndetics",event_label:r})})},emitEvent:function(n){var t=this.loadEventLabel();gtag("event",n,{event_category:"Syndetics",event_label:t})},loadEventLabel:function(){var t=bwb.store.state.syndeticsTrackingMode.toLowerCase(),n="Production";switch(t){case"test":n="TestSite";break;case"beta":n="BetaSite"}return n}}}(jQuery)