Skip to content

ECTO-2583 - Add tracking for IAP checkout - #154

Merged
Jannik (qysp) merged 1 commit into
trunkfrom
task/ECTO-2583
May 27, 2026
Merged

Jannik (qysp) merged 1 commit into
trunkfrom
task/ECTO-2583

Conversation

@qysp

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds frontend telemetry tracking for the In-App Purchase (IAP) checkout flow in the Shopware administration extension. A new helper utility emits events through Shopware.Telemetry, tagged with a source identifier and the extension's version (read at build time from composer.json and injected via Vite define). The checkout component now emits iap_checkout_initiated|confirmed|successful|failed|cancelled events, and the overview template gains data-analytics-* attributes on the GTC/conditions links. A pre-existing typo ("foud" → "found") is also corrected.

Changes:

  • Inject __SWAG_EXTENSION_STORE_VERSION__ via Vite from composer.json, with corresponding global type and Jest stub.
  • Introduce trackExtensionStoreEvent helper and wire it into the IAP checkout lifecycle (initiated/confirmed/successful/failed/cancelled).
  • Add analytics data attributes to GTC/conditions links in the checkout overview template.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Resources/app/administration/src/vite.config.ts Reads composer.json and exposes the extension version as a build-time define.
src/Resources/app/administration/src/global.types.ts Declares the new __SWAG_EXTENSION_STORE_VERSION__ global.
src/Resources/app/administration/jest.config.js Provides a stub value for the global in tests.
src/Resources/app/administration/src/util/telemetry.ts New helper wrapping Shopware.Telemetry.track with default event data.
src/Resources/app/administration/src/module/.../sw-in-app-purchase-checkout/index.ts Emits checkout lifecycle events; fixes "foud" typo.
src/Resources/app/administration/src/module/.../sw-in-app-purchase-checkout-overview/sw-in-app-purchase-checkout-overview.html.twig Adds analytics data attributes to GTC/conditions links.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@qysp Jannik (qysp) changed the title ECTO-2581 - Add tracking for IAP checkout ECTO-2583 - Add tracking for IAP checkout May 13, 2026
@qysp
Jannik (qysp) marked this pull request as ready for review May 13, 2026 11:39
@qysp
Jannik (qysp) requested a review from a team May 21, 2026 07:28
@qysp

Copy link
Copy Markdown
Collaborator Author

@shopware/product-cc-checkout Hey, could someone please have a look here? :)

@qysp
Jannik (qysp) merged commit fcbe329 into trunk May 27, 2026
3 checks passed
@qysp
Jannik (qysp) deleted the task/ECTO-2583 branch May 27, 2026 09:19
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.

5 participants