raae / pow-app

Take charge of your menstrual cycle with POW! — the privacy-first menstrual cycle journal
https://www.usepow.app/
GNU General Public License v3.0
33 stars 2 forks source link

feat: Add goal tracking: delete all entries, closes #303 #306

Closed olavea closed 3 years ago

olavea commented 3 years ago

When the user clicks the delete all entries button it should be tracked. (Because bleh, bleh, bleh)

Pretend FATHOM_EXPORT = FATHOM_DELETE_ALL_ENTRIES

  1. Add GATSBY_FATHOM_EXPORT to your .env.development (any value will due)
  2. Export FATHOM_EXPORT from ./constants
  3. Import the trackGoal function from the tracking feature.
  4. Import FATHOM_EXPORT from ./constants
  5. When button is clicked call trackGoal with FATHOM_EXPORT as param
  6. Test and make sure the console logs out Track fathom goal <FATHOM_EXPORT>)
  7. add a FATHOM_DELETE_CONFIRMED as well

@raae will add a real value to Netlify env variables so this will be tracked properly by fathom in production.

olavea commented 3 years ago

Can I merge this now Queen @raae 👑 ?

olavea commented 3 years ago

365DaysOfPOWprogramming-day-156_feat- Add goal tracking- delete all entries, closes #303 #306 -374