feat(volkskrant): disable Contentsquare session replay #26

Closed
opened 2026-10-10 12:22:36 +02:00 by midas · 1 comment
Owner

Part of #16. Implement according to the decision in #20.

Feature description

Contentsquare is a session analytics and replay SDK. It records how the user scrolls and taps. de Volkskrant is the only DPG Edition brand where it is enabled. It is the most privacy-relevant tracker in the app, so it should be the first one to go.

Findings (7.52.0)

  • nl.persgroep.edition.di.TrackingModule$Companion.provideContentsquareEnabled(DpgBrand) returns true only for Volkskrant.
  • ContentsquareStartupTask.onStartup() calls CSQ.configureProductAnalytics(ctx, "2775443858", ...) and CSQ.start.
  • ContentsquareTracker:
    • calls CSQ.stop() in its constructor when Contentsquare is disabled;
    • only sends events from trackEvent when it is enabled and consent is given;
    • is updated through onMarketingConsentUpdate.
  • Manifest: com.contentsquare.android.autostart=false, but androidx.startup.InitializationProvider still runs CSQInitializer.

Approach

  • Make provideContentsquareEnabled return false. The app's own code then skips start and calls CSQ.stop().
  • Optionally remove the CSQInitializer entry from the androidx.startup provider with a resource patch.

Done when

  • Build passes; patch applied on 7.52.0.
  • Device check (after asking): no Contentsquare network traffic (hosts *.contentsquare.net) and no CSQ init in logcat.
  • Documented in the "Tracking" section of docs/apps/volkskrant.md.
Part of #16. Implement according to the decision in #20. ## Feature description Contentsquare is a session analytics and replay SDK. It records how the user scrolls and taps. de Volkskrant is the only DPG Edition brand where it is enabled. It is the most privacy-relevant tracker in the app, so it should be the first one to go. ## Findings (7.52.0) - `nl.persgroep.edition.di.TrackingModule$Companion.provideContentsquareEnabled(DpgBrand)` returns true only for Volkskrant. - `ContentsquareStartupTask.onStartup()` calls `CSQ.configureProductAnalytics(ctx, "2775443858", ...)` and `CSQ.start`. - `ContentsquareTracker`: - calls `CSQ.stop()` in its constructor when Contentsquare is disabled; - only sends events from `trackEvent` when it is enabled and consent is given; - is updated through `onMarketingConsentUpdate`. - Manifest: `com.contentsquare.android.autostart=false`, but `androidx.startup.InitializationProvider` still runs `CSQInitializer`. ## Approach - Make `provideContentsquareEnabled` return false. The app's own code then skips start and calls `CSQ.stop()`. - Optionally remove the `CSQInitializer` entry from the androidx.startup provider with a resource patch. ## Done when - [ ] Build passes; patch applied on 7.52.0. - [ ] Device check (after asking): no Contentsquare network traffic (hosts `*.contentsquare.net`) and no CSQ init in logcat. - [ ] Documented in the "Tracking" section of `docs/apps/volkskrant.md`.
Author
Owner

Implemented and verified on device in ab05dc1 as part of the Disable tracking patch.

Implemented and verified on device in ab05dc1 as part of the Disable tracking patch.
midas closed this issue 2026-10-10 15:24:26 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
midas/midas-patches#26
No description provided.