Codegen
Send custom events to Heap with Codegen
Avo generates a type-safe function for each event in your plan. You connect Heap through the destination interface: callbacks you fill in to pass each event to the Heap SDK.
The destination interface works with any event-based destination, so Heap can sit next to your other tools.
Docs: Destinations in Avo CodegenSet it up
- In Avo, create a destination and set its mode to Destination Interface in your source’s Codegen setup.
- Pull the generated code with the Avo CLI.
- Initialize Avo with your destination and fill in the callbacks that send to Heap.