Closed ayushtom closed 8 months ago
We add the following endpoints in this PR -
/analytics/get_quest_activity
/analytics/get_quest_participation
/analytics/get_unique_visitors
1) Getting the graph data We run a mongodb query and computes tasks on a daily basis and returns all activity till date on the tasks of the quest.
2) Getting the Quest Participation We get this data by checking the total count of tasks completed per task per quest
3) Getting unique viewers We match the page id and count the total occurences which we get in the unique_viewers_collection
unique_viewers_collection
Issue link - https://github.com/starknet-id/starknet.quest/issues/313
We add the following endpoints in this PR -
/analytics/get_quest_activity
- used to get the graph data for detecing number of people completing tasks each day./analytics/get_quest_participation
- used to get total participants on each task of a quest/analytics/get_unique_visitors
- used to get total unique visits on a quest page1) Getting the graph data We run a mongodb query and computes tasks on a daily basis and returns all activity till date on the tasks of the quest.
2) Getting the Quest Participation We get this data by checking the total count of tasks completed per task per quest
3) Getting unique viewers We match the page id and count the total occurences which we get in the
unique_viewers_collection
Issue link - https://github.com/starknet-id/starknet.quest/issues/313