Skip to content

Commit

Permalink
fix: tessen event not triggered on click
Browse files Browse the repository at this point in the history
  • Loading branch information
abrunner committed Nov 17, 2021
1 parent 6a25339 commit 99b9613
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/experiments/super_tiles/components/GuidedInstallTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import React from 'react';
import { css } from '@emotion/react';
import SuperTile from './SuperTile';
import { Button, useTessen } from '@newrelic/gatsby-theme-newrelic';
import { navigate } from 'gatsby';
import { Link } from 'gatsby';
import { SIGNUP_LINK } from '../../../data/constants';

const GuidedInstallTile = () => {
const tessen = useTessen();

const handleButtonClick = () => {
tessen.track('clickSuperTile', 'QuickstartLanding', { tile: 'guided' });
navigate(SIGNUP_LINK);
};

return (
Expand Down Expand Up @@ -61,7 +60,12 @@ const GuidedInstallTile = () => {
</span>
</div>
<div>
<Button onClick={handleButtonClick} variant={Button.VARIANT.PRIMARY}>
<Button
onClick={handleButtonClick}
as={Link}
to={SIGNUP_LINK}
variant={Button.VARIANT.PRIMARY}
>
Install New Relic
</Button>
</div>
Expand Down

0 comments on commit 99b9613

Please sign in to comment.