Skip to content

Commit d90137a

Browse files
author
Tim Helfensdörfer
authored
Merge pull request #42 from Ylja07/master
Update Matomo.php
2 parents 8d7f266 + 2099834 commit d90137a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Matomo.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,6 +2555,19 @@ public function getMostRecentVisitorId($segment = '', $optional = [])
25552555
], $optional);
25562556
}
25572557

2558+
/**
2559+
* Get userId for visitors
2560+
*
2561+
* @param string $segment
2562+
* @param array $optional
2563+
* @return bool|object
2564+
*/
2565+
public function getUsersById( $segment = '', $optional = []){
2566+
return $this->_request('UserId.getUsers', [
2567+
'segment' => $segment,
2568+
], $optional);
2569+
}
2570+
25582571
/**
25592572
* MODULE: MOBILEMESSAGING
25602573
* The MobileMessaging API lets you manage and access all the MobileMessaging plugin features

0 commit comments

Comments
 (0)