Skip to content
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

trymito: add plausible link for pip install mitosheet #1233

Merged
merged 1 commit into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions trymito.io/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import titleStyles from '../styles/Title.module.css';
import { classNames } from '../utils/classNames';
import Prism from 'prismjs';
import LogoSection from '../components/LogoSection/LogoSection';
import { PLAUSIBLE_BOOK_A_DEMO_CTA_PRESSED, PLAUSIBLE_INSTALL_DOCS_CTA_LOCATION_TITLE_CARD } from '../utils/plausible';
import { PLAUSIBLE_BOOK_A_DEMO_CTA_PRESSED, PLAUSIBLE_COPIED_PIP_INSTALL_MITOSHEET, PLAUSIBLE_INSTALL_DOCS_CTA_LOCATION_TITLE_CARD } from '../utils/plausible';
import { MITO_GITHUB_LINK } from '../components/GithubButton/GithubButton';
import CaseStudies from '../components/CaseStudyCard/CaseStudies';

Expand Down Expand Up @@ -167,7 +167,7 @@ const Home: NextPage = () => {
</p>
<p className='only-on-desktop-inline-block'>
Get started with Mito in seconds. It&apos;s easy as: <br></br><br></br>
<span className='code-background' onClick={async () => {
<span className={classNames(PLAUSIBLE_COPIED_PIP_INSTALL_MITOSHEET, 'code-background')} onClick={async () => {
// Copy to clickboard on click
await navigator.clipboard.writeText('pip install mitosheet');
setCopied(true);
Expand Down
5 changes: 4 additions & 1 deletion trymito.io/utils/plausible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ export const PLAUSIBLE_COPIED_CODE_NON_MITO_EXPORTED_FUNCTION = 'plausible-event

// The user clicked a book a demo CTA
export const PLAUSIBLE_BOOK_A_DEMO_CTA_PRESSED = 'plausible-event-name=book_a_demo_cta_pressed+location_title_card'
export const PLAUSIBLE_BOOK_A_DEMO_CTA_PRESSED_PLANS_PAGE = 'plausible-event-name=book_a_demo_cta_pressed+location_plans_page'
export const PLAUSIBLE_BOOK_A_DEMO_CTA_PRESSED_PLANS_PAGE = 'plausible-event-name=book_a_demo_cta_pressed+location_plans_page'

// The user copies the pip install mitosheet command from the homepage
export const PLAUSIBLE_COPIED_PIP_INSTALL_MITOSHEET = 'plausible-event-name=copied_pip_install_mitosheet+location_homepage'