The ListCampaignContactPageViews method to retrieve a list of stats about page views generated by a campaign for a contact.
If you have enabled dotMailer page tracking on your website, you can use this method to find out which pages a contact went on to view as a result of clicking a link in your campaign. Use this to see the contact‑s trail through your website.
To iterate through the whole data set you should use the select and skip parameters. For example to select the first 1000 records in the data set you should set the select parameter to 1000 and the skip parameter to 0. To select the next 1000 records you should set the select parameter to 1000 and the skip parameter to 1000. You should continue to do this until 0 records are returned to you to get the whole data set.
Parameters
| username |
string |
This is the username from your API key. It is in the format of an email address and will look similar to apiuser@apiconnector.com |
required |
| password |
string |
This is the password from your API key. |
required |
| campaignId |
int |
This is the ID of the campaign you wish to query against. |
required |
| contactId |
int |
This is the ID of the contact you wish to query against. |
required |
| select |
int |
This is a number which indicates the number of records you wish to select. This argument must no greater than 1000. |
required |
| skip |
int |
This is a number which is the number of records you want to skip; to select all records from 1001 to 2000: set this number to 1000. |
required |
Return values
The result is an array of APICampaignContactPageView objects, each consisting of the following:
| url |
string |
The URL tracked as having been visited. |
| dateViewed |
dateTime |
The date and time the page view was tracked. |