Google Analytics trackers in contact-tracing app code ‘risks re-identification’
- 15 May 2020

Users of the NHS contact-tracing app could be re-identified due to the code including Google Analytics tracking, a coder has said.
The appās code was made available on GitHub on 7 May, four days after its trial on the Isle of Wight was announced.
NHSX has always maintained the code would be made publicly available, but currently only the front-end code has been published.
The team behind the app have done a āreally good jobā within a short space of time āparticularly given some of the technology constraintsā, but there were some issues with the code, open source advocate Rob Dyke told Digital Health News.
Namely, the developerās decision to use Google Analytics tracking to trace users.
āFor all of the āthis is supposed to be anonymousā, the cut of the code that was released did include Google Analytics tracking, and a few other trackers that were in there,ā Dyke said.
āSome of them you couldnāt really get around because you need to have a degree of tracking otherwise itās not a track and trace app. But the sort of tracking I would expect would be wholly within the architecture of the application.ā
Using Google Analytics tracking could enable a user to be reidentified, Dyke said, although itās not a āhuge riskā but more of an āannoyance and a disappointmentā.
The tracker could be used by people within the NHS who had access to the system to reidentify the device and possibly the user, but was unlikely to be used by malicious attackers.
āIn particular, if a user clicked on the privacy policy, ironically, it would use tracking identifiers including some status notifications, such as if the individual had had a notification from the back end,ā he told Digital Health News.
āSo it seemed to me that it would pass the tracking ID, plus some status information, to Google Analytics which would have included the exact device, type, the IP address the user was calling from ā the usual stuff that Google Analytics gives you.
āAnd it would have allowed you to be linked from your app to the privacy policy and if you went anywhere else on the NHS estate, that tracking cookie would have followed you all the way through.ā
Not-so-open source
Dykes biggest concern with the appās code was that it was not developed in the open, despite NHSX committing to being open and transparent in its development of the contact-tracer.
The organisation has been an advocate for, and previously committed to, open sourcing its work.
āThis is an organisation that says theyāre going to develop in the open and this was not developed in the open,ā Dyke said.
āWe had an army of volunteers for the NHS to do things like shopping and delivering, but you could have had an army of people contributing to this code as well.
āIt shows, for me, that they missed an opportunity to actually live their behaviours and values around open source.ā
Instead, NHSX ādumpedā 950 files on GitHub rather than showing itās incremental development.
By 11 May more than 700 people were actively watching the iOS and Android code respectively and eight developers had contributed new code to fix bugs in the original system.
āBecause itās a dump of code it doesnāt have the things that would make it easier for developers to engage with, like automated testing. We donāt even have a back-end yet to test against,ā Dyke added.
āThere are a lot of expertise and a lot of really good willed people who would love to be getting involved, but because it wasnāt open from the beginning itās going to be harder for them.ā
[themify_box icon=”info” color=”gray”]
More on Covid-19 contact tracing apps
- NHSX sets up ethics advisory board to oversea contact-tracing app
- Contact-tracing apps could ācatastrophicallyā hamper trust, academics warn
- Imperial white paper outlines key data questions for contact-tracing tech
- āAbsence of evidenceā for Covid-19 contact-tracing apps, review finds
- NHSX must be āupfrontā about contact-tracing app, privacy group says
- NHSX differs with Apple and Google over contact-tracing app
- Data from NHS contact-tracing app ‘to be kept for research purposes’
[/themify_box]
Apple and Google or NHSX
NHSX has faced fierce criticism on its decision to differ from Apple and Googleās approach to contact tracing.
Choosing a ācentralisedā approach poses a greater risk to privacy through mission creep, potential reidentification and malicious use, experts have warned.
Reports have surfaced that NHSX is working on a second app based on Apple and Googleās technology, with privacy concerns being sourced as a reason the organisation changed its stance.
Dyke predicts NHSX would have to switch to Apple and Googleās approach to reduce privacy concerns and encourage uptake.
āAt the moment the app is not available in the app stores, the only way to install it is manually which requires you to change a setting on your phone to say āallow installs from non-trusted sourcesā,ā he told Digital Health News.
āA leaflet comes through your door and you scan a QR code or you visit a URL and that has a webpage where you can download the app.ā
It will only be available on the app store if Apple and Google accept it, he added.