armand1m/golinks

fix: move link usage metrics creation to the backend

armand1m opened this issue · 0 comments

Describe the bug
Currently, link usage metrics are reported from the frontend while redirecting the user. This makes it necessary to give INSERT permissions into the link_usage_metrics to anonymous users, which is a security risk and also unnecessary.

Moving it to the backend would make it safer and faster for the user (because we can reply to the request immediately and send metrics in the background).