setLogger(new CurlLogger());
$events = array();
$user_data_0 = (new UserData())
->setEmails(array("7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068"))
->setPhones(array())
->setFirstNames(array())
->setCities(array())
->setCountryCodes(array())
->setExternalIds(array());
$custom_data_0 = (new CustomData())
->setValue(142.52)
->setCurrency("TRY");
$event_0 = (new Event())
->setEventName("ViewContent")
->setEventTime(1671473050)
->setUserData($user_data_0)
->setCustomData($custom_data_0)
->setActionSource("website");
array_push($events, $event_0);
$request = (new EventRequest($pixel_id))
->setEvents($events);
$request->execute();
"data": [
"event_name": "ViewContent",
"event_time": 1679569392,
"action_source": "website",
"event_id": null,
"event_source_url": null,
"opt_out": null,
"data_processing_options": null,
"data_processing_options_country": null,
"data_processing_options_state": null,
"user_data":
"em": [
"7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068"
],
"ph": [
null
],
"anon_id": null,
"madid": null,
"client_ip_address": null,
"client_user_agent": null,
"ct": [
null
],
"subscription_id": null,
"zp": [
null
],
"country": [
null
],
"db": [
null
],
"fn": [
null
],
"fb_login_id": null,
"ge": [
null
],
"ln": [
null
],
"lead_id": null,
"st": [
null
],
"external_id": [
null
],
"fbc": null,
"fbp": null
,
"custom_data":
"currency": "TRY",
"value": "142.52",
"content_category": null,
"content_ids": null,
"content_name": null,
"content_type": null,
"contents": null,
"delivery_category": null,
"num_items": null,
"order_id": null,
"predicted_ltv": null,
"search_string": null,
"status": null
]
]