Fathom Analytics ExecModule
Overview
FathomAnalyticsModule reads historical traffic reports and current visitor counts for one Fathom Analytics site. Use it to collect a weekly traffic summary, compare which pages visitors entered through after a campaign, or check active traffic while a launch is underway. Historical results contain named metrics and dimensions for use in downstream steps.
Usage
- Find the target site's ID in Fathom and create a site-specific token with read access.
- Choose Fathom Analytics in the Integration Account Console. Save the site ID and API token with the connection.
- Add a Fathom Analytics step in Workflow Studio and select the saved account under General > Connection.
- Choose Aggregate for a historical report or Current Visitors for a live snapshot. Check the result's
statusbefore passing data to a downstream step.
Inputs
| Input | Type | Purpose |
|---|---|---|
operation | string | aggregate (default) or current_visitors. |
startDate, endDate | strings | Required for aggregate. Inclusive dates in YYYY-MM-DD format, with a maximum window of 90 days in the site's configured timezone. |
metrics | array of strings | Aggregate measures. Defaults to ["visits", "pageviews"]. |
dimensions | array of strings | Up to three distinct grouping fields for an aggregate. Omit for no dimension grouping. |
dateGrouping | string | Optional aggregate time bucket. Supports day, month, or year. |
limit | integer | Maximum aggregate rows. Defaults to 100 and accepts 1–500. |
detailed | boolean | For current_visitors, include the top pages and referrers. Defaults to false. |
Supported metrics are visits, uniques, pageviews, avg_duration, and bounce_rate.
| Grouping | Supported dimensions |
|---|---|
| Site and page | hostname, pathname, entry_page, exit_page |
| Acquisition | referrer_hostname, referrer_pathname, referrer_source, ai_source, utm_campaign, utm_content, utm_medium, utm_source, utm_term, keyword, ref |
| Audience | browser, country_code, city, state, region, device_type, operating_system |
Outputs
| Output | Type | Meaning |
|---|---|---|
status | string | success or error. |
httpStatus | integer | Provider HTTP status when available. |
attempts | integer | Number of provider request attempts. |
error | object | On failure, a sanitized error code, message, and retryable flag. |
rows | array | Aggregate rows, each with numeric metrics, named dimensions, and a timestamp when returned for time grouping. |
count | integer | Number of aggregate rows returned by the step. |
total | integer | Current visitor count. |
content, referrers | arrays | In a detailed current visitor result, up to 150 page entries and 150 referrer entries with counts. |
IntegrationAccount Requirements
Use an authorized, saved READY IntegrationAccount with account name FATHOM_ANALYTICS. Its accountId is the Fathom site ID and accepts 1–64 ASCII letters or digits. Its protected apiKey stores the Fathom API token. Choose site-specific read access (read:{site_id}) in Fathom. The module takes its site ID from the connection, so use a separate connection for each site you want to report on. Fathom token setup
Configuration
Allow api.usefathom.com in the workflow's outbound network policy. The connector sends the saved token as a Bearer credential over HTTPS to that fixed host and rejects redirects. Keep the token in the saved connection and out of step inputs and outputs.
Operations
- Aggregate calls
GET /v1/aggregationsfor the saved site's pageview data, from the start of the first day through the end of the last day. With time grouping it requests chronological order. Otherwise it sorts by the first metric in descending order. Numeric metric strings from Fathom become numeric values in the result. - Current Visitors calls
GET /v1/current_visitorsfor the saved site. Use a count for a lightweight check or request details when a workflow also needs the leading pages and referrers.
Errors and Failure Modes
| Condition | What to check |
|---|---|
| Input validation failure | Check the operation, reporting dates, metrics, dimensions, and limit. |
| Missing or unready connection | Select a ready Fathom Analytics account with the target site ID and protected token. |
| Outbound request blocked | Check that the workflow policy allows api.usefathom.com. |
| HTTP 401 or 403 | Check the token's validity and site-specific read access. |
| HTTP 429 | Space out requests from workflows sharing the same Fathom account. |
| Invalid or oversized response | For aggregation, shorten the window, reduce dimensions, or lower the row limit. For current visitors, use the count-only form when it meets your needs. |
The connector caps responses at 2 MiB and can retry once after a transient network or provider failure. It honors a Retry-After delay of up to five seconds. A longer provider delay is returned as an error so the workflow can schedule a later attempt. Error results omit the token and raw provider response.
Example
A team reviewing a launch compares the pages that brought visitors into its site during the first week. It selects the saved site connection and requests the top five entry pages by visits.
{
"operation": "aggregate",
"startDate": "2026-10-26",
"endDate": "2026-11-01",
"metrics": ["visits", "pageviews"],
"dimensions": ["entry_page"],
"limit": 5
}
A site with two entry pages in that period could return the following result.
{
"status": "success",
"rows": [
{
"metrics": {"visits": 215, "pageviews": 328},
"dimensions": {"entry_page": "/launch"}
},
{
"metrics": {"visits": 86, "pageviews": 127},
"dimensions": {"entry_page": "/pricing"}
}
],
"count": 2,
"httpStatus": 200,
"attempts": 1
}
The next step can format the rows for a launch report. To get the site-level visit total, request visits for the same dates and omit dimensions. Grouped counts describe each entry page.
Notes
- Pagination. Fathom's reports API provides no page cursor. Use fewer dimensions or a shorter date window when a query reaches the row cap.
- Rate limits. Fathom applies account-wide request and concurrency limits across endpoints. Include retries and any scheduled polling in your budget. Fathom API rate limits
- API limits. This connector covers site pageview aggregates and current visitors. Use Fathom directly for arbitrary filters, hourly grouping, event reporting, or account and site administration.
- Idempotency and destructive behavior. Both operations leave Fathom data and settings untouched. Repeated reads can return different results as traffic changes or Fathom processes additional data.
- Provider verification. Run a small report with an authorized site before enabling a production schedule.