Skip to content

Commit 4e4852b

Browse files
committed
add matomo keys
1 parent ea3987d commit 4e4852b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

apps/remix-ide/src/app.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ class AppComponent {
203203
const pluginLoader = this.appManager.pluginLoader
204204
this.panels = {}
205205
this.workspace = pluginLoader.get()
206+
if (pluginLoader.current === 'queryParams') {
207+
this.workspace.map((workspace) => {
208+
_paq.push(['trackEvent', 'App', 'queryParams-activated', workspace])
209+
})
210+
}
206211
this.engine = new RemixEngine()
207212
this.engine.register(appManager)
208213

@@ -647,6 +652,7 @@ class AppComponent {
647652
if (callDetails.length > 1) {
648653
this.appManager.call('notification', 'toast', `initiating ${callDetails[0]} and calling "${callDetails[1]}" ...`)
649654
// @todo(remove the timeout when activatePlugin is on 0.3.0)
655+
_paq.push(['trackEvent', 'App', 'queryParams-calls', params.call])
650656
//@ts-ignore
651657
await this.appManager.call(...callDetails).catch(console.error)
652658
}
@@ -657,6 +663,7 @@ class AppComponent {
657663

658664
// call all functions in the list, one after the other
659665
for (const call of calls) {
666+
_paq.push(['trackEvent', 'App', 'queryParams-calls', call])
660667
const callDetails = call.split('//')
661668
if (callDetails.length > 1) {
662669
this.appManager.call('notification', 'toast', `initiating ${callDetails[0]} and calling "${callDetails[1]}" ...`)

libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ export function Workspace() {
521521
try {
522522
await global.dispatchSwitchToWorkspace(name)
523523
global.dispatchHandleExpandPath([])
524+
_paq.push(['trackEvent', 'Workspace', 'switchWorkspace', name])
524525
} catch (e) {
525526
global.modal(
526527
intl.formatMessage({ id: 'filePanel.workspace.switch' }),

0 commit comments

Comments
 (0)