lib/mail/TrackingSettings.php
public function setGanalytics(
        $enable,
        $utm_source = null,
        $utm_medium = null,
        $utm_term = null,
        $utm_content = null,
        $utm_campaign = null
    ) {
        if ($enable instanceof Ganalytics) {
            $ganalytics = $enable;
            $this->ganalytics = $ganalytics;
            return;
        }
        $this->ganalytics = new Ganalytics(
            $enable,
            $utm_source,
            $utm_medium,
            $utm_term,
            $utm_content,
            $utm_campaign
        );
    }
public function setGanalytics(
        $enable,
        $utm_source = null,
        $utm_medium = null,
        $utm_term = null,
        $utm_content = null,
        $utm_campaign = null
    ) {
        if ($enable instanceof Ganalytics) {
            $ganalytics = $enable;
            $this->ganalytics = $ganalytics;
            return;
        }
        $this->ganalytics = new Ganalytics(
            $enable,
            $utm_source,
            $utm_medium,
            $utm_term,
            $utm_content,
            $utm_campaign
        );
    }
public function setGanalytics ( $ enable , $ utm_source = null , $ utm_medium = null , $ utm_term = null , $ utm_content = null , $ utm_campaign = null ) { if ( $ enable instanceof Ganalytics ) { $ ganalytics = $ enable ; $ this -> ganalytics = $ ganalytics ; return ; } $ this -> ganalytics = new Ganalytics ( $ enable , $ utm_source , $ utm_medium , $ utm_term , $ utm_content , $ utm_campaign ) ; }
Set the Google analytics settings on a TrackingSettings object

@param Ganalytics|bool $enable The Ganalytics object or an indication
if the setting is enabled
@param string|null $utm_source Name of the referrer source. (e.g.
Google, SomeDomain.com, or
Marketing Email)
@param string|null $utm_medium Name of the marketing medium. (e.g.
Email)
@param string|null $utm_term Used to identify any paid keywords
@param string|null $utm_content Used to differentiate your campaign from
advertisements
@param string|null $utm_campaign The name of the campaign
Set the Google analytics settings on a TrackingSettings object