reportWelcomeCtaClicked method

void reportWelcomeCtaClicked()

Fired for the survey's single Clicked engagement signal — on the welcome screen's start CTA, or on the first question's CTA when the welcome screen is hidden. Only a physical welcome Start also emits the coarse CEP click.

Implementation

void reportWelcomeCtaClicked() {
  final state = _surveyOrchestrator.state;
  if (state == null) return;
  if (_clickedSurveyToken == state.token) return;
  _clickedSurveyToken = state.token;
  _events.toDigia(
    const SurveyClicked(elementId: 'welcome_start'),
    state.payload,
  );
}