Skip to content

Commit d90153f

Browse files
committed
Update README.md
1 parent ab781ef commit d90153f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,16 @@ counter.hit('http://mysite.org', 'Main page', 'http://google.com/...', {level1:
8585
* reachGoal: function (target, userParams) {}
8686
*/
8787

88+
counter.hit();
8889
counter.reachGoal('goalName');
8990

91+
// или
92+
9093
// С параметрами визитов
94+
counter.hit();
9195
counter.reachGoal('goalName', {level1: {level2: 1}});
9296
```
97+
Вызов метода `hit()` перед `reachGoal()` необходим для корректной привязки цели к визиту.
9398

9499
## Внешняя ссылка
95100
```JavaScript

0 commit comments

Comments
 (0)