Appendix

Date presets#

Pass date_range_preset with one of these values. For other ranges, use an explicit date_range instead.

PresetDescription
1hLast 1 hour
4hLast 4 hours
12hLast 12 hours
24hLast 24 hours
7dLast 7 days
30dLast 30 days
90dLast 90 days

Granularity options#

When using auto granularity, the system selects the best granularity from the requested time range.

GranularityDescriptionAuto-selected for
5min5-minute intervals1h preset
15min15-minute intervals4h preset
30min30-minute intervals12h preset
1hHourly intervals24h preset
hourlyHourly intervals alias-
dailyDaily intervals7d, 30d presets
weeklyWeekly intervals90d preset
aggregateSingle total, no time series-
autoAutomatically selects based on rangeDefault

Goal types#

Used when setting a goal on a block or test, for example with accelerate/set-block-goal or accelerate/create-ab-test.

GoalDescription
engagementAny meaningful interaction with the content.
click_any_linkA click on any link inside the content.
cta_clickA click on the block's primary call-to-action only — block-scoped, not ambient page-wide links.
submit_formA form submission inside the content.

These four goals ship by default. The accepted values are not a fixed list — they are derived from the site's registered goals, so a theme or plugin can register additional conversion goals and they become valid options automatically. The abilities reject any goal that is not registered, so query the current set rather than assuming only the built-ins.

Filter operators#

Query and aggregation abilities, such as accelerate/query-events and accelerate/aggregate, accept these filter operators:

OperatorDescription
eqExact match
neqDoes not match
containsString contains value
gtNumeric greater than
ltNumeric less than
inValue in array

Audience field conditions use their own operator symbols — =, !=, *= (contains), !* (does not contain), and ^= (starts with) for strings, plus gt, gte, lt, and lte for numbers. Use accelerate/get-audience-fields to see which operators each field supports.

Attribution terms#

  • First-touch attribution gives credit to the first known source.
  • Last-touch attribution gives credit to the most recent known source before conversion.
  • UTM performance groups traffic and conversions by campaign tags.

Who gets the credit

Phase 2 of 2: Last-touch
One visitor, three visits before they convert: organic search, then social, then your email. First-touch attribution gives all the credit to where they started; last-touch gives it to the last step before converting. Watch the credit marker slide between them: same journey, different story depending on the model.

Content identifiers#

Abilities can target content by ID when known. When the user gives a title, URL, or partial phrase, call accelerate/search-content first and confirm the matched item before mutating it.

Old AI docs route#

The previous AI docs lived at /docs/ai-integration. That route remains available and points into this Accelerate AI section.

Further resources#