Every GitHub release marked and measured in Fathom Analytics
Each GitHub release becomes a milestone in Fathom Analytics. A week later the flow compares traffic and signups before and after and comments the numbers on the release's Linear issue.
The prompt
When we publish a release in our GitHub repository, add a milestone with the release name on its date in Fathom Analytics. A week later, pull pageviews, visitors, bounce rate, time on site and our signup event for the seven days before the release and the seven days after. Post the comparison as a comment on the Linear issue the release notes mention, or on our release log issue if they don't mention one.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works
What each step does
- New release published Checks your GitHub repository every 15 minutes for a newly published release.
- Work out the release dates Takes the release day, the seven days before it and the seven days after, and finds the Linear issue the release notes name, by key such as ENG-42 or by link.
- Mark the release on the graph Adds a milestone with the release name on its release date, so the release shows on the site's Fathom Analytics reports.
- Wait a week Waits seven days, until the week after the release is complete.
- Pull the week before and after Runs Fathom Analytics reports for both weeks: pageviews, visitors, bounce rate, average time on site and your signup event.
- Comment on the release's issue Finds the issue in Linear and posts the comparison as a comment, each number with its change. When the notes name no issue, the comment goes to the issue in the flow setting Release log issue.
Before you turn it on
- Enter your Fathom Analytics API token in the Fathom Analytics settings and your Linear personal API key in the Linear settings, and connect your GitHub account. Adding milestones needs a Fathom Analytics token with Full access or one that can manage the site.
- Pick your repository in New release published.
- Fill the flow settings Site ID (the ID in your tracking code), Signup event (the event name exactly as tracked) and Release log issue (a Linear issue key such as ENG-42).
- To send a release's numbers to its own issue, put the Linear issue key or link in the release notes.
- Every Fathom Analytics API request counts toward the account's monthly pageviews. Each release uses five requests: the milestone and four reports.