Braze JavaScript SDK
    Preparing search index...

    Function logInAppMessageHtmlClick

    • Logs that the user clicked on a link in an html in-app message. This is done automatically when the user clicks on a message generated by [[showInAppMessage]], and should only be called if you're bypassing that method and manually displaying the message in your own code.

      Parameters

      • inAppMessage: HtmlMessage

        The message that was clicked

      • OptionalbuttonId: string

        A button id to associate this click with for analytics

      • Optionalurl: string

        The url that was clicked

      Returns Promise<boolean | undefined>

      Resolves to a boolean that indicates whether the event was successfully enqueued. Resolves to undefined if the SDK is not initialized.