HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


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

Type: int[ ]


sessionIdStringID of the session
mailingIdlongID of the mailing
URLsString[ ]Link URLs of the mailing to be analysed
  • true: Multiple countings 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)

    What’s Next