Skip to content

[AT-216] - track the submit source on assistant_submit - #107

Open
dmitrycnstrc wants to merge 1 commit into
mainfrom
AT-216/add-tracking-for-pre-gen-click-on-asa-ui-library-and-document
Open

dmitrycnstrc wants to merge 1 commit into
mainfrom
AT-216/add-tracking-for-pre-gen-click-on-asa-ui-library-and-document

Conversation

@dmitrycnstrc

Copy link
Copy Markdown
Contributor

A click on a suggested question is an intent submission, but the beacon carried no way to tell it apart from a typed query, so engagement reports either ignored those clicks or counted them as typed input.

sendMessage already knew where an intent came from and passed it to the onAssistantSubmit callback; that value now also travels on the assistant_submit beacon as source (input / suggestion, matching the values the behavioral-actions API documents).

Also documents the tracking surface in the Integration Guide — events, their callbacks, the callbacks / section provider props, and how to send these events from a custom web or native mobile integration, where the click-driven submit is the commonly missed case.

Pull Request Checklist

Before you submit a pull request, please make sure you have the following:

  • I have added or updated TypeScript types for my changes, ensuring they are compatible with the existing codebase.
  • I have added JSDoc comments to my TypeScript definitions for improved documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added any necessary documentation (if appropriate).
  • I have made sure my PR is up-to-date with the main branch.

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no API changes)
  • Documentation content changes
  • TypeScript type definitions update
  • Other... Please describe:

A click on a suggested question is an intent submission, but the beacon carried
no way to tell it apart from a typed query, so engagement reports either ignored
those clicks or counted them as typed input.

`sendMessage` already knew where an intent came from and passed it to the
`onAssistantSubmit` callback; that value now also travels on the
`assistant_submit` beacon as `source` (`input` / `suggestion`, matching the
values the behavioral-actions API documents).

Also documents the tracking surface in the Integration Guide — events, their
callbacks, the `callbacks` / `section` provider props, and how to send these
events from a custom web or native mobile integration, where the click-driven
submit is the commonly missed case.
@dmitrycnstrc
dmitrycnstrc requested a review from a team as a code owner September 10, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant