Skip to content

Commit

Permalink
Add event (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddsaura committed Feb 6, 2023
1 parent aafd0d0 commit 735c49a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion frontend/src/landing/HomeSections/Banner.tsx
Expand Up @@ -16,6 +16,7 @@ import { Banner as BannerStyled } from '@/landing/ui/styles';
import AnimPath from '@/landing/ui/animations/home/banner-morph.json';
import RedirectLink from '@/components/Web/RedirectLink';
import Button from '@/components/Common/Button';
import { pushEventDataLayer } from '@/lib/analytics';

const Banner: React.FC = () => {
const { t } = useTranslation('home');
Expand All @@ -40,7 +41,17 @@ const Banner: React.FC = () => {
<div id="animated-banner-morph"></div>
<div>
<p className="body-lg animate-item">{t('banner')}</p>
<RedirectLink href={ROUTE_FISHBOWL_CREATE} passHref>
<RedirectLink
onClick={() => {
pushEventDataLayer({
category: 'Schedule Fishbowl',
action: 'Prefooter',
label: 'Prefooter'
});
}}
href={ROUTE_FISHBOWL_CREATE}
passHref
>
<Button size="large" as="a" className="animate-item cta-create-fishbowl">
<span>{t('scheduleFishbowl')}</span>
</Button>
Expand Down

0 comments on commit 735c49a

Please sign in to comment.