Acquisition
acquisitionReport daily visits by channel—paid, email, social, campaign, organic, referral, direct—plus sources, campaigns, conversions, ad clicks and revenue for a project date range.
Instructions
Visits per day and channel (paid, email, social, campaign, organic, referral, direct), the totals of each channel over the range (channels, every channel in that order), and the sources and campaigns that brought them, with their conversions, ad clicks and revenue. The revenue of a channel, source or campaign is that of the conversions made by the visits that entered through it, null when the goal counted is a page or the project has no goal. Revenue is a sum of the numeric revenue property the site sent on events, in the project's currency (currency in list_projects and project_settings) and as sent: changing the currency or sending amounts in another one converts nothing. A source is the campaign source, else the referring host; a visit with neither is (ad click) when it came from an ad click, such as one opened by an app that sends no referrer, and (direct) otherwise. Conversions count one goal: the one goal names, by its id from the goals tool, or else the first goal (goal 1), which started as the project's former conversion event; they are null when the project has no goal.
The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.
Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"from": "<from>",
"to": "<to>"
},
"name": "acquisition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Last day of the range, inclusive (YYYY-MM-DD), at most the project's today. | |
| from | Yes | First day of the range, inclusive (YYYY-MM-DD). | |
| goal | No | The goal counted as conversions, by its id from the goals tool; without it, the first goal (goal 1). | |
| project_id | Yes | The project id, from list_projects. |