AMPscript
Add
CancelSend
Remove
Retrieve
RetrieveLists
Tracking.ClicksRetrieve
Tracking.Retrieve
Tracking.TotalByIntervalRetrieve
Validate Your Server-Side JavaScript using WSProxy
Returns tracking data related to an initialized send specified by type, duration, and interval
Tracking.TotalByIntervalRetrieve(1, 2, 3, 4)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Type of data to aggregate and return. Choose Send, Open, Click, Bounce, or Unsubscribe. |
| 2 | string | Required | Start date of data period |
| 3 | string | Required | End date of data period |
| 4 | string | Required | Interval used to aggregate data. Choose day or hour. |
This sample code returns a month’s worth of click data for the initialized send aggregated by day:
1var singleSend = Send.Init(12345);
2var results = singleSend.Tracking.TotalByInterval.Retrieve('Click', '07-01-2010', '07-31-2010', 'day');