1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-08 16:20:40 +02:00

Fix tracking endpoint not called

This commit is contained in:
Kamran Ahmed
2025-06-02 16:42:11 +01:00
parent 803b0a5ecd
commit 8f77d90220

View File

@@ -25,7 +25,7 @@ window.fireEvent = (props) => {
if (['course', 'ai_tutor'].includes(category)) {
const url = new URL(import.meta.env.PUBLIC_API_URL);
url.pathname = '/_t';
url.pathname = '/api/_t';
url.searchParams.set('action', action);
url.searchParams.set('category', category);
url.searchParams.set('label', label ?? '');