Skip to content

Commit

Permalink
Trigger fathom story event (#66)
Browse files Browse the repository at this point in the history
* Trigger fathom story event

* remove staging from analytics
  • Loading branch information
mwickett authored Apr 22, 2021
1 parent 3c82680 commit ab4910c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function MyApp({ Component, pageProps }) {

useEffect(() => {
Fathom.load('XNKNPYHV', {
includedDomains: ['staging.mycovidstory.ca', 'www.mycovidstory.ca'],
includedDomains: ['www.mycovidstory.ca'],
})

function onRouteChangeComplete() {
Expand Down
6 changes: 6 additions & 0 deletions pages/thanks.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { useEffect } from 'react'
import { Center, Heading, Text, Container, Button, VStack, Icon } from '@chakra-ui/react'

export default function Thanks() {
// Triggers a Story goal event on Fathom
useEffect(() => {
window?.fathom?.trackGoal('RT0FH11Y', 0)
}, [])

return (
<Container pt="32">
<Center>
Expand Down

1 comment on commit ab4910c

@vercel
Copy link

@vercel vercel bot commented on ab4910c Apr 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.