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

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)