Add goal tracking to the export feature
raae opened this issue ยท 2 comments
raae commented
When the user clicks the export button it should be tracked.
- Add GATSBY_FATHOM_EXPORT to your .env.development (any value will due)
- Export FATHOM_EXPORT from
./constants
- Import the
trackGoal
function from thetracking
feature. - Import
FATHOM_EXPORT
from./constants
- When button is clicked call
trackGoal
withFATHOM_EXPORT
as param - Test and make sure the console logs out
Track fathom goal <FATHOM_EXPORT>)
I will add a real value to Netlify env variables so this will be tracked properly by fathom in production.
olavea commented
Question about
5. When button is clicked call trackGoal with FATHOM_EXPORT as param
A. Should trackGoal
be called after openSaveFileDialog
? or
B. Should trackGoal
be called before openSaveFileDialog
?
I am currently going with "B", but you're the POW! Queen @raae ๐ so it's your call.
raae commented
Let's do before, as if it fails the intent of the user is still to export. Later we can add some error tracking. Ie B as you suggested.