lfglabs-dev / api.starknet.quest

starknet.quest rust backend
2 stars 17 forks source link

feat: add analytics endpoints #195

Closed ayushtom closed 6 months ago

ayushtom commented 6 months ago

We add the following endpoints in this PR -

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

Issue link - https://github.com/starknet-id/starknet.quest/issues/313