From 82962f34cf1cfd5f50452b51b51e41da4e6c3de7 Mon Sep 17 00:00:00 2001 From: Tilman Frick Date: Mon, 20 May 2019 12:04:10 +0200 Subject: [PATCH] feat: add tracking events to website (#798) --- packages/site/src/site.tsx | 60 ++++++++++++++++++++++++++++++++++---- 1 file changed, 54 insertions(+), 6 deletions(-) diff --git a/packages/site/src/site.tsx b/packages/site/src/site.tsx index f23e2cc4a..bc0867d10 100644 --- a/packages/site/src/site.tsx +++ b/packages/site/src/site.tsx @@ -147,7 +147,15 @@ const Page: React.StatelessComponent = (): JSX.Element => { target="_blank" rel="noopener" > - + + ReactGA.event({ + category: 'interest', + action: 'Learn how to prototype with code components' + }) + } + > Learn how to prototype with code components @@ -172,6 +180,12 @@ const Page: React.StatelessComponent = (): JSX.Element => { style={{ textDecoration: 'none' }} target="_blank" rel="noopener" + onClick={() => + ReactGA.event({ + category: 'interest', + action: 'Learn how to integrate your designs' + }) + } > Learn how to integrate your designs @@ -195,6 +209,12 @@ const Page: React.StatelessComponent = (): JSX.Element => { style={{ textDecoration: 'none' }} target="_blank" rel="noopener" + onClick={() => + ReactGA.event({ + category: 'interest', + action: 'Learn how to work with interactions' + }) + } > Learn how to work with interactions @@ -207,7 +227,15 @@ const Page: React.StatelessComponent = (): JSX.Element => { image="https://media.meetalva.io/background.jpg" headline="Our mission is to enable designers and engineers to build better products together. Without friction." > -
+
+ ReactGA.event({ + category: 'interest', + action: 'Watch video' + }) + } + >