Skip to content

Commit

Permalink
Place varialbes on one line
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurian Sluiman committed May 27, 2013
1 parent aa771a4 commit dbc45df
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,7 @@ add it to the tracker:
$index = 1;
$name = 'Section';
$value = 'Life & Style';
$var = new SlmGoogleAnalytics\Analytics\CustomVariable(
$index,
$name,
$value
);
$var = new SlmGoogleAnalytics\Analytics\CustomVariable($index, $name, $value);

$ga->addCustomVariable($var);
```
Expand All @@ -158,12 +154,7 @@ You can, if required, set the scope of the variable:

```php
$scope = CustomVariable::SCOPE_SESSION;
$var = new SlmGoogleAnalytics\Analytics\CustomVariable(
$index,
$name,
$value,
$scope
);
$var = new SlmGoogleAnalytics\Analytics\CustomVariable($index, $name, $value, $scope);
```

The scope can be `SCOPE_VISITOR`, `SCOPE_SESSION` or (the default) `SCOPE_PAGE_LEVEL`.

0 comments on commit dbc45df

Please sign in to comment.