Ipunkt\LaravelAnalytics\Data\Campaign::getId PHP Method

getId() public method

returns Id
public getId ( ) : string
return string
    public function getId()
    {
        return $this->id;
    }

Usage Example

 /**
  * returns the rendered id
  *
  * @return string
  */
 private function renderId()
 {
     $id = $this->campaign->getId();
     return empty($id) ? '' : "ga('set', 'campaignId', '{$id}');";
 }