Join GitHub today
Snoopy also provides API to integrate it with other third party applications.
Returns DataTable of visitors with their scores and heat statuses. (Also used for custom report)
Returns IDs from visitors that reached goals specified to start scoring. You specify which goals are mark to start scoring in plugin configuration.
Returns only score for visitor ID that is provided as parameter. Scores are not recalculated they are returned from previously calculated data.
SnoopyBehavioralScoring.storeVisitorData (idvisitor, data)
Stores visitor data. Data about visitor is provided as parameter and must be in php array format. Accepted format is following:
$data = array( 'custom_1' => "Some data", // Reserved for email address (255 chars) 'custom_2' => "Some custom data", // (255 chars) 'custom_3' => "Some data3", // (255 chars) 'custom_4' => "Some data", // (Long text) 'custom_5' => "Some data" // Reserved for json format(Long text) );
Returns visitor Email from json in custom_5 field in database. If multiple emails are in json it returns all of them. Email is not stored anywhere, it is just parsed from json in custom_5.
It returns same thing as SnoopyBehavioralScoring.getVisitorEmail () the only difference is that it gets email from json passed as parameter and not from database.
Loops trough all visitors and returns their email addresses found in custom_5 field (json). Data is NOT stored anywhere!
Same as SnoopyBehavioralScoring.matchVisitorsEmail (), but this time emails are stored in custom_1 field.
Finds and returns heat status. Status is not stored anywhere and it is calculated from previous scores.
Recalculate and stores heat statuses for each visitor.
Returns already stored heat status from database.