reportFloaterStoryStepClicked method

void reportFloaterStoryStepClicked(
  1. CEPTriggerPayload payload, {
  2. required String ctaLabel,
  3. required String actionType,
  4. required String ctaRole,
  5. String? actionUrl,
  6. int? timeToActionMs,
})

An authored CTA on the window or inside a story — the real conversion.

payload is passed in rather than read from the orchestrator: the CTA is reported after its actions run, and an authored Hide among them has already cleared the active showing by then.

Implementation

void reportFloaterStoryStepClicked(
  CEPTriggerPayload payload, {
  required String ctaLabel,
  required String actionType,
  required String ctaRole,
  String? actionUrl,
  int? timeToActionMs,
}) {
  _events.toDigia(
    PipStepClicked(
      elementId: 'pip_cta',
      ctaLabel: ctaLabel,
      actionType: actionType,
      actionUrl: actionUrl,
      ctaRole: ctaRole,
      timeToActionMs: timeToActionMs,
    ),
    payload,
  );
}