fawazsullia / fawazsullia/express-analytics

Check if the request is unique

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

If it's a unique hit, return 1, else return 0

### How to implement this?
One idea is to save a cookie in the browser and set an expiry for say 14 days. Any request sent from same browser within 14 days won't be counted twice.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the request-counting entry point in the repository and reviewing how hits are currently recorded. Define the behavior for a browser's first request and subsequent requests within 14 days, including the returned 1 or 0 value; done means repeated requests from the same browser are not counted twice.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
analytics, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.