ValueTrack reference

Every ValueTrack macro WhichClick recognises, the query key to use in the template and the click column it is stored in.

Updated 2026-09-02

Any of these keys can appear in the tracking template. Values are stored on the click and exposed through GET /api/v1/clicks, the pivot report and the MCP list_clicks tool.

MacroQuery keyDescriptionCampaign typesClick column
{gclid}gclidGoogle click identifier (auto-tagging)All (limited in Performance Max)gclid
{campaignid}campaignidCampaign IDAllcampaignExtId
{adgroupid}adgroupidAd group IDAlladGroupExtId
{creative}creativeUnique ad IDAllcreativeId
{keyword}keywordMatched keyword (blank for DSA / Performance Max)Search, Displaykeyword
{matchtype}matchtypee = exact, p = phrase, b = broad, a = AI MaxSearchmatchType
{network}networkg = Google Search, s = partners, d = Display, ytv/yts = YouTubeMostnetwork
{device}devicem = mobile, t = tablet, c = computerAlldevice
{placement}placementContent site / placementDisplay, Videoplacement
{targetid}targetidKeyword / audience / product group IDMosttargetId
{loc_physical_ms}loc_physical_msGeo ID of the click locationAlllocPhysical
{loc_interest_ms}loc_interest_msGeo ID of the location of interestAlllocInterest
{adposition}adpositionAd position (e.g. 1t2)SearchadPosition
{feeditemid}feeditemidLegacy asset IDNot Display
{extensionid}extensionidAsset-based extension IDNot Display
{random}randomRandom number for cache bustingAll
{assetgroupid}assetgroupidPerformance Max asset groupPerformance Max
{merchant_id}merchant_idMerchant Center IDShopping
{product_id}product_idProduct ID from Merchant CenterShopping
{product_partition_id}product_partition_idProduct group IDShopping

Google click identifiers#

gclid, gbraid and wbraid are captured from both the tracking template and the landing-page query string. gbraid / wbraid appear for iOS app campaigns where gclid is withheld; the attribution engine matches on whichever is present.

Value normalisation#

FieldStored as
matchtypee, p, b, a (lower-case, single letter)
networkg, s, d, ytv, yts, vp, x
devicem, t, c
keywordTrimmed, max 256 chars, empty string → null
loc_physical_ms, loc_interest_msNumeric geo criteria id as string

Unknown keys are ignored, never stored, and never forwarded to the landing page.

Reporting dimensions#

The pivot report and MCP get_pivot_report accept campaign, network, device, os, country, keyword, matchType, creative and day. Campaign names resolve through campaignidCampaign.externalId; set the external id on each campaign so ValueTrack clicks group correctly.