The avo-dbt library allows you to take your Avo Tracking Plan—events and metrics—and generate dbt models and tests to help you validate raw data and simplify visualising your metrics.
Download your Avo tracking plan as a JSON
Open a metric and download it's JSON
Fetch your schema from the Avo API (coming soon)
Don't have an account yet? Head over to avo.app/onboarding to get started if you don't have an account yet.
Install the package from NPM (Python coming soon)
npm install avo-dbt
avo-dbt generate-event <eventId> <pathToAvoFile>
Takes the event from your avo file and creates models and tests for it on a yaml format that is printed to the standard output.
avo-dbt generate-metric <metricId> <pathToAvoFile>
Finds the metric in your Avo json file and creates models and tests for each event in the metric and finally the funnel itself to the standard output on yaml format.
Is something missing or could be improved? Reach out to us or open up a Pull Request yourself.
npm run <script>