Re: How to fetch camapigns clicks and the users clicked on particular urls.

Hi,

I see what you mean--we don't have a getCampaignClicks function in the PHP wrapper. DId you see that in one of our PHP wrapper previously? We do have this function to query for clicks by contact, on line 150 of the main PHP wrapper.

I agree that we should have a get clicks by email campaign function, but we probably won't be able to add that in the very near future due to time constraints. If you get campaign by ID, the clicks are in the XML that is returned, however.

Re: How to fetch camapigns clicks and the users clicked on particular urls.

DId you see that in one of our PHP wrapper previously?

No, but we use that functionality in our Mailchimp integration. We just figured you guys would offer the same functionality. Basically, we need to be able to record the number of clicks, user who made clicks and the target of the click. This all gets added to the PSA software we use.

If we had to query each user individually, it would add a considerable amount of overhead that would be eliminated with the inclusion of a full campaign function. I'm not even sure the getContactClicks function would provide us with everything we need.

If you get campaign by ID, the clicks are in the XML that is returned, however.

Is this just the total number of clicks or does it contain other information?

Re: How to fetch camapigns clicks and the users clicked on particular urls.

In this repo you will get a file name with cc_class.php in which there is a class CC_Campaign and in this class there is a function getCampaignClicks($id). i was just using this to fetch the clicks from a particular campaign for a particular url. Just one month ago it is working stage but now it's not giving me result.

So can you please look after that.

And if it's possible in near by future that any such API is available in near by future. That will be more appreciative if you apply this in Oauth2.0 as we are using these wrapper files in the Integration.

Re: How to fetch camapigns clicks and the users clicked on particular urls.

Hi,

For that getCampaignClicks function, for ID, you want to pass in the ID of the contact you want to get campaign clicks for. This is the same function I mentioned before. It doesn't get campaign clicks by email (campaign); it retrieves clicks by the contact who clicked. You would have to query each contact in the list(s) that the email was sent to, to make use of that function.

Update: You can get the campaign clicks by calling a URI formatted as below: