const data = [
{
"event_id": 1, "user_id": 117, "event_type": "purchase", "page_url": "/home", "timestamp": "2025-05-22 10:46:29Z", "referrer": "facebook.com"
},
{
"event_id": 2, "user_id": 114, "event_type": "signup", "page_url": "/product/456", "timestamp": "2025-05-22 10:08:01Z", "referrer": "facebook.com"
},
{
"event_id": 3, "user_id": 118, "event_type": "page_view", "page_url": "/product/123", "timestamp": "2025-05-22 10:43:25Z", "referrer": "/product/123"
},
{
"event_id": 4, "user_id": 103, "event_type": "purchase", "page_url": "/product/456", "timestamp": "2025-05-22 10:41:53Z", "referrer": "twitter.com"
},
];
fetch('https://api.us.airfold.co/v1/events/web_events', {
method: 'POST',
headers: {
Authorization: aft_3paEjG6XBXA0examplekn6auth7tokenKPHSymSP1E,
'Content-Type': 'application/json'
},
body: JSON.stringify(data)
});