function DSLogEvent(eventName) { try { var events = ['Click_ConfirmSigning','Click_ConsumerDisclosureCheckbox','Click_ReviewDocumentHasConsumerDisclosure','Click_ReviewDocumentNoConsumerDisclosure','Email_LinkFollowed','Email_LinkActivation','Email_LinkActivationRecipient','PostSigning_SSOLogin','Signing_ViewCoreSigning','Signing_ViewSigningComplete','Signing_ViewWelcomeDialogHasConsumerDisclosure','Signing_ViewWelcomeDialogNoConsumerDisclosure','SigningSite_Tracking_Activated','SigningSite_Tracking_Successful','SigningSite_Tracking_Failed','SigningSite_Tracking_Log','SigningSite_Tracking_Timer','SigningSite_Tracking_SignNext','FedEx_Print_Successful','FedEx_Print_Failed','FedEx_Print_Opened','Account_Created','Account_Enrolled','Account_Enroll_Failed','Signing_LegacyAttachmentModeUsed','AB_Test_Validating','AB_Test_JSON_Invalid','AB_Test_Enabled_For_Signer','New_Signing_Index','New_Signing_Document_Shown','Signing_StartInSession','Signing_EmailStart','Signing_ClassicAppStart','DocuSign_Initiated','DocuSign_Completed','DocuSign_Completed_Wet','Signing_PingExternalSent','Signing_PingExternalCanceled','InterruptCompSign_Set','ExternalHookURL_Set','Signing_External_Redirect','Signing_Internal_Redirect','V01_Fallback','V02_Supported','Universal_Link_Used','Universal_Link_Unsupported','Signing_NoAccess','TraceToken_Invalid','V02_Forced_When_Not_Supported','Payments_GetClientToken_Successful','Payments_GetClientToken_Failure','Payments_Authorize_Successful','Payments_Authorize_SCA_Successful','Payments_Authorize_Failure','Payments_Authorize_SCA_Failure','Payments_Save_Successful','Payments_Save_Failure','Payments_BankAccount_Verification_Successful','Payments_BankAccount_Verification_Failure','Payments_Notification_Email_Sent','InsessionFlowSelectByEvenlopeIdUserIdRecipientId_Found','InsessionFlowSelectByEvenlopeIdUserIdRecipientId_NotFound','InsessionFlowSelectByEvenlopeIdUserIdUsed','Signing_PowerFormFinishLater_InvalidEmail','Signing_PowerFormFinishLater_SendingEmail','Signing_PowerFormFinishLater_InvalidEnvelope','Email_AccessLink_ExpiredByClicks','Email_AccessLink_ExpiredByTime','Email_AccessLink_Authenticated','Recipient_Finished','ClientType','Email_AccessLink_ExpiredByNotification','EmbeddedRecipientRedirect_toDocusign','EmbeddedRecipientRedirect_toPartner','AdmFetchData_UpdateTabs','AdmFetchData_Executed','AbusiveSenderCheck_EnvelopeBlocked','AbusiveSenderCheck_EnvelopeAllowed','Signing_ServerRedirectReduced','Signing_1DS_Redirect']; try { if (events.indexOf(eventName) < 0) { return; } } catch (err) { /* Older IE browsers do not handle .indexOf on array's */ if (events.toString().indexOf(eventName) < 0) { return; } } if (XmlLoader != null) { var url = "DocuSignXML.aspx?logevent=1&action=" + eventName; if (window.GetTime) url += GetTime(false); var xLogEvent = new XmlLoader(url); xLogEvent.sendGet(); /* Also log this event to mixpanel, humanize event name */ //mixpanel.track('Signing:' + eventName.replace(/([A-Z])/g, ' $1').replace(/_/, '')); } } catch (err) { } }