Configuring Inspector Gateways
Add Avo Inspector at the gateway, at each output, or both, so Avo can check what each checkpoint actually receives.
Gateways are in closed beta. Reach out at support@avo.app or in the chat bubble in the app to request access and share feedback.
Inspector checks that the events your gateway handles match the design in your tracking plan. There are two kinds of checkpoint, and you can add Inspector at either or both:
- At the gateway: one checkpoint that sees every event after the gateway’s own transformations, before anything output-specific happens. Leave the output reference empty here.
- At each output: one checkpoint per destination that sees the event after that output’s transformations. Set the output reference to that output’s reference, such as
meta-7f3k2q.
Start by setting up the gateway in your tracking plan. One Inspector API key covers the whole gateway. Find it in Avo on the Sources page, under Gateways: open the gateway and go to the Inspector setup tab. The tab shows these steps for your gateway type, with your key and each output’s reference already filled in. For each output, it gives you a snippet, script or function to copy with Copy. An output without a reference shows No output reference set yet.
If your gateway is a product that maintains its own Avo integration, its builders can follow Integrate as an Avo Gateway.
Tell Avo which source an event came from
A gateway usually receives events from several sources, so every event needs an origin hint: a value that names the source it came from, such as web, ios or android. Keep it to a few fixed values, and never use a user id. Without an origin hint, Avo can’t tell which source an event came from, so it doesn’t check the event against your design.
Set it up in two places:
- In Avo, map each value to a source. On the Sources page, open each source that feeds the gateway, go to its Inspector setup tab and add the value under Origin hints. Each value can belong to one source only, and the match is exact and case-sensitive. You can also map a value from the issue Inspector raises when it sees one it doesn’t know. See Fix gateway issues.
- In your Inspector setup, send the value on every event. Each setup below has an origin hint field. Fill it in on every event, even where it’s labelled optional. Send that source’s app version as well. With an origin hint set, events without an app version are recorded without a version.
Set up your gateway
- Copy the key from the Inspector setup tab.
- Add the tag template. In your server container, open Templates, choose Search Gallery under Tag Templates and add the Avo Inspector tag template. If it’s already there, update it. Paste the key into Avo Inspector Key and choose the Environment (development, staging or production).
- Inspect at the gateway. Add an Avo Inspector tag with Output reference (optional) left empty, fired by a Custom Event trigger whose event name matches the regex
.*so it sees every event. In the tag’s Transformations section, apply the gateway-level transformations and none of the output-specific ones. With no gateway-level transformation, inspect the event as received. - Inspect each output. Add one Avo Inspector tag per destination with the same triggers as that destination’s tag, and set Output reference (optional) to that output’s reference. In the tag’s Transformations section, apply the same transformations as the destination tag.
- Set the origin hint. On every Avo Inspector tag, set Origin hint (optional) to an Event Data variable that names the source, such as
{{Event Data - platform}}. Set Origin app version (optional) to that source’s app version.
The environment is fixed per tag. Use a separate tag, or a lookup variable, if one container serves several environments.
Events you send while testing in GTM Preview go to development, whatever the Environment setting, while Send to the development environment in Preview mode is checked. It’s checked by default, and live traffic keeps using Environment. A tag saved before this setting existed keeps sending Preview events to its Environment until you open the tag and save it again.
Check that events arrive
Send a few test events through the gateway in development. Then open the Inspector Debugger to see each event at each checkpoint:
- Checkpoint. The Checkpoint column shows where the event was inspected: the gateway’s name at the gateway, and the gateway and destination, such as
Server-side GTM → Meta, at an output. - Pass or fail. Each event is checked against what its checkpoint should receive. Open an event to see its checkpoint, its origin hint, and how many issues it has there, with a link to them. An event that hasn’t been checked shows Not checked yet.
- Filter by checkpoint. Pick one or more sources, gateways and gateway outputs in the Checkpoint filter.
- Follow one session. Pick several streams, such as a source’s stream and the gateway’s stream, to see one session’s events on their way through the pipeline.
The Debugger checks events against the branch you’re viewing, so you can try an origin hint or a transformation on a branch before you merge it. Issues at each checkpoint show up in the Issues view, checked against your main branch.
Fix gateway issues
As well as issues with the events themselves, Inspector raises two kinds of issue about the gateway setup:
- Origin hint not mapped to a source. Events reached the gateway with an origin hint that no source claims, so Avo can’t check them against a source. Open the issue and, under Fix, pick the source that sends the hint and choose Assign to that source. If the source isn’t an input on the gateway yet, assigning adds it. On a branch, the change applies once the branch is merged. If events arrive with no origin hint at all, the issue says so and links to how to send one.
- Unknown gateway or gateway output. Events arrived with an output reference that matches no output on the gateway, or with the key of a gateway that isn’t in your tracking plan. If you renamed the output, update the output reference in your tag or code. If you removed it by mistake, add it back. A gateway that only exists on an open branch shows this issue until the branch is merged.
Slack alerts for gateway issues name the gateway and the output, or say the issue happened at the gateway, before any output.
Avo is the analytics governance platform for product data that lets you define it consistently, implement it correctly and trust it everywhere. Using an AI agent? Connect it to the Avo MCP at https://mcp.avo.app/mcp and it can look up each output's reference and tell you what every checkpoint should receive.