first
This commit is contained in:
commit
8538ab969a
434 changed files with 44051 additions and 0 deletions
17
apps/web/modules/analytics/provider/custom/index.tsx
Normal file
17
apps/web/modules/analytics/provider/custom/index.tsx
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"use client";
|
||||
|
||||
export function AnalyticsScript() {
|
||||
// return your script here
|
||||
return null;
|
||||
}
|
||||
|
||||
export function useAnalytics() {
|
||||
const trackEvent = (event: string, data: Record<string, unknown>) => {
|
||||
// call your analytics service to track a custom event here
|
||||
console.info("tracking event", event, data);
|
||||
};
|
||||
|
||||
return {
|
||||
trackEvent,
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue