feat(volkskrant): stop Firebase Analytics and the GTM-forwarded trackers (Snowplow, comScore) #27
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#27
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
In de Volkskrant, Firebase Analytics
logEventis the single upstream point for most tracking. A Google Tag Manager container forwards Firebase events to Snowplow (DPG), comScore and CIM. Stopping events at the dispatcher or at Firebase stops all of them at once.Findings (7.52.0)
nl.persgroep.edition.domain.analytics.events.tracking.AnalyticsDispatcherImpl(interface...feature.component.tracking.domain.AnalyticsDispatcher).track(TrackingEvent)routesFirebaseTrackingEventtoFirebaseTracker.trackEventandUsabillaTrackingEventtoUsabillaTracker.updateConsent(boolean marketing, boolean cim)runs. That fans out to CimTracker, FirebaseTracker (allow_personalized_ads, collection on), Contentsquare anduserProfileSynchronizer.TrackingDelegateImpl.track(TrackingEvent, boolean).FirebaseTracker.trackEventcallslogEvent. Its constructor sets the user property "app_version".assets/containers/GTM-KQGZHLB.json. Its custom tags:be.persgroep.tracking.TrackingEventsTransmitter/SerialisedContextEventsTransmitter(Snowplow);nl.persgroep.edition.domain.analytics.comscore.ComscoreEventTransmitter(Analytics.notifyViewEvent);nl.persgroep.edition.domain.analytics.cim.CimTagProvider;...analytics.consent.Is*ConsentGiven.FirebaseAnalyticsis provided bynl.persgroep.edition.injection.AnalyticsModule$Companion.provideFirebaseAnalytics.Approach (pick one in #20)
FirebaseTracker.trackEvent. This keeps Usabilla routing intact, which #36 handles separately.execute(Map)of each GTMCustomTagProvider, to keep Firebase but drop the forwarded trackers.setAnalyticsCollectionEnabled(false), or skip the consent fan-out to Firebase, so Firebase's own automatic events (screen_view,session_start) stop too.AnalyticsDispatcherImpl.tracka no-op before consent without checking the queue. It must not grow without limit.Done when
app-measurement.comtraffic and no Snowplow/comScore requests in a proxy or logcat; consent dialog unaffected.docs/apps/volkskrant.md.Implemented and verified on device in
ab05dc1as part of the Disable tracking patch.