feat: disable DPG's Snowplow tracking SDK in de Volkskrant and De Gelderlander #29
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#29
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. Implement according to the decision in #20.
Feature description
Both apps bundle DPG's own tracking SDK (
be.persgroep.tracking, Snowplow-based). It is initialised at app start and receives consent updates. Because it is the same SDK in both apps, this is a candidate for a shared unnamed patch underdpg/tracking/, pulled in by each app's tracking patch.Findings
de Volkskrant (7.52.0)
nl.persgroep.edition.di.TrackingModule$Companion.provideTrackingInitConfigHandler(...)buildsbe.persgroep.tracking.config.InitConfigHandler.TrackingSDK, then callsSnowplowInitializer.init.TrackingStartupTask. The task'sonStartup()only logs "StartupTask#onStartup tracking SDK completed & enabled=".TrackingEventsTransmittercustom tag (see #27).De Gelderlander (9.21.1)
x8d.b()(called fromMainApplication.onCreate) runsnew be.persgroep.tracking.config.InitConfigHandler(ctx, new Platform("gelderlander"), env, cb, options, ...).x8d.c()andInitConfigHandler.setConsent.be.persgroep.trackingis obfuscated in this app. If it is, the shared patch needs anchors that work in both.Approach
SnowplowInitializer.init, or tracker creation inTrackingSDK) so it works in both apps.InitConfigHandlerconstructible andsetConsentcallable; both apps call into it.Done when
docs/apps/*.md.Implemented and verified on device in
ab05dc1as part of the Disable tracking patch.