GoodAnalytics.Core.Funnels.CohortSourceFilter (GoodAnalytics v0.1.1)

Copy Markdown View Source

Embedded schema for funnel cohort source filtering.

Applied to step 1 to restrict analysis to visitors from a specific traffic source (platform, medium, and/or campaign).

Summary

Functions

Returns true when all filter fields are blank (nil or empty string). Used by the parent schema to discard an all-blank embed.

Builds a changeset for cohort source filter attributes.

Functions

blank?(filter)

Returns true when all filter fields are blank (nil or empty string). Used by the parent schema to discard an all-blank embed.

changeset(filter, attrs)

Builds a changeset for cohort source filter attributes.