Skip to content

Commit 7111eda

Browse files
authored
Merge pull request #1233 from mito-ds/plausible-pip-install-mitosheet
trymito: add plausible link for pip install mitosheet
2 parents ba54801 + 0d7d266 commit 7111eda

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

trymito.io/pages/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import titleStyles from '../styles/Title.module.css';
1818
import { classNames } from '../utils/classNames';
1919
import Prism from 'prismjs';
2020
import LogoSection from '../components/LogoSection/LogoSection';
21-
import { PLAUSIBLE_BOOK_A_DEMO_CTA_PRESSED, PLAUSIBLE_INSTALL_DOCS_CTA_LOCATION_TITLE_CARD } from '../utils/plausible';
21+
import { PLAUSIBLE_BOOK_A_DEMO_CTA_PRESSED, PLAUSIBLE_COPIED_PIP_INSTALL_MITOSHEET, PLAUSIBLE_INSTALL_DOCS_CTA_LOCATION_TITLE_CARD } from '../utils/plausible';
2222
import { MITO_GITHUB_LINK } from '../components/GithubButton/GithubButton';
2323
import CaseStudies from '../components/CaseStudyCard/CaseStudies';
2424

@@ -167,7 +167,7 @@ const Home: NextPage = () => {
167167
</p>
168168
<p className='only-on-desktop-inline-block'>
169169
Get started with Mito in seconds. It&apos;s easy as: <br></br><br></br>
170-
<span className='code-background' onClick={async () => {
170+
<span className={classNames(PLAUSIBLE_COPIED_PIP_INSTALL_MITOSHEET, 'code-background')} onClick={async () => {
171171
// Copy to clickboard on click
172172
await navigator.clipboard.writeText('pip install mitosheet');
173173
setCopied(true);

trymito.io/utils/plausible.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ export const PLAUSIBLE_COPIED_CODE_NON_MITO_EXPORTED_FUNCTION = 'plausible-event
2121

2222
// The user clicked a book a demo CTA
2323
export const PLAUSIBLE_BOOK_A_DEMO_CTA_PRESSED = 'plausible-event-name=book_a_demo_cta_pressed+location_title_card'
24-
export const PLAUSIBLE_BOOK_A_DEMO_CTA_PRESSED_PLANS_PAGE = 'plausible-event-name=book_a_demo_cta_pressed+location_plans_page'
24+
export const PLAUSIBLE_BOOK_A_DEMO_CTA_PRESSED_PLANS_PAGE = 'plausible-event-name=book_a_demo_cta_pressed+location_plans_page'
25+
26+
// The user copies the pip install mitosheet command from the homepage
27+
export const PLAUSIBLE_COPIED_PIP_INSTALL_MITOSHEET = 'plausible-event-name=copied_pip_install_mitosheet+location_homepage'

0 commit comments

Comments
 (0)