Skip to content

Commit

Permalink
🔥 Remove old GA tracking events
Browse files Browse the repository at this point in the history
  • Loading branch information
pouretrebelle committed Feb 6, 2023
1 parent 6bee4b3 commit a4cd89c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions src/components/links/TagLink/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Link } from 'gatsby'
import { FILTER_UNDERLINE_STYLE } from 'styles/tokens'
import PATHS from 'routes/paths'
import { splitTagByPrefix } from 'utils/tags'
import { trackEvent } from 'utils/tracking'

const StyledLink = styled(Link)`
${FILTER_UNDERLINE_STYLE};
Expand All @@ -22,7 +21,6 @@ const TagLink: React.FC<Props> = ({ tag, ...props }) => {
return (
<StyledLink
to={to}
onClick={(): void => trackEvent('book-filter', prefix, name)}
{...props}
/>
)
Expand Down
14 changes: 0 additions & 14 deletions src/utils/tracking/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/views/BookListPage/FilterTrigger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
FILTER_UNDERLINE_STYLE,
} from 'styles/tokens'
import useClickOutside from 'utils/hooks/useClickOutside'
import { trackEvent } from 'utils/tracking'

const StyledWrapper = styled.span`
position: relative;
Expand Down Expand Up @@ -99,7 +98,6 @@ const FilterTrigger: React.FC<Props> = ({

if (!newValue) return onChange(undefined)

trackEvent('book-filter', trackingCategory, newValue)
return onChange(newValue)
}

Expand Down

0 comments on commit a4cd89c

Please sign in to comment.