Skip to content

Commit

Permalink
extending autocapture event property to pass tracking value
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliiiu committed Jun 27, 2024
1 parent ec39b2d commit 6ac9c1e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/components/cards/PlatformCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react'
import { Box, Icon, LinkBox, Text } from '@chakra-ui/react'
import { CustomIconType } from '@/data/SidebarData'
import LinkOverlay from '../elements/LinkElements/LinkOverlay'
import { usePostHog } from 'posthog-js/react'

const PlatformCard = ({
icon,
Expand All @@ -13,16 +12,8 @@ const PlatformCard = ({
icon: CustomIconType
route: string
}) => {
const posthog = usePostHog()
return (
<LinkBox
onClick={() =>
posthog.capture('swap_platform_link_click', {
category: 'Swap',
target: name,
})
}
>
<LinkBox data-ph-capture-attribute-swap_platform_link_click={name}>
<Box w={{ base: '132', md: '176' }} textAlign="center">
<Box
h={{ base: '92', md: '122' }}
Expand Down

0 comments on commit 6ac9c1e

Please sign in to comment.