matomo improvements for Entry dialog

Update homeTabGetStarted.tsx

Update remix-app.tsx
pull/5370/head
lianahus 5 months ago committed by Aniket
parent 817186b1ab
commit 6e95519990
  1. 15
      libs/remix-ui/app/src/lib/remix-app/remix-app.tsx
  2. 8
      libs/remix-ui/app/src/lib/remix-app/types/index.ts

@ -160,7 +160,6 @@ const RemixApp = (props: IRemixAppUi) => {
const handleUserChosenType = async (type) => { const handleUserChosenType = async (type) => {
setShowEnterDialog(false) setShowEnterDialog(false)
localStorage.setItem('hadUsageTypeAsked', type) localStorage.setItem('hadUsageTypeAsked', type)
// Use the type to setup the UI accordingly // Use the type to setup the UI accordingly
switch (type) { switch (type) {
case UsageTypes.Beginner: { case UsageTypes.Beginner: {
@ -172,28 +171,24 @@ const RemixApp = (props: IRemixAppUi) => {
// await props.app.appManager.call('filePanel', 'createWorkspace', wName, 'playground') // await props.app.appManager.call('filePanel', 'createWorkspace', wName, 'playground')
// } // }
// await props.app.appManager.call('filePanel', 'switchToWorkspace', { name: wName, isLocalHost: false }) // await props.app.appManager.call('filePanel', 'switchToWorkspace', { name: wName, isLocalHost: false })
_paq.push(['trackEvent', 'enterDialog', 'usageType', 'beginner'])
_paq.push(['trackEvent', 'userEntry', 'usageType', 'beginner'])
break break
} }
case UsageTypes.Advance: { case UsageTypes.Advance: {
_paq.push(['trackEvent', 'enterDialog', 'usageType', 'advanced']) // Here activate necessary plugins, walkthrough. Filter hometab features slides and plugins.
_paq.push(['trackEvent', 'userEntry', 'usageType', 'advanced'])
break break
} }
case UsageTypes.Prototyper: { case UsageTypes.Prototyper: {
_paq.push(['trackEvent', 'enterDialog', 'usageType', 'prototyper']) // Here activate necessary plugins, walkthrough. Filter hometab features slides and plugins.
_paq.push(['trackEvent', 'userEntry', 'usageType', 'prototyper'])
break break
} }
case UsageTypes.Production: { case UsageTypes.Production: {
_paq.push(['trackEvent', 'enterDialog', 'usageType', 'production']) // Here activate necessary plugins, walkthrough. Filter hometab features slides and plugins.
_paq.push(['trackEvent', 'userEntry', 'usageType', 'production'])
break break
} }
default: throw new Error() default: throw new Error()
} }
_paq.push(['trackEvent', 'enterDialog', 'usageType', type])
_paq.push(['trackEvent', 'userEntry', 'usageType', type])
} }
return ( return (

@ -18,8 +18,8 @@ export const enum AppModalCancelTypes {
} }
export const enum UsageTypes { export const enum UsageTypes {
Beginner = 1, Beginner = 'beginner',
Prototyper, Prototyper = 'prototyper',
Advance, Advance = 'advance',
Production Production = 'prototyper'
} }
Loading…
Cancel
Save