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

setOpenTrackingEnabled

Activates or deactivates open tracking for a mailing 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
enabledBoolean - true – Activates open tracking for the mailing.
- false – Deactivates open tracking for the mailing.

Return values

  • Code structure

    void setOpenTrackingEnabled(String sessionId, long mailingId, boolean enabled)