Skip to content

Commit

Permalink
removed unnecessary setCustomDimension()
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSchmidhuber committed Mar 18, 2021
1 parent f7492bb commit b1d3075
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/LaravelMatomoTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,21 @@ public function setQueue(string $queueName)
return $this;
}

/**
* Sets a custom dimension
*
* @param int $customDimensionId
* @param string $value
*
* @return $this
*/
public function setCustomDimension($id, $value)
{
$this->setCustomTrackingParameter('dimension' . $id, $value);
return $this;
}
// Legacy code
// /**
// * Sets a custom dimension
// *
// * @param int $customDimensionId
// * @param string $value
// *
// * @return $this
// */
// public function setCustomDimension($id, $value)
// {
// $this->setCustomTrackingParameter('dimension' . $id, $value);
// return $this;
// }

/**
* Sets some custom dimensions
*
Expand Down

0 comments on commit b1d3075

Please sign in to comment.