4. Implement analytics events

2 minute read

Avo provides a set of developer tools to make it faster and less error prone to implement tracking code. Avo Functions, our type safe analytics wrappers, are one of those tools. Using Avo’s developer tools is optional, but something we highly recommend.

In this guide we’ll cover how to implement analytics events with and without using Avo’s developer tools.

Implementing without using Avo’s developer tools

You can continue implementing your tracking code like you are used to using analytics SDKs from analytics platforms (like Mixpanel, PostHog or Amplitude), SDKs from CDPs (like Rudderstack, Segment or mParticle), or using internal built SDKs or APIs.

A typical implementation workflow looks like this:

  1. Open a git branch to implement your analytics tracking changes on
  2. Follow the implementation instructions provided on the branch review screen in Avo for what needs to be done

When using the implementation instructions from Avo, we recommend checking out our guide on how to read the implementation instructions:

Implementing with Avo Functions

Avo Functions are type safe analytics wrappers that are code generated based on your tracking plan. Designed to speed up the tracking code implementation, while also making it more reliable with type-safety.

Learn more about Avo’s developer tools in Avo 101 for developers:

For teams that are using Avo Functions to implement their tracking code, the typical implementation workflow looks like this:

  1. Open a git branch to implement your analytics tracking changes on.
  2. Use the Avo CLI to pull the updated code from the branch you are implementing. You can find the Avo CLI command for each source in the top right corner of the branch review screen under “Branch Implementation”. From there you can also access documentation for all the events that need to be implemented
  3. Use the Avo Functions provided in the generated code to implement your events in your source code. The Functions tab in your workspace provides documentation and code snippets for each event

If Avo Functions haven’t been set up in your project yet, learn how to set them up in our Avo Functions quickstart guide:

What’s next?