-
Notifications
You must be signed in to change notification settings - Fork 12
feat(analytics): add tools event tracking and shared event constants #664
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
Open
kjmitchelljr
wants to merge
11
commits into
main
Choose a base branch
from
feat/663-tools-analytics-events
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6579ea8
feat(analytics): add tools event tracking and shared event constants
kjmitchelljr 118e943
Merge branch 'main' into feat/663-tools-analytics-events
kjmitchelljr 3dd8b6a
Resolve pnpm lockfile
kjmitchelljr 95649ef
Merge branch 'main' into feat/663-tools-analytics-events
kjmitchelljr f5b43de
removed shared analytics and made TrackFn constrained to ToolsEventMap
kjmitchelljr 613f985
resolve pnpm lockfile
kjmitchelljr 5b8bc1c
use id instead of authServer for wallet provider capture
kjmitchelljr 51274ac
Add simple tracking for fields changed
kjmitchelljr db4fd66
Merge branch 'main' into feat/663-tools-analytics-events
kjmitchelljr 100df55
Revert "Add simple tracking for fields changed"
kjmitchelljr 28ae2bc
Remove tools prefix
kjmitchelljr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,12 @@ | ||
| export { | ||
| TOOLS_EVENTS, | ||
| EMBED_EVENTS, | ||
| API_EVENTS, | ||
| } from '@shared/analytics-events' | ||
|
|
||
| export type { | ||
| ToolsEventName, | ||
| EmbedEventName, | ||
| ApiEventName, | ||
| AnalyticsEventName, | ||
| } from '@shared/analytics-events' |
This file contains hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 @@ | ||
| export const TOOLS_EVENTS = { | ||
| VIEW_MAIN_PAGE: 'tools_view_main_page', | ||
| CLICK_CARD_TOOL: 'tools_click_card_tool', | ||
| PROFILE_SAVED: 'tools_profile_saved', | ||
| SCRIPT_GENERATED: 'tools_script_generated', | ||
| WALLET_CONNECTED: 'tools_wallet_connected', | ||
| WALLET_DISCONNECTED: 'tools_wallet_disconnected', | ||
| SETTINGS_CHANGED: 'tools_settings_changed', | ||
| GENERATED_TAG: 'tools_generated_tag', | ||
| } as const | ||
|
|
||
| export const EMBED_EVENTS = { | ||
| CLICK_LINK_BANNER: 'embed_click_link_banner', | ||
| CLICK_LINK_OFFERWALL: 'embed_click_link_offerwall', | ||
| RENDER_TOOL: 'embed_render_tool', | ||
| } as const | ||
|
|
||
| export const API_EVENTS = { | ||
| FINALIZED_PAYMENT: 'api_finalized_payment', | ||
| } as const | ||
|
|
||
| export type ToolsEventName = (typeof TOOLS_EVENTS)[keyof typeof TOOLS_EVENTS] | ||
| export type EmbedEventName = (typeof EMBED_EVENTS)[keyof typeof EMBED_EVENTS] | ||
| export type ApiEventName = (typeof API_EVENTS)[keyof typeof API_EVENTS] | ||
| export type AnalyticsEventName = ToolsEventName | EmbedEventName | ApiEventName |
This file contains hidden or 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,6 @@ | ||
| { | ||
| "name": "@shared/analytics-events", | ||
| "version": "0.0.1", | ||
| "type": "module", | ||
| "private": true | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.