Data design on an Avo branch has been finished and it's time to implement new tracking in code.
First of all we recommend to open your Avo workspace and navigate to the branch you are about to implement, switch to the changes view and familiarize yourself with the changes happening.
It's really valuable to understand what exactly needs to be tracked and clear all unknowns.
We suggest using comments in the changes view to ask for any clarification before starting to implement.
TerminalCopynpm install --save-dev avo
TerminalCopyyarn add --dev avo
TerminalCopynpm install -g avo
TerminalCopyyarn global add -E avo
Authenticate the Avo CLI with your Avo user:
Now you can pull the Avo Functions from your Avo workspace.
TerminalCopyavo pull --branch your_branch_name
When you run Avo pull for the first time it will also initialize Avo in your project by adding an
avo.jsonfile, containing a pointer to your Avo workspace, source and current branch. This file should be checked into git along with the Avo Functions file.
Now your Avo file will have the changes from the
your_branch_name branch. Call all the new Avo Functions in required places, update the new event properties. You can find a reference of all the code snippets required to implement your events in the
It might be useful to check the changes tab in your Avo workspace for overview while implementing.
If you are implementing the branch in multiple codebases we recommend you to read the Multiple sources on Avo branches guide.
Once you are finished with implementing the code and your source control branch was merged remember to also merge the Avo branch!