Possibility to set "api/event" request timestamp #1973
clement-joye
started this conversation in
Anything Else
Replies: 1 comment 3 replies
-
|
It's not as easy as you think. Our session tracking currently only works real-time. We would have to build a completely new method for sessionization if we want to also ingest historical data. In general I'm in favour of this but I don't see us finding time to work it anytime soon |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm currently working on a way to defer the requests sent to Plausible as part of the concept of delayed computing.
Here's my use case:
There are obviously pros and cons with this technique and I'm aware of that.
Now, the issue for the time being is that the requests to the "api/event" endpoint naturally don't support setting the timestamp ourselves, probably to avoid tampering with the data I imagine.
To workaround that, I modified lib\plausible_web\controllers\api\external_controller.ex in order to support setting the timestamp as shown below.

My question is then, would it be possible to support setting the timestamp in the request? (maybe via environment variable and default being false.)
Thanks
Clement
Beta Was this translation helpful? Give feedback.
All reactions