Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Improve format of the analytics events

Tomas Valentab1e4fca76e95
diff --git a/components/SelectRepository/NewRepository/index.tsx b/components/SelectRepository/NewRepository/index.tsx
index db85cecff..93a1d9787 100644
--- a/components/SelectRepository/NewRepository/index.tsx
+++ b/components/SelectRepository/NewRepository/index.tsx
@@ -53,7 +53,7 @@ function NewRepository({
if (!state.name) return
if (state.isCreating) return
- posthog?.capture('create repository', {
+ posthog?.capture('created repository', {
account: state.account.name,
repository: `${state.account.name}/${state.name}`,
})
diff --git a/components/SelectRepository/index.tsx b/components/SelectRepository/index.tsx
index a768682c1..e751c1f70 100644
--- a/components/SelectRepository/index.tsx
+++ b/components/SelectRepository/index.tsx
@@ -38,12 +38,12 @@ function SelectRepository({
const posthog = usePostHog()
function configure() {
- posthog?.capture('configure github app')
+ posthog?.capture('configured github app')
configureGitHubApp()
}
function selectRepo(repo: RepoSetup) {
- posthog?.capture('select repository', {
+ posthog?.capture('selected repository', {
repository: repo.fullName,
})
onRepoSelection(repo)
diff --git a/pages/agent/smol-developer/index.tsx b/pages/agent/smol-developer/index.tsx
index 1fdbc9ea4..3b24e8edb 100644
--- a/pages/agent/smol-developer/index.tsx
+++ b/pages/agent/smol-developer/index.tsx
@@ -90,7 +90,7 @@ function SmolDeveloper({
<div className="flex flex-col space-y-4 items-center lg:items-start">
<a
href="/" className="inline-flex space-x-6"
- onMouseDown={() => posthog?.capture('Clicked link to e2b homepage')}
+ onMouseDown={() => posthog?.capture('clicked link to e2b homepage')}
>
<span className="rounded-full bg-indigo-500/10 px-3 py-1 text-sm font-semibold leading-6 text-indigo-400 ring-1 ring-inset ring-indigo-500/20">
Runs on <b>e2b</b>
@@ -109,7 +109,7 @@ function SmolDeveloper({
href="https://github.com/smol-ai/developer"
rel="noreferer noopener"
target="_blank"
- onMouseDown={() => posthog?.capture('Clicked link', { url: 'https://github.com/smol-ai/developer' })}
+ onMouseDown={() => posthog?.capture('clicked link', { url: 'https://github.com/smol-ai/developer' })}
>smol developer
</a>{' '}
AI agent.
@@ -123,7 +123,7 @@ function SmolDeveloper({
href="https://github.com/smol-ai/developer"
rel="noreferer noopener"
target="_blank"
- onMouseDown={() => posthog?.capture('Clicked link', { url: 'https://github.com/smol-ai/developer' })}
+ onMouseDown={() => posthog?.capture('clicked link', { url: 'https://github.com/smol-ai/developer' })}
>
<span>smol-ai/developer</span>
<span>Stars {repo.stargazers_count.toLocaleString()}</span>
@@ -165,7 +165,7 @@ function SmolDeveloper({
href="https://github.com/smol-ai/developer"
rel="noreferer noopener"
target="_blank"
- onMouseDown={() => posthog?.capture('Clicked link', { url: 'https://github.com/smol-ai/developer' })}
+ onMouseDown={() => posthog?.capture('clicked link', { url: 'https://github.com/smol-ai/developer' })}
>
Learn about smol developer <span aria-hidden="true">→</span>
</a>