Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Marketing Namespace / IAffiliateRepository Interface / GetConversionRate Method
Id of the affiliate to calculate conversion rate for.
Inclusive start date of timeframe to calculate.
Inclusive end date of timeframe to calculate.
The number of referrals for the timeframe.
In This Topic
    GetConversionRate Method (IAffiliateRepository)
    In This Topic
    Calculates the percentage of referred users who made purchases for a given timeframe.
    Syntax

    Parameters

    affiliateId
    Id of the affiliate to calculate conversion rate for.
    startDate
    Inclusive start date of timeframe to calculate.
    endDate
    Inclusive end date of timeframe to calculate.
    totalReferrals
    The number of referrals for the timeframe.

    Return Value

    The conversion rate for the affiliate for the given timeframe.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also