Quickstart: using predefined pipelines¶
The fastest way to get pipeline counts is to use one of the predefined pipelines — global, read-only metrics available to all organizations. No pipeline definition to create; just fetch counts against a fixed ID.
Prerequisites: a valid API token and your organization_id.
Base URL: https://api.giosg.com/api/objectives/v1/orgs/<organization_id>/pipeline
Want to build your own pipeline instead? See Building a custom pipeline.
For a full endpoint reference, see the Pipeline API reference.
Step 1 — List the available predefined pipelines¶
1 2 | |
The response is a list of predefined pipelines. There are currently two:
- Impression Pipeline (
00000000-0000-0000-0000-000000000001) — impressions → engaged → positive outcome → goals. Uses yourinteraction-idsandgoal-idsvalue sets. - Shopping Cart Pipeline (
00000000-0000-0000-0000-000000000002) — cart created → cart purchased → cart purchased with real chat. No value sets needed.
Example response (trimmed):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
Copy the id of the pipeline you want.
Step 2 — Get counts¶
Use the standard counts endpoint with the predefined pipeline's ID:
1 2 3 4 5 6 7 8 9 | |
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
Impression Pipeline and value sets
The Impression Pipeline filters its steps by $interaction-ids and $goal-ids. If a value set doesn't exist for your organization, that filter condition is omitted entirely and the step counts all matching events. See Building a custom pipeline — value sets for how to create them.
The Shopping Cart Pipeline needs no value sets — it uses literal event filters.
Step 3 (optional) — Include pageview counts¶
Add "include_pageview_counts": true to get total visitor counts from the pageview table alongside your step counts, broken down by referral source:
1 2 3 4 5 6 | |
The response gains a pageview_counts object:
1 2 3 4 5 6 7 8 9 10 11 | |
source_field is taken from the pipeline definition's pageview_source_field (here referrer_medium).
Next steps¶
- Building a custom pipeline — define your own steps and filters
- Filtering counts and step detail — slice counts by country, city, or any dimension at query time
- Pipeline API concepts — understand the data model in depth