HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

setClickTrackingEnabled

Activates or deactivates click tracking for a mailing of a specific MIME type (click tracking is set separately for the two MIME types) in Optimizely Campaign. Open tracking only affects content of the MIME type text/html.

Type: void

Parameters

NameTypeValue
sessionIdStringID of the session
mailingIdlongID of the mailing
mimeTypeStringMIME type (text/plain or text/html) of the mailing.
enabledboolean
  • true: Activates click tracking for the mailing
  • false: Deactivates click tracking for the mailing
  • Return values

    • Code structure

      void setClickTrackingEnabled(String sessionId, long mailingId, String mimeType, boolean enabled)
      

    What’s Next
    Did this page help you?