Skip to content

Custom Analytics

List of Whatfix functions

Whatfix functions enable you to utilize additional functionalities and configurations using code that is added in the Advanced Customization section. See Advanced Customization.

Here is an example function to display a pop-up when the user completes a specific step in a Flow.

function onNext(event) 
{
  if(event.flow_id == '+' && event.step == '+')
  {
    var pop1 = document.querySelectorAll('.gwt-PopupPanel')[1];
    pop1.parentNode.removeChild(pop1);
  }
}
window._wfx_settings = {onNext: onEvent};

Flow Functions

FunctionPurposeExample Code Snippet
OnStartCallback after the Flow startsjavascript function OnStart(event){ track(event.path, event.flow_id, event.flow_title, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id, event.step); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var interaction_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = { trackLiveStart:OnStart };
OnMissCallback when Flow step is missedjavascript function OnMiss(event) { track(null, event.flow_id, event.flow_title, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id, null, event.content); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var interaction_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = {trackLiveMiss:OnMiss};
OnCloseCallback when the Flow is closedjavascript function OnClose(event) { track(null, event.flow_id, event.flow_title, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id, null, event.content); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var interaction_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = { trackLiveClose:OnClose };
OnEndCallback when the Flow is completejavascript function OnEnd(event) { track(null, event.flow_id, event.flow_title, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id, null, event.content); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var interaction_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = {trackLiveEnd:OnEnd};
OnFlowFeedbackCallback when the Flow feedback is submittedjavascript function OnFlowFeedback(event) { track(null, event.flow_id, event.flow_title, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id, null, event.content); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var interaction_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = {trackFlowFeedback:OnFlowFeedback};
onBeforeEndCallback before the Flow endsjavascript function onBeforeEnd(event) { //Your implementation goes here } window._wfx_settings = {onBeforeEnd: onEvent};
onBeforeShowCallback before the step is shownjavascript function onBeforeShow(event) { //Your implementation goes here } window._wfx_settings = {onBeforeShow: onEvent};
onAfterShowCallback after the step is shownjavascript function onAfterShow(event) { //Your implementation goes here } window._wfx_settings = {onAfterShow: onEvent};
onBeforeStartCallback before the Flow startsjavascript function onBeforeStart(event) { //Your implementation goes here } window._wfx_settings = {onBeforeStart: onEvent};
onNextCallback on click of next buttonjavascript function onNext(event) { //Your implementation goes here } window._wfx_settings = {onNext: onEvent};

Self Help Functions

FunctionPurposeExample Code Snippet
onWidgetClickCallback when the user clicks on the Self Help and opens itjavascript function onWidgetClick(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //path : '/widget' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackSelfHelpOpened:onWidgetClick};
OnSelfHelpCloseCallback when the Self Help widget is closedjavascript function OnSelfHelpClose(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //path : '/widget' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackSelfHelpClosed:OnSelfHelpClose};
OnSelfHelpShowCallback when the Self Help widget appears on the user screen.javascript function OnSelfHelpShow(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //path : '/widget' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackSelfHelpShown:OnSelfHelpShow};
OnSelfhelpSearchCallback when user searches in Self Helpjavascript function OnSelfhelpSearch(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //path : '/widget' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackSearch:OnSelfhelpSearch};
OnGroupOpenCallback when user opens a groupjavascript function OnGroupOpen(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //path : '/widget' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackGroupOpen:OnGroupOpen};
OnGroupCloseCallback when user closes a groupjavascript function OnGroupClose(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //path : '/widget' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackGroupClose:OnGroupClose};
OnSearchCrossCallback when the cross icon in the search field is clickedjavascript function OnSearchCross(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //path : '/widget' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackSearchCross:OnSearchCross};
OnSearchScrollCallback when a user scrolls in Self Helpjavascript function OnSearchScroll(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //path : '/widget' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackSearchScroll:OnSearchScroll};
OnVideoStartCallback when video content is clickedjavascript function OnVideoStart(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //path : '/widget' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackVideoStart:OnVideoStart};
OnLinkStartCallback when link content is clickedjavascript function OnLinkStart(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //path : '/widget' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackLinkStart:OnLinkStart};
OnTextStartCallback when text content is openedjavascript function OnTextStart(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //path : '/widget' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackTextStart:OnTextStart};
OnTextEndCallback when text content is closedjavascript function OnTextEnd(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //path : '/widget' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackTextEnd:OnTextEnd};

Task List Functions

FunctionPurposeExample Code Snippet
onWidgetClickedCallback when the Task List widget is clickedjavascript function onWidgetClicked(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //src_id : '/tasker' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackTaskListOpened:onWidgetClicked};
OnWidgetLoadedCallback when the Task List is openedjavascript function OnWidgetLoaded(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //src_id : '/tasker' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackTaskListShown:OnWidgetLoaded};
OnWidgetScrollCallback when the tasks in the Task List is scrolledjavascript function OnWidgetScroll(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //src_id : '/tasker' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackWidgetScroll:OnWidgetScroll};
OnWidgetCloseCallback when the Task List is closed using the close iconjavascript function OnWidgetClose(event) { track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); //src_id : '/tasker' } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackTaskListClosed:OnWidgetClose};

Pop-up Functions

Analytics Callbacks

FunctionPurposeExample Code Snippet
trackNewPopupShownCallback when the Pop-up is loaded.javascript function trackNewPopupShown(event) { //path : '/popup/loaded’ track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackNewPopupShown:trackNewPopupShown};
trackNewPopupSkipCallback when the Pop-up is skipped by the user.javascript function trackNewPopupSkip(event) { //path : '/popup/clicked/skip’ track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackNewPopupSkip:trackNewPopupSkip};
trackNewPopupStartFlowCallback when clicking the Pop-up leads to another Flow.javascript function trackNewPopupStartFlow(event) { //path : '/popup/clicked/flow/{buttonText}’ track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackNewPopupStartFlow:trackNewPopupStartFlow};
trackNewPopupStartUrlCallback when clicking the Pop-up leads to a link or a URL.javascript function trackNewPopupStartUrl(event) { //path : '/popup/clicked/url/{buttonText}’ track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackNewPopupStartUrl:trackNewPopupStartUrl};
trackNewPopupCloseCallback when the Pop-up is closed.javascript function trackNewPopupClose(event) { //path : '/popup/clicked/close’ track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackNewPopupClose:trackNewPopupClose};
trackNewPopupDoNotShowCallback when the user clicks Do Not Show Again option on a Pop-up.javascript function trackNewPopupDoNotShow(event) { //path : '/popup/checked/dontShow’ track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackNewPopupDoNotShow:trackNewPopupDoNotShow};
OnEndPopUpCloseFromButtonCallback when the Pop-up (after the Flow) is closed using the CLOSE button.javascript function OnEndPopUpCloseFromButton(event) { //path : '/popup/guided_popup/start/popup_name' or '/popup/smart_popup/start/popup_name' track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackEndPopUpCloseFromButton:OnEndPopUpCloseFromButton};
OnEndPopUpCloseFromCrossCallback when the Pop-up (after the Flow) is closed using the close icon.javascript function OnEndPopUpCloseFromCross(event) { //path : '/popup/guided_popup/start/popup_name' or '/popup/smart_popup/start/popup_name' track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackEndPopUpCloseFromCross:OnEndPopUpCloseFromCross};
OnEndPopUpCloseFromFlowClickCallback when the close icon in the Flow tip is clicked.javascript function OnEndPopUpCloseFromFlowClick(event) { //path : '/popup/guided_popup/start/popup_name' or '/popup/smart_popup/start/popup_name' track(event.path, event.ent_id, event.src_id, event.on_id, event.interaction_id, event.user_id); } function track(var path, var ent_id, var src_id, var on_id, var interaction_id, var user_id){ //Your implementation goes here console.log(path + ", " + ent_id + ", " + src_id + ", " + on_id + "," + ", " + interaction_id + ", " + user_id); } window._wfx_settings.tracker = {trackEndPopUpCloseFromFlowClick:OnEndPopUpCloseFromFlowClick};

Non-analytics Callbacks

FunctionPurposeOnline or Offline?Example Code Snippet
onPopupCloseCallback when the Pop-up is closed.Onlinejavascript function onPopupClose(object) { //Your implementation goes here } window._wfx_settings = {onPopupClose: onPopupClose};
onPopupSuccessCallback when a Flow or content is triggered from a Pop-up.Onlinejavascript function onPopupSuccess(object) { //Your implementation goes here } window._wfx_settings = {onPopupSuccess: onPopupSuccess};
onPopupSkipCallback when the Pop-up is skipped by the user.Onlinejavascript function onPopupSkip(object) { //Your implementation goes here } window._wfx_settings = {onPopupSkip: onPopupSkip};
onBeforePopUpShowCallback before the Pop-up is displayed to the user.Onlinejavascript function onBeforePopUpShow(object) { //Your implementation goes here } window._wfx_settings = {onBeforePopupShow: onBeforePopupShow};
onPopupViewCallback when the Pop-up is viewed by the user.Offlinejavascript function onPopupView(object) { //Your implementation goes here } window._wfx_settings = {onPopupView: onPopupView};
onDontShowPopupCallback when the user clicks Do Not Show option in a Pop-up.Offlinejavascript function onDontShowPopup(object) { //Your implementation goes here } window._wfx_settings = {onDontShowPopup: onDontShowPopup};
getPopupViewCountCallback to get the number of users who viewed the Pop-up.Offlinejavascript function onPopupViewCount(object) { //Your implementation goes here } window._wfx_settings = {onPopupViewCount: onPopupViewCount};

Smart Tip Functions

FunctionPurposeExample Code Snippet
onStaticShowCallback for each time the Smart Tip is shownjavascript function onShow(event) {//path : '/smart_tip/live/step1' track(event.path, event.flow_id, event.flow_title, event.ent_id, event.src_id, event.on_id, event.user_id, event.step); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = {trackStaticShow:onShow};
onStaticCloseCallback when the Smart Tip is closed by pressing the cross iconjavascript function onClose(event) {//path : '/smart_tip/live/close1' track(event.path, event.flow_id, event.flow_title, event.ent_id, event.src_id, event.on_id, event.user_id); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = {trackStaticClose:onClose};
onStaticMissCallback if the step is missedjavascript function onMiss(event) {path : '/smart_tip/live/miss1' track(event.path, event.flow_id, event.flow_title, event.ent_id, event.on_id, event.user_id, event.step); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = {trackStaticMiss:onMiss};
OnValidationValidCallback when validation is passedjavascript function OnValidationValid(event) {path : '/smart_tip/live/miss1' track(event.path, event.flow_id, event.flow_title, event.ent_id, event.on_id, event.user_id, event.step); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = {trackTipValidationValid:OnValidationValid};
OnValidationErrorCallback when a validation error occursjavascript function OnValidationError(event) {path : '/smart_tip/live/miss1' track(event.path, event.flow_id, event.flow_title, event.ent_id, event.on_id, event.user_id, event.step); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = {trackTipValidationError:OnValidationError};
OnValidationRectifiedCallback when a validation error is rectifiedjavascript function OnValidationRectified(event) {path : '/smart_tip/live/miss1' track(event.path, event.flow_id, event.flow_title, event.ent_id, event.on_id, event.user_id, event.step); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = {trackTipValidationRectified:OnValidationRectified};

Beacon Functions

FunctionsPurposeExample Code Snippet
OnBeaconClickedCallback when a Beacon is clickedjavascript function OnBeaconClicked(event) { track(event.path, event.flow_id, event.flow_title, event.ent_id, event.src_id, event.on_id, event.user_id, event.step); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = {trackBeaconClicked:OnBeaconClicked};
OnBeaconShownCallback when a Beacon appears on the user screenjavascript function OnBeaconShown(event) { track(event.path, event.flow_id, event.flow_title, event.ent_id, event.src_id, event.on_id, event.user_id); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = {trackBeaconShown:OnBeaconShown};
OnWidgetLoadedEventCallback when a Beacon content is loadedjavascript function OnWidgetLoadedEvent(event) { track(event.path, event.flow_id, event.flow_title, event.ent_id, event.src_id, event.on_id, event.user_id); } function track(var path, var flow_id, var flow_title, var ent_id, var src_id, var on_id, var step, var content, var user_id){ //Your implementation goes here console.log(path + ", " + flow_id + ", " + flow_title + ", " + ent_id + ", " + src_id + ", " + on_id + ", " + interaction_id + ", " + user_id step + ", " + user_id + ", " + content); } window._wfx_settings.tracker = {trackWidgetLoadedEvent:OnWidgetLoadedEvent};