Skip to main content

analyticsConversionsOverTime

Returns goal conversion event counts in chronological buckets for a site and preset or window within available history. Use analyticsOverTime to combine a dimension series with conversions. Presets use UTC and conversion counts read site goals even though sourceType is required. Requires web analytics view access.

analyticsConversionsOverTime(
goalId: Int!
sourceId: Int!
sourceType: AnalyticsSource!
startAt: Int
endAt: Int
presetDate: String
granularity: TimeUnit
): [ConversionDay!]!

Arguments​

analyticsConversionsOverTime.goalId ● Int! non-null scalar​

Goal ID from goalRefList belonging to the site in sourceId.

analyticsConversionsOverTime.sourceId ● Int! non-null scalar​

Site ID from sites; conversions read goals for this site.

analyticsConversionsOverTime.sourceType ● AnalyticsSource! non-null enum​

Required selector; conversion counts still read site goal events for sourceId.

analyticsConversionsOverTime.startAt ● Int scalar​

Unix seconds for the window start; supply with endAt when no preset is given.

analyticsConversionsOverTime.endAt ● Int scalar​

Unix seconds; counts events before this instant plus one day. Supply with startAt unless presetDate is used.

analyticsConversionsOverTime.presetDate ● String scalar​

Case-insensitive preset that overrides startAt/endAt: today, yesterday, recent (today plus six prior days), last 7 days, last 30 days (both end yesterday), this month, or last month; others error.

analyticsConversionsOverTime.granularity ● TimeUnit enum​

Conversion bucket size, default DAY; presets and buckets use UTC.

Type​

ConversionDay object​

One conversion-count bucket returned by analyticsConversionsOverTime or analyticsOverTime.