Reputation: 4077
I am having some trouble (and also don´t now if it's possible) getting the data via the API that has to do with opens, clicks, etc. but with more precision. With this I mean being able to get who opened the emails, who clicked on them, where they clicked, etc. Is this possible? If so, any example calls?
Upvotes: 1
Views: 1073
Reputation: 13188
You actually can't retrive that information via the historical stats API. We actually aggregate all the individual events (clicks, opens, etc.) and disregard the extra informations. It's designed to be used in reporting really.
On the other hand, you could use the events webhook to get the data that you're looking for in real time. There's no way to do historical queries on that, but as events are passing through our system, you'll get POSTs like this:
{"email":"[email protected]","timestamp":1322000095,"unique_arg":"my unique arg","event":"delivered"}
{"email":"[email protected]","timestamp":1322000096,"unique_arg":"my unique arg","event":"open"}
There is a PHP example in the docs too.
Upvotes: 2