Is there a reason click IDs, like `fbc`

Is there a reason click IDs, like fbc on the facebook conversions API are not a default option in the list of events? Seems I have to use custom event name to pass those.
5 Replies
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
agoralex
agoralexOP6d ago
If I am firing the Facebook event based on an HTTP call to Zaraz though, then there is no fbc value to reference
agoralex
agoralexOP6d ago
Here's an example of what we are trying to do: - Client submits lead form on website - We process lead form and determine if lead is valid - We call Zaraz HTTP endpoint we've enabled and send back the value that was on URL parameter fbclid in that paylioad - A Zaraz trigger looks for that custom event name, calls Facebook, passes back the Lead event and includes the click ID on fbc field Because we make use of server-to-server in Zaraz to fire the event, we need to stitch the clickID. I THINK we have it configured correctly like the attached trigger and associated tag.
No description
No description
agoralex
agoralexOP6d ago
those objects referenced in the tag are part of the payload to Zaraz HTTP, where we send a call like:
$payload = [
'events' => [
[
'client' => [
'__zarazTrack' => 'lead_form_processed',
'email' => $post_fields['email'] ?? null,
'email_sha256' => $post_fields['email_sha256'] ?? null,
'email_md5' => $post_fields['email_md5'] ?? null,
'xcode' => $post_fields['xcode'] ?? null,
'customer_number' => $post_fields['customer_number'] ?? null,
'lead_status' => $post_fields['lead_status'] ?? null,
'listcode' => $post_fields['listcode'] ?? null,
'query_vars' => $post_fields['query_vars'] ?? null
],
'system' => [
'device' => [
'ip' => $_SERVER['REMOTE_ADDR'] ?? 'unknown',
'language' => $_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? 'unknown',
'user-agent' => $_SERVER['HTTP_USER_AGENT'] ?? 'unknown'
],
'page' => [
'url' => $post_fields['source_url'] ?? 'unknown',
]
]
]
]
];
$payload = [
'events' => [
[
'client' => [
'__zarazTrack' => 'lead_form_processed',
'email' => $post_fields['email'] ?? null,
'email_sha256' => $post_fields['email_sha256'] ?? null,
'email_md5' => $post_fields['email_md5'] ?? null,
'xcode' => $post_fields['xcode'] ?? null,
'customer_number' => $post_fields['customer_number'] ?? null,
'lead_status' => $post_fields['lead_status'] ?? null,
'listcode' => $post_fields['listcode'] ?? null,
'query_vars' => $post_fields['query_vars'] ?? null
],
'system' => [
'device' => [
'ip' => $_SERVER['REMOTE_ADDR'] ?? 'unknown',
'language' => $_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? 'unknown',
'user-agent' => $_SERVER['HTTP_USER_AGENT'] ?? 'unknown'
],
'page' => [
'url' => $post_fields['source_url'] ?? 'unknown',
]
]
]
]
];
(PHP in case its not obvious, it's being fired from a wordpress form processing plugin)
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server