Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

5
How to track visits and save every visit to database?
Post Flair (click to view more posts with a particular flair)
Post Body

I want to build an analytics feature for my app.

So that means tracking every single user session -- authenticated and unauthenticated -- and saving them to the database, along with all kinds of metadata, like IP, location, user agent, etc.

And with each session, I also want to track:

  • Pages visited
  • UTM parameters
  • Any sales made during that session

I've done a search, found several packages for this purpose that don't seem to be maintained.

And unfortunately, I can't use Google Analytics/Plausible/whatever for this.

This has to be an in-built feature.

Are there any packages or tutorials for this that's state-of-the-art?

Author
Account Strength
0%
Account Age
1 year
Verified Email
Yes
Verified Flair
No
Total Karma
2,730
Link Karma
906
Comment Karma
1,824
Profile updated: 9 months ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago