Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Compare: Home

Showing with 2 additions and 2 deletions.
  1. +2 −2 Home.md
View
4 Home.md
@@ -73,12 +73,12 @@ All you need to do is call the name of the method, and pass in the parameters (n
##### A simple example
A normal call to set a custom variable in JavaScript:
```javascript
-_paq.push(['_setCustomVar', 1, 'Section', 'Life & Style', 'page']);
+_paq.push(['setCustomVariable', 1, 'Section', 'Life & Style', 'page']);
```
Within a controller or view, you can do the same as above via the extension:
```
-Yii::app()->piwik->_setCustomVar(1, 'Section', 'Life & Style', 'page');
+Yii::app()->piwik->setCustomVariable(1, 'Section', 'Life & Style', 'page');
```
##### A more complex example
Something went wrong with that request. Please try again.