set-up-an-event-source · version 1.0.0 · for buyers.
When to use
- A person wants a campaign to optimize for purchases, leads or another conversion.
- A person asks whether their site is sending conversion events.
- Set up a campaign found a conversion goal in the brief.
Before you start
- You are connected to the buyer account and know the
advertiserId. - You know which conversions matter to the person and on which domains they happen.
- Someone who can change the advertiser’s website or app is available to install the tag.
Steps
- Call
get_statusand confirm the account and advertiser. - Call
searchwithkind: "measurement_source"and reuse an event source that already covers the advertiser. - Call
getwithkind: "measurement_source"and the id. Read its event types, allowed domains and health:not_seen,receivingorneeds_attention. - If there is no suitable source, call
open_pagewithpage: "event_sources"and theadvertiserIdinarguments. The person creates the source there, picks event types and allowed domains, and copies the snippet. v3 has no tool that creates an event source directly. - The person installs the snippet and sends a test event from the same page.
- Call
geton the source again until its health isreceiving. If it staysnot_seenor turnsneeds_attention, tell the person what the page reports. - Attach the source to the campaign goal with
save_campaign: on a new campaign includeoptimizationGoals; on an existing one sendcampaignId,expectedRevisionandoptimizationGoals. Read theoptimizationGoalsschema intools/listfor the exact shape. - If the advertiser needs an integration Semicola does not offer yet, file it with
save_askandtype: "integration".
Guardrails
- Never send or ask for personal data about the people behind the events.
- Do not say events are arriving until the health says
receiving. - Missing conversions are unavailable, not zero.
- If you attach a source that is not receiving yet, tell the person the goal cannot optimize until it does.
Done when
- The event source reports
receiving. - The campaign’s goal references it, confirmed by
geton the campaign. - The person knows which events are counted and where to check health later.