https://github.com/mavimo/predictionio-analytics
PredictionIO Analytics
https://github.com/mavimo/predictionio-analytics
Last synced: about 1 year ago
JSON representation
PredictionIO Analytics
- Host: GitHub
- URL: https://github.com/mavimo/predictionio-analytics
- Owner: mavimo
- Created: 2013-11-03T21:27:56.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-03T21:28:12.000Z (over 12 years ago)
- Last Synced: 2025-03-24T07:55:02.849Z (about 1 year ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PredictionIO Analytics
This is library to notify to PredictionIO user action.
User are identified by UUID that is store in cookie and accessible in ```__poia_1``` cookie
On user creation a UUID is send to a specified entry point using:
POST /entry_point.php?user_create=true&user=9195308e-5a2c-402d-883f-c707f95e64ef
page tracking is generate using:
// Create POIA
var p = new PIOA('entry_point.php');
// Initialize
p.init();
// track page view
p.track({
id: 12,
type: 'article',
action: 'view'
});
This create a GET request:
POST /pioa.php?id=12&type=article&action=view&user=9195308e-5a2c-402d-883f-c707f95e64ef
in demo.js there is a usage sample.