Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

getClickCountByUrl

Counts the clicks for each of the given URLs in Optimizely Campaign.

Type: int[ ]

Parameters

NameTypeValue
sessionIdStringID of the session
mailingIdlongID of the mailing
URLsString[ ]Link URLs of the mailing to be analyzed
uniqueBoolean - true – Multiple counts of recipients that clicked a link in the mailing several times are removed.
- false – The overall number of clicks for a link is returned.

Return values

Number of clicks for each URL

Code structure

int[] getClickCountByUrl(String sessionId, long mailingId, String[] URLs, boolean unique)