Research: design the "Disable tracking" patches for the DPG apps #20
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #16.
Goal
Decide the shape of the tracking patches before implementing the per-SDK issues:
What we know
The two platforms dispatch tracking very differently. A shared
dpg/trackingpatch only makes sense for the parts that really are the same SDK.de Volkskrant (7.52.0)
nl.persgroep.edition.domain.analytics.events.tracking.AnalyticsDispatcherImpl.track()routes both Firebase and Usabilla events.updateConsent(marketing, cim)is called.logEventis the bus for everything else. The Google Tag Manager containerassets/containers/GTM-KQGZHLB.jsonforwards Firebase events to custom tags:be.persgroep.tracking.TrackingEventsTransmitter);ComscoreEventTransmitter);CimTrackerNoop).De Gelderlander (9.21.1)
ch(AnalyticsService, anchor"com.kubusapp.analytics.AnalyticsService$trackQualitativeReach$1$1"). It holds a static set of strategies.n24(Firebase) andomd(Usabilla).g9d(TrackingStarter) does several things at runtime:firebase_analytics_collection_enabled=false;Shared between the apps
be.persgroep.tracking.config.InitConfigHandler, unobfuscated in Volkskrant).CxSdkInitializer.Questions to answer
dpg/?InitConfigHandler?sendEvent?be.dpgmedia.privacy) must still appear and store the choice.ConsentManager.track()becomes a no-op, make sure the dispatcher's queue can't grow without limit.userProfileSynchronizerruns from the ad startup task.Deliverables
docs/apps/*.md.Midas Settings
Proposed default:
## Tracking Architecture & Design Decisions
Investigation across the decompiled codebases (e.persgroep.android.news.mobilevk 7.52.0 and com.mecom.gelderlander.nl 9.21.1) is complete. The tracking architecture has been documented in docs/apps/volkskrant.md and docs/apps/gelderlander.md.
1. Patch shape & naming
2. What is shared across apps (dpg/)
l.midasvo.patches.dpg.tracking.disableSnowplowPatch (unnamed, depended on by each app's disableTrackingPatch).
3. Consent safety
4. Volkskrant queue safety (#27)
5. Login & user profile safety
Implementation roadmap for tracking sub-issues:
24 in g9d.g(), prevent ch.r(true) from enabling collection, or drop in
24.a/
24.c.