From c62fec16dc32fea86667740e6a5d2d9447d787ff Mon Sep 17 00:00:00 2001 From: Olivier Bouchoms <54796206+gitknul@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:31:00 +0200 Subject: [PATCH 1/2] Update mixpanel_setup.md --- doc/mixpanel_setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/mixpanel_setup.md b/doc/mixpanel_setup.md index 351a55e..38c61c5 100644 --- a/doc/mixpanel_setup.md +++ b/doc/mixpanel_setup.md @@ -29,7 +29,7 @@ const App = () => { ```tsx -import { MixpanelEvent } from '@freshheads/analytics-essentials'; +import { WebMixpanelEvent, WebMixpanelPageViewEvent } from '@freshheads/analytics-essentials'; import { executePostRequest } from '@/api/client'; export const sendTrackEvent = async (data: MixpanelEvent | MixpanelPageViewEvent) => { From 18ccc835deac2ed367f13381b1d7ae4910b6e01c Mon Sep 17 00:00:00 2001 From: Olivier Bouchoms <54796206+gitknul@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:31:35 +0200 Subject: [PATCH 2/2] Update mixpanel_setup.md --- doc/mixpanel_setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/mixpanel_setup.md b/doc/mixpanel_setup.md index 38c61c5..c7a3e20 100644 --- a/doc/mixpanel_setup.md +++ b/doc/mixpanel_setup.md @@ -32,7 +32,7 @@ const App = () => { import { WebMixpanelEvent, WebMixpanelPageViewEvent } from '@freshheads/analytics-essentials'; import { executePostRequest } from '@/api/client'; -export const sendTrackEvent = async (data: MixpanelEvent | MixpanelPageViewEvent) => { +export const sendTrackEvent = async (data: WebMixpanelEvent | WebMixpanelPageViewEvent) => { return executePostRequest('_mixpanel/track', data); }; ```