guardian / guardian/dotcom-rendering

Potential mobile web referral url tracking issue

Open
#8,238 1 comment 0 reactions 0 assignees View on GitHub
Team Candidate: WebX
Dominant language
TypeScript
Stars
274
Forks
34
Avg merge
2d 22h
Merged PRs (30d)
121

Description

email by Samuel Parker (7/7):

> I'm just emailing about a potential tracking issue with referral urls I discovered recently. I was trying to figure out if there is a way to tell when a user has navigated to a page by swiping back on their smartphone browser. I thought that in these cases, perhaps the referral_url_raw would be the page they were one before (i.e. the page they were viewing when they swiped back).

> To test this, I figured out what my own browser id was for my phone and then tested clicking through a chain of articles starting from the front, and then pressing back to go back through and eventually reach the front again. Looking at my activity in pageview, when you press back to return to a page, it reloads the referrer_url_raw from the original pageview a second time, rather that the page they were on when they pressed back, which doesn't feel accurate to me.

> Quite hard to describe in text, so here's some [sample data](https://docs.google.com/spreadsheets/d/12xgzgvSTtIbm2lv7pKtjv9cuqAv6fMxL7ZgoMSQgYcE/edit#gid=0) showing what I mean - they 'referrer_url_raw's highlighted red are the ones that I think don't look right. I'm not sure if this is replicated on desktop but I can quite easily repeat the same process and see if needed.

> Further to this, I've done some more checks on my own browser IDs and it appears that the issue also occurs with external referrals - for example, if you access a page view Google, and then click on from that page and keep returning back to it via pressing the back button, it will list it as a Google referral each time you return to the page. As referrer_significant_site seems to be affected as well as referrer_url_raw, this means that we are inflating the number of page views from external referrers, although it's unclear by how much.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.