Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to manually send analytics POST request from the server #3776

Open
Tracked by #3775
obulat opened this issue Feb 9, 2024 · 0 comments
Open
Tracked by #3775

Add ability to manually send analytics POST request from the server #3776

obulat opened this issue Feb 9, 2024 · 0 comments
Labels
💻 aspect: code Concerns the software code in the repository 🌟 goal: addition Addition of new feature 🟨 priority: medium Not blocking but should be addressed soon 🧱 stack: frontend Related to the Nuxt frontend

Comments

@obulat
Copy link
Contributor

obulat commented Feb 9, 2024

Problem

vue-plausible only works on the client side. The search_time_event needs to be send both from the client and from the server.

Description

The ideal solution would be to create a module that would also expose plausible tracker on the server. However, this is too complex and time-consuming, and considering that it would only work with Nuxt 2, which is EOL soon, it is not feasible.
A hot-fix solution we can use is to send the request from the server, filling in all of the required properties manually.
Here are the properties that need to be added:

https://github.com/plausible/plausible-tracker/blob/c0b87d997d839938c23023d35bac0d6683635bbc/src/lib/request.ts#L61-L69

Blockers

This issue is blocked on #3777

@openverse-bot openverse-bot moved this to 📋 Backlog in Openverse Backlog Feb 9, 2024
@obulat obulat changed the title To fix the server-side event sending, we can manually send a POST request using the required properties Add ability to manually send analytics POST request from the server Feb 9, 2024
@obulat obulat added 🟨 priority: medium Not blocking but should be addressed soon 💻 aspect: code Concerns the software code in the repository 🧱 stack: frontend Related to the Nuxt frontend ⛔ status: blocked Blocked & therefore, not ready for work 🌟 goal: addition Addition of new feature labels Feb 9, 2024
@openverse-bot openverse-bot moved this from 📋 Backlog to ⛔ Blocked in Openverse Backlog Feb 9, 2024
@obulat obulat removed the ⛔ status: blocked Blocked & therefore, not ready for work label Apr 6, 2024
@openverse-bot openverse-bot moved this from ⛔ Blocked to 📋 Backlog in Openverse Backlog Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🌟 goal: addition Addition of new feature 🟨 priority: medium Not blocking but should be addressed soon 🧱 stack: frontend Related to the Nuxt frontend
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant