Wikistories has a new feature where each story has a special share link. People who follow the link are able to view the story even though stories are otherwise visible only to registered users with the beta feature enabled.
Requests
- We want to track when a user accesses one of the share links from the editor(story builder) view OR the reader (story viewer) view
- We want to know how many users consume wikistories in a shared link, and wether they are logged-in users or anonymous users.
- We want to know the channel for every Share (whatsapp, gmail etc)
Steps
- Add events that capture these events to the wikistories_consumption_event and wikistories_contribution_event schema.
- Update the code to log the information when appropriate and use the new schema version.
- Verify that the Data Lake is receiving the new data.
Acceptance criteria
In wikistories_contribution_event
- event_type = "story_share" when users access the shared link
Add "shared_channel" column to record shared channels (NULL for other event_type)
In wikistories_consumption_event
- event_type = "story_share" when users access the shared link
- Add "user_is_anonymous" column to track whether the users are logged in or not
[] referrer_type = "shared_link" (specify shared channels if possible) if the story view or story impression is from a shared link. event_type='story_share' is sufficient to know that this consumption event is from a url that was shared.
Add "shared_channel" column to record shared channels (NULL for other event_type)