SproutCMS

This is the code documentation for the SproutCMS project

function autoDetectSourceMedium()

Auto-generate UTM params based on the initial request referrer

Usage

array SessionStats::autoDetectSourceMedium ( string $referrer );

Arguments

  1. string $referrer
    Full URL, e.g. 'https://facebook.com/post/987654321

Return value

  • array
    Two strings or NULL if not known; 0 => source, 1 => medium