Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

getOpenCount

Counts the opens of a mailing in Optimizely Campaign.

Type: int

Parameters

Name

Type

Value

sessionId

String

ID of the session

mailingId

long

ID of the mailing

unique

boolean

  • true – Double counts of recipients that opened the mailing several times are removed.
  • false – The overall number of opens is returned.

Return values

Number of opens of the mailing

Code structure

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