Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

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)