HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


Counts the clicks of a mailing in Optimizely Campaign.

Type: int


sessionIdStringID of the session
mailingIdlongID of the mailing
  • true: Double countings of recipients that clicked a link in the mailing several times are removed.
  • false: The overall number of clicks is returned.
  • Return values

    Number of clicks of the mailing

    Code structure

    int getClickCount(String sessionId, long mailingId, boolean unique)

    What’s Next
    Did this page help you?