Get Participant Analytics
growsurf_get_participant_analyticsFetch analytics for a GrowSurf participant by ID or email to view engagement, rank, revenue, and activation milestones.
Instructions
Fetch analytics for one participant by GrowSurf participant ID or email. The base response includes all-time engagement, rank, share, and applicable affiliate revenue, commission, and payout metrics. Add activation to include for the program-specific eligibility anchor and covered first milestones, including firstPortalViewedAt and firstShareChannel. A null milestone with a partial or unavailable state is unknown, not proof that the action never happened. Request both activation and series for covered portalViews and shareActions buckets. Filter optional series and email data with days (up to 1825) or both startDate and endDate as positive Unix timestamps in milliseconds. endDate must be at or after startDate, and the range can span at most 1825 days. These date parameters do not filter the base response or activation milestones. Targets campaignId if passed, otherwise GROWSURF_CAMPAIGN_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days for optional `series` and `email` analytics. Does not filter the all-time base response. | |
| endDate | No | End of the optional-data timeframe, positive Unix timestamp in milliseconds. Supply `startDate` too; `endDate` must be >= `startDate` and at most 1825 days later. | |
| include | No | Comma-separated optional data. Current values are `series`, `email`, and `activation`; the API returns `400` for unknown values. | |
| interval | No | Bucket size for `series` and email series. Defaults to `day`. | |
| startDate | No | Start of the optional-data timeframe, positive Unix timestamp in milliseconds. Supply `endDate` too; the window must span at most 1825 days. | |
| campaignId | No | Target program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Program IDs also identify newly created programs without restarting the server. | |
| participantId | No | ||
| participantEmail | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Sent, delivered, opened, clicked, bounced, and spam complaint metrics for program emails in the requested window. | ||
| ranks | No | Leaderboard ranks for this participant. | |
| series | No | This participant's per-period activity. Present when `include` contains `series`. | |
| endDate | No | Window end (Unix ms). Present with `series` or `email`. | |
| analytics | No | All-time participant analytics totals. Date-window parameters do not filter these fields. | |
| startDate | No | Window start (Unix ms). Present with `series` or `email`. | |
| activation | No | Opt-in covered eligibility and first-milestone analytics for one participant. | |
| shareCount | No | Per-channel share counts (e.g. `email`, `facebook`, `twitter`). |