function isGoogleAnalyticsEnabled(){var status=false;if($_REVECHAT_API.integrationSettings&&$_REVECHAT_API.integrationSettings.googleAnalyticsEnabled==true){status=true;} return status;} $_REVECHAT_API.attach_prechat_form_submitted_callback(function(){if(isGoogleAnalyticsEnabled()){console.warn("attach_prechat_form_submitted_callback");if(typeof gtag=='function'){gtag('event','REVEChat PreChat',{event_category:'REVEChat PreChat',event_label:'REVEChat PreChat'});}}});$_REVECHAT_API.attach_postchat_survey_submitted_callback(function(){if(isGoogleAnalyticsEnabled()){console.warn("attach_postchat_survey_submitted_callback");if(typeof gtag=='function'){gtag('event','REVEChat PostChat',{event_category:'REVEChat PostChat',event_label:'REVEChat PostChat'});}}});$_REVECHAT_API.attach_offline_message_submit_callback(function(){if(isGoogleAnalyticsEnabled()){console.warn("attach_offline_message_submit_callback");if(typeof gtag=='function'){gtag('event','REVEChat Offline Message',{event_category:'REVEChat Offline Message',event_label:'REVEChat Offline Message'});}}});