Skip to content

Release 0.72.3#3553

Merged
odlbot merged 5 commits into
releasefrom
release-candidate
Jul 1, 2026
Merged

Release 0.72.3#3553
odlbot merged 5 commits into
releasefrom
release-candidate

Conversation

@odlbot

@odlbot odlbot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Danielle Frappier

Matt Bertrand

cp-at-mit

cp-at-mit and others added 5 commits June 30, 2026 14:00
* Add GTM tracking for course enroll/unenroll

Add a small GTM helper (frontends/main/src/common/analytics/gtm.ts) that pushes events to window.dataLayer and export trackCourseEnrolled/trackCourseUnenrolled. Instrument enrollment and unenrollment success flows to send these events with the course/program title across dashboard, module, product, and enrollment dialog components (DashboardCard, ModuleCard, DashboardDialogs, CourseEnrollmentButton, ProgramEnrollmentButton, CourseEnrollmentDialog, ProgramEnrollmentDialog).

* Redirect to dashboard; update analytics & PostHog

Add a site root page that redirects to /dashboard. Update GTM event payload for unenrollment to send "course-unenrolled-name" while keeping the old "course-enrolled-name" for backward compatibility. Enhance ConfiguredPostHogProvider with FeatureFlags import and LOCAL_FLAG_OVERRIDES so feature flags can be forced for local dev; merge overrides into bootstrap flags, provide a local POSTHOG_API_KEY fallback when overrides exist, and only initialize PostHog/provider when an API key or local overrides are present to enable local testing without a PostHog account.

* fmt

* revert

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* updates

* add try catch

* Add GTM analytics utilities and instrumentation

Introduce GTM/UTM analytics utilities and tests, and instrument UI to emit tracking events. Adds new analytics modules (common/analytics/gtm.ts, common/analytics/utm.ts) with helper functions (landing/ad arrival, course/program view, start enrollment, video start/50%, addToCart, site search, catalog filter, download asset, etc.) and corresponding unit tests. Wire tracking calls into multiple components: Certificate download, AboutSection expand, Course/Program pages view, enrollment flows (start, begin checkout, addToCart), StayUpdated modal sign-ups, video player play/50% hooks and VideoResourcePlayer, search field/site search, and catalog filter. Add AnalyticsTracker in SiteProviders to record first-session landing/ad/organic social/return-visit events. Exports types for analytics params. These changes enable richer marketing attribution and GTM data-layer events across the app.

* Remove trackDownloadAsset GTM helper

Delete the trackDownloadAsset helper and its DownloadAssetParams type from common/analytics/gtm.ts, remove associated unit tests in gtm.test.ts, and remove the import/call from CertificatePage.tsx. Updates exports accordingly and cleans up unused analytics code and tests.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* format

* format

* lint

* format

* typecheck

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* update add to cart event name

* fix test

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

OpenAPI Changes

No changes detected

View full changelog

Unexpected changes? Ensure your branch is up-to-date with main (consider rebasing).

@odlbot odlbot merged commit 8c1c73b into release Jul 1, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants