feat: wire amplitude v2 autocapture toggles#3091
Conversation
|
👋 I'm rudder-devbox. I opened this PR from a Linear ticket. Leave an inline comment on the diff — pick a line, add your comment, and Top-level PR comments need |
size-limit report 📦
|
|
Root cause: the Security checks job failed in I fixed the production lockfile resolution so the Validation: Pushed commit: 6832730 |
|
Root cause: the Security checks job failed in I fixed the production lockfile resolution so the audited root Validation: Pushed commit: 2574f24 |
|



PR Description
Wires all Amplitude Browser SDK v2
autocapturesub-feature flags from destination config while preserving the v1 init path and existing user-instrumentedrudder.page()translation behavior.Adds config constants and helper getters for the new v2 autocapture controls:
autoCapturePageViews,pageUrlEnrichment,webVitals,fileDownloads,frustrationInteractions,networkTracking,elementInteractions, andformInteractions. Maps webtrackSessionEventstoautocapture.sessions, keeps v2 attribution inverted from the existingattributionconfig, and keeps all new toggles defaulting tofalse.Validation:
npm install --package-lock=false --ignore-scripts --no-audit --no-fundwas used to install dependencies becausenpm cifailed before tests due the checked-inpackage.json/package-lock.jsonbeing out of sync (typescript@5.9.3andconventional-commits-filter@5.0.0missing from lock) and the environment running Node v20 while.nvmrcspecifies 24.cd /workspace/rudder-sdk-js/packages/analytics-js-integrations && npm run test -- Amplitude/.passed: 2 test suites passed, 85 tests passed.cd /workspace/rudder-sdk-js/packages/analytics-js-integrations && npm run check:lintpassed with existing warnings only: 0 errors, 214 warnings.git -C /workspace/rudder-sdk-js diff --checkpassed.Linear task (optional)
SDK-5014
Cross Browser Tests
Please confirm you have tested for the following browsers:
Sanity Suite
Security