This repository has been archived by the owner on Feb 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from rokde/master
Measurement API supported
- Loading branch information
Showing
7 changed files
with
371 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<?php | ||
/** | ||
* laravel-analytics | ||
* | ||
* @author rok | ||
* @since 09.05.14 | ||
*/ | ||
|
||
namespace Ipunkt\LaravelAnalytics\Data; | ||
|
||
|
||
class Campaign { | ||
|
||
/** | ||
* campaign source | ||
* | ||
* @var string | ||
*/ | ||
private $source = 'newsletter'; | ||
|
||
/** | ||
* campaign medium | ||
* | ||
* @var string | ||
*/ | ||
private $medium = 'email'; | ||
|
||
/** | ||
* campaign name | ||
* | ||
* @var string | ||
*/ | ||
private $name; | ||
|
||
/** | ||
* @param string $name | ||
*/ | ||
public function __construct($name = '') | ||
{ | ||
$this->name = $name; | ||
} | ||
|
||
/** | ||
* set medium | ||
* | ||
* @param string $medium | ||
* | ||
* @return Campaign | ||
*/ | ||
public function setMedium($medium) | ||
{ | ||
$this->medium = $medium; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getMedium() | ||
{ | ||
return $this->medium; | ||
} | ||
|
||
/** | ||
* set name | ||
* | ||
* @param string $name | ||
* | ||
* @return Campaign | ||
*/ | ||
public function setName($name) | ||
{ | ||
$this->name = $name; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getName() | ||
{ | ||
return $this->name; | ||
} | ||
|
||
/** | ||
* set source | ||
* | ||
* @param string $source | ||
* | ||
* @return Campaign | ||
*/ | ||
public function setSource($source) | ||
{ | ||
$this->source = $source; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getSource() | ||
{ | ||
return $this->source; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
<?php | ||
/** | ||
* laravel-analytics | ||
* | ||
* @author rok | ||
* @since 09.05.14 | ||
*/ | ||
|
||
namespace Ipunkt\LaravelAnalytics\Data; | ||
|
||
|
||
class Event { | ||
|
||
/** | ||
* event category | ||
* | ||
* @var string | ||
*/ | ||
private $category = 'email'; | ||
|
||
/** | ||
* event action | ||
* | ||
* @var string | ||
*/ | ||
private $action = 'open'; | ||
|
||
/** | ||
* event label | ||
* | ||
* @var string | ||
*/ | ||
private $label; | ||
|
||
/** | ||
* hit type | ||
* | ||
* @var string | ||
*/ | ||
private $hitType = 'event'; | ||
|
||
/** | ||
* set action | ||
* | ||
* @param string $action | ||
* | ||
* @return Event | ||
*/ | ||
public function setAction($action) | ||
{ | ||
$this->action = $action; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getAction() | ||
{ | ||
return $this->action; | ||
} | ||
|
||
/** | ||
* set category | ||
* | ||
* @param string $category | ||
* | ||
* @return Event | ||
*/ | ||
public function setCategory($category) | ||
{ | ||
$this->category = $category; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getCategory() | ||
{ | ||
return $this->category; | ||
} | ||
|
||
/** | ||
* set hitType | ||
* | ||
* @param string $hitType | ||
* | ||
* @return Event | ||
*/ | ||
public function setHitType($hitType) | ||
{ | ||
$this->hitType = $hitType; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getHitType() | ||
{ | ||
return $this->hitType; | ||
} | ||
|
||
/** | ||
* set label | ||
* | ||
* @param string $label | ||
* | ||
* @return Event | ||
*/ | ||
public function setLabel($label) | ||
{ | ||
$this->label = $label; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getLabel() | ||
{ | ||
return $this->label; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.