Skip to main content

goalCounts

Returns conversion totals, unique converting visitors, and value for one non-deleted goal, with a row per active trigger plus id -1 for conversions from deleted or unrecognized triggers. Use goalDistribution for a time series. The range defaults to the goal's creation day through today in UTC, and values are converted to the site's display currency. Requires goal view access.

goalCounts(
id: Int!
startDate: Int
endDate: Int
): GoalCounts!

Arguments​

goalCounts.id ● Int! non-null scalar​

Goal id from goalRefList or goalCardList.

goalCounts.startDate ● Int scalar​

Unix seconds; defaults to the goal's creation time. Earlier times are raised to creation time, and the range starts at the beginning of that UTC day.

goalCounts.endDate ● Int scalar​

Unix seconds; defaults to now. Times before creation are raised to creation time, and the range ends at the end of that UTC day.

Type​

GoalCounts object​

Conversion totals returned by goalCounts, with a row per trigger.