When users receive welcome emails, the call-to-action will be to click through to visit their newcomer homepage. We want to be able to tell when users make edits in those sessions that begin with those click-throughs from the welcome emails. In order to do this, we want to log an event in the HomepageVisit schema when users click through. We can then use the timestamp of that event to count edits that likely happen as part of that session.
Specifically:
- We need a URL for use in the welcome emails that leads to the user's newcomer homepage, and records an event in HomepageVisit once the user is on the homepage.
- It should have referer_route value of welcomeemail-april2022.
Final result: the URL is https://es.wikipedia.org/wiki/Special:Homepage?source=welcomeemail-april2022
Implementation notes:
As long as the source=welcomeemail-april2022 query parameter, the referrer_route will be recorded.