See our GitHub for installation and configuration details.
For tracking custom events through SDK PHP use:
// Track an custom event
$snr->event->track('Custom event', array(
'Product Name' => 'iPhone 6',
'Product Category' => 'Smartphones'));
Events are always connected with clients therefor you need to execute
$snr->client->customIdentify(‘1’); method to set clients id. Then execute $snr->event->track(“Custom event”, array
“Custom event” is the sender event name and “Product Name”, “Product Category” are it’s params and they are optional. An event can have as many params as you want but one param can store only one value.
SDK PHP will add client’s customIdentify and the event’s category and action automatically.