wordpress-mobile / wordpress-mobile/WordPress-iOS

[Reader] Add number of followed sites and tags to Reader analytics

Open
#22,607 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Task Reader
Dominant language
Swift
Stars
3.9k
Forks
1.2k
Avg merge
23h 51m
Merged PRs (30d)
58

Description

On Android, we aimed to avoid adding a new network call to fetch the number of subscriptions/tags. Therefore, we integrated with the existing logic that synchronizes tags and sites, triggering a new analytics event for this purpose. This approach serves as an initial step to incorporate this data into our analytics without extra fetches on screens where this information isn't displayed, thereby minimizing data usage and potential performance issues, while ensuring we track the most current information.

Event name: reader_following_fetched
Properties:

  • type (String): either sites or tags.
  • count (int): number of following sites or tags (depending on type).

Note: When synching the number of sites, we should use the field total_subscriptions returned by the API https://developer.wordpress.com/docs/api/1.2/get/read/following/mine/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by locating the existing Reader logic that synchronizes followed sites and tags, then review how analytics events are emitted and how the API exposes total_subscriptions. Done means emitting reader_following_fetched for sites and tags with the correct type and count without adding a separate network call.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
analytics, mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.