HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

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 analysed
uniqueboolean
  • 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)
    

    Did this page help you?