getStats()

Overview

public struct function getStats(
      required string  templateId 
    ,          string  dateFrom   
    ,          string  dateTo     
    ,          numeric timePoints  = 1
    ,          boolean uniqueOpens
    ,          array   stats      
)

Collates various stat counts for the given template in the given timeframe for the given template.

Arguments

NameTypeRequiredDescription
templateIdstringYesID of the template to get counts for
dateFromstringNoOptional date from which to count
dateTostringNoOptional date to which to count
timePointsnumericNo (default=1)Optional number of points to break out the stats over time (i.e. for use in graphing)
uniqueOpensbooleanNo
statsarrayNo