goalDistribution
Returns conversion buckets by day, week, or month for one non-deleted goal, oldest first, each with a row per
active trigger plus id -1. Use goalCounts for one total. Every bucket in the range is returned, with zeros when
empty; the first bucket starts at the range start and the last ends at the range end. Values use the site's
display currency. Requires goal view access.
goalDistribution(
id: Int!
startDate: Int
endDate: Int
timeUnit: TimeUnit!
): [GoalDistribution!]!
Arguments
goalDistribution.id ● Int! non-null scalar
Goal id from goalRefList or goalCardList.
goalDistribution.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.
goalDistribution.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.
goalDistribution.timeUnit ● TimeUnit! non-null enum
Bucket size: DAY, WEEK, or MONTH; after the first bucket, weeks start on Monday and months on the 1st.
Type
GoalDistribution object
Time bucket returned by goalDistribution, with totals and a row per trigger.