TanqoryDocs

tanqoryExtMarketingObservedActivities

  • Query
  • Orders and payments

The store's observed traffic ("campaign activities"): its visits and its orders' landing visits over a range of days (default: the last 365) grouped by type, channel and UTM source / medium / campaign, most visits first. assigned false keeps the traffic no campaign claims; true the traffic a campaign claims; campaignId the traffic assigned to that campaign by hand.

Arguments

ArgumentTypeRequiredDefault
assignedBooleanOptional
campaignIdIDOptional
fromDateOptional
toDateOptional

Returns

[TanqoryExtMarketingObservedActivity!]!

FieldTypeDescription
assignedByHandBoolean!

True when the merchant assigned it by hand.

campaignTanqoryExtMarketingCampaign

The campaign that claims this traffic (by ID, link, rule, activity or by hand), or null.

channelString!
keyString!

Identifies the traffic group: type|channel|utm_source|utm_medium|utm_campaign, lower case.

lastObservedAtDateTime
sessionsInt!
titleString!

utm_campaign, else "Paid", "Organic" or "Direct".

typeString!

paid, organic or direct.

utmCampaignString
utmMediumString
utmSourceString

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query TanqoryExtMarketingObservedActivities {\n  tanqoryExtMarketingObservedActivities {\n    assignedByHand\n    campaign { id }\n    channel\n    key\n    lastObservedAt\n    sessions\n    title\n    type\n    utmCampaign\n    utmMedium\n  }\n}","variables":{}}'

Built from commit c0b3fb3fdef7 · API version 2026-10