-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SWA-198][INFRA] - Track click events on Landing page "Launch App" bu…
…ttons (#130) * infra(STK-198): apply click tracking to Launch App buttons * infra(STK-198): update FAQ section structure to support QA abstraction and FA events
- Loading branch information
1 parent
6367136
commit 2ede158
Showing
26 changed files
with
442 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
NEXT_PUBLIC_FATHOM_SITE_ID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
const LAUNCH_APP = "click/launch-app"; | ||
const LAUNCH_APP_NAVBAR = `${LAUNCH_APP}-navbar`; | ||
const FAQ = "click/faq"; | ||
const FAQ_WHAT_IS = `${FAQ}-what-is`; | ||
const FAQ_HOW = `${FAQ}-how`; | ||
|
||
export const EVENTS = { | ||
NAVBAR: { | ||
DESKTOP: { | ||
LAUNCH_APP_CLICK: `${LAUNCH_APP_NAVBAR}-desktop`, | ||
}, | ||
MOBILE: { | ||
LAUNCH_APP_CLICK: `${LAUNCH_APP_NAVBAR}-mobile`, | ||
}, | ||
}, | ||
SECTIONS: { | ||
FAQ: { | ||
HOW_CANCEL_STACK: `${FAQ_HOW}-cancel-stack`, | ||
HOW_STACKLY_WORKS: `${FAQ_HOW}-stackly-works`, | ||
WHAT_IS_STACKLY_CLICK: `${FAQ_WHAT_IS}-stackly`, | ||
WHAT_IS_STACK_CLICK: `${FAQ_WHAT_IS}-stack`, | ||
WHAT_IS_DCA: `${FAQ_WHAT_IS}-dca`, | ||
WHY_TO_DCA: `${FAQ}-why-to-dca`, | ||
}, | ||
HERO_BANNER: { | ||
STACK_NOW_CLICK: `${LAUNCH_APP}-hero-banner`, | ||
}, | ||
TRY_STACKLY_BANNER: { | ||
TRY_STACKLY_NOW_CLICK: `${LAUNCH_APP}-try-stackly-banner`, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./constants"; | ||
export * from "./types"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
type PageViewOptions = { | ||
referrer?: string; | ||
url?: string; | ||
}; | ||
|
||
export type EventName = string; | ||
|
||
export type EventOptions = { | ||
_site_id?: string; | ||
_value?: number; | ||
}; | ||
|
||
export interface Fathom { | ||
blockTrackingForMe: () => void; | ||
enableTrackingForMe: () => void; | ||
setSite: (siteId: string) => void; | ||
trackEvent(eventId: string, opts?: EventOptions): void; | ||
trackPageview: (opts?: PageViewOptions) => void; | ||
} | ||
|
||
declare global { | ||
interface Window { | ||
fathom: Fathom; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
packages/landing/components/TryStacklyBanner/TryStacklyBanner.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from "./navbar"; | ||
export * from "./QAndAAccordion"; | ||
export * from "./TryStacklyBanner"; | ||
export * from "./sections"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.