> ## Documentation Index
> Fetch the complete documentation index at: https://docs.invoca.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Call Activity Tracking

For full details on creating and updating campaigns via the API, see [Advertiser Campaigns](https://docs.invoca.com/en/latest/api_documentation/network_integration/advertiser_campaigns/index.md).

## Manage call activity tracking for campaigns

Call activity tracking can be set for a campaign to determine whether or not call activity should be tracked. The call activity will be tracked if the full condition is met.

### Set Call Activity Tracking

To conditionally track call activity, set `"call_activity_tracking"` to the tracking option you want.

POST

`https://invoca.net/api/2022-08-01/<network_id>/advertisers/<advertiser_id_from_network>/advertiser_campaigns/<advertiser_campaign_id_from_network>.json`

Example Request Body

```json theme={null}
{
  "ivr_tree": {
    "call_activity_tracking": "NoTracking",
    "root": {
      "node_type": "Connect",
      "destination_phone_number": "8056173768",
      "destination_country_code": ""
    }
  }
}
```

### Conditions

| Option | Details |
| - | - |
| NoTracking (Default) | Default is NoTracking. When set to NoTracking, no IVR or call activity data will be tracked during the call. |
| PurgeActivityOnCallImport | When set to PurgeActivityOnCallImport, IVR and call activity data will be tracked during the call for use while the call is happening but will be purged when the call finishes. |
| SaveActivityOnCallImport | When set to SaveActivityOnCallImport, IVR and call activity data will be tracked during the call and will be saved in the Invoca platform after the call finishes. |


## Related topics

- [Understanding Call Activity Tracking](https://docs.invoca.com/s/article/call-activity-tracking.md)
- [Network Integration](https://docs.invoca.com/en/latest/api_documentation/network_integration/index.md)
- [Google Campaign Manager: Integration Overview](https://docs.invoca.com/s/article/google-campaign-manager-integration-overview.md)
- [Lost Opportunity Tracking](https://docs.invoca.com/s/article/lost-opportunity-tracking.md)
- [Google Campaign Manager: Installation Guide](https://docs.invoca.com/s/article/google-campaign-manager-installation-guide.md)
