Track user events.

❗️

JSON expected

All Attribution server-side endpoints expect JSON

If you don't have userId but still want to track event for anonymous user from server-side you need to pass anonymousId which will contain anonymous cookie id. You can get from JavaScript on a website by calling:

Attribution.user().anonymousId();

A note on Authorization header

Attribution app uses a HTTP Basic Authorization for all server-side functions.

Your HTTP request must contain Authorization header that must include username being your Project ID from Attribution app settings and blank password.

Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!