Pageview

Pageviews are called when recording a specific page in the application. Pageviews are specific to User defined by their unique_id.

post
Create a pageview

https://api.salesmachine.io/v1/track/event
Request
Response
Request
Form Data Parameters
contact_uid
optional
string
Unique identifier referring to a contact, it must match a unique ID in your application like database ID or email address.
event_uid
optional
string
'pageview'
params.account_uid
optional
string
Account id is a link to an account
Response
201: Created
{status: "success"}

Example

curl -X POST -H "Content-Type: application/json" -u 'YOUR_API_TOKEN:' \
-d '{"contact_uid":"123456", "event_uid" : "pageview", "params" : {"account_uid" : "78910", "visit_url" : "http://myproduct.com/onboarding", "visit_ip" : "XX.XX.XX.XX", "visit_agent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"}' \
'https://api.salesmachine.io/v1/track/event'

‚Äč