!function(c,g){"use strict";function n(i){var a=this;i.on("afterOpen",function(){a.track("open")}).on("afterClose",function(){a.track("close")}),(i.GATracker=this).track=function(a){var n=i.options.ga_tracking_event_category,t=i.options.ga_tracking_event_label;this.gaLoad("event","send",{event_category:n,event_action:a,event_label:t,event_callback:function(){i.log("Google Analytics Event Tracked. Action: "+a+", Category: "+n+", Label: "+t)},send_to:i.options.ga_tracking_id})},this.gaLoad=function(a,n,t){var e;function o(){dataLayer.push(arguments)}void 0!==o&&void 0!==c.dataLayer||((e=g.createElement("script")).async=!0,e.src="https://www.googletagmanager.com/gtag/js?id="+i.options.ga_tracking_id,g.getElementsByTagName("head")[0].appendChild(e),c.dataLayer=c.dataLayer||[],o("js",new Date)),o("config",i.options.ga_tracking_id),o(a,n,t)}}EngageBox&&EngageBox.onReady(function(){EngageBox.getInstances().forEach(function(a){a.options.ga_tracking&&a.options.ga_tracking_id&&new n(a)})})}(window,document);

