Add partner click ga event

pull/5577/head
Kamran Ahmed 7 months ago
parent cf7bb32277
commit 88b29a963e
  1. 11
      src/components/TopicDetail/TopicDetail.tsx

@ -364,8 +364,17 @@ export function TopicDetail(props: TopicDetailProps) {
</a> </a>
<a <a
href={'https://thenewstack.io'} href={
'https://thenewstack.io/devops/?utm_source=roadmap.sh&utm_medium=Referral&utm_campaign=Topic'
}
className="hidden rounded-md border bg-gray-200 px-2 py-1.5 text-sm hover:bg-gray-300 min-[390px]:block sm:hidden" className="hidden rounded-md border bg-gray-200 px-2 py-1.5 text-sm hover:bg-gray-300 min-[390px]:block sm:hidden"
onClick={() => {
window.fireEvent({
category: 'PartnerClick',
action: 'TNS Redirect',
label: 'Roadmap Topic / TNS Link',
});
}}
> >
<span className="badge mr-1.5">Partner</span> <span className="badge mr-1.5">Partner</span>
Visit{' '} Visit{' '}

Loading…
Cancel
Save