The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Using ctctWrapper.php searchByEmail and listContactEvents help.

Occasional Contributor

Using ctctWrapper.php searchByEmail and listContactEvents help.

Hi Everybody,


New to the Constant Contact API. I was wondering how get the opens and clicks of a contact (found by email) using searchByEmail and listContactEvents.


I assume I create a contact with the information returned from $ContactsCollection->searchByMail($email) but don't know how.


I then run the contact through $ContactsCollection->listContactEvents($contact,'clicks,opens etc') then use 

$contact-getOpens(), getClicks() etc to obtain the information I need.



Thanks in advance,




Re: Using ctctWrapper.php searchByEmail and listContactEvents help.

Hello Brad,


The way you are doing it should work.  What exactly is happening when you do it?  Do you get an error?  The reports should be placed in the contact object which you can then pull out to display.



Benjamin Soder
NOC Analyst
Constant Contact
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More