agoralex
agoralex
CDCloudflare Developers
Created by agoralex on 12/12/2024 in #zaraz
hey, loving using zaraz compated to GTM
thanks. that's what I have been using
4 replies
CDCloudflare Developers
Created by agoralex on 12/12/2024 in #zaraz
Is there a reason click IDs, like `fbc`
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)
6 replies
CDCloudflare Developers
Created by agoralex on 12/12/2024 in #zaraz
Is there a reason click IDs, like `fbc`
No description
6 replies
CDCloudflare Developers
Created by agoralex on 12/12/2024 in #zaraz
Is there a reason click IDs, like `fbc`
If I am firing the Facebook event based on an HTTP call to Zaraz though, then there is no fbc value to reference
6 replies
CDCloudflare Developers
Created by agoralex on 12/12/2024 in #zaraz
Second, is there a way to validate which
Appreciated. Just to make sure I am understanding, then Taboola is a strictly client-side component? https://github.com/managed-components/taboola/blob/main/src/index.ts#L21
3 replies
CDCloudflare Developers
Created by agoralex on 12/12/2024 in #zaraz
hey, loving using zaraz compated to GTM
Thanks. Do the fields then accept /.*/ literal syntax? Or just parsing the string, so my argument should be does not match (^$|\s+)? Just want a reliable method detecting when a parameter does not exist. (An "is empty/is not empty" selection in the drop down would be great... something like function
isEmpty(str) {
return (!str || str.length === 0 );
}
isEmpty(str) {
return (!str || str.length === 0 );
}
)
4 replies
CDCloudflare Developers
Created by agoralex on 12/12/2024 in #zaraz
Reddit built-in object doesn't seem to
In case it's not clear, unlike other tags which enable a key value pair of other field, this one's "Custom Event Name" seems to only allow a value of an event name string, unless I've missed something.
2 replies
CDCloudflare Developers
Created by agoralex on 12/12/2024 in #zaraz
Web Conversions
No description
2 replies
CDCloudflare Developers
Created by agoralex on 12/12/2024 in #zaraz
Web Conversions
Is this syntax of passing a custom click ID correct? This is not being triggered vua the javascript object
2 replies
CDCloudflare Developers
Created by agoralex on 12/12/2024 in #zaraz
Lastly, if I select `Email` in the
This might be just a consistency issue -- I see Twitter built-in tool specifies that the email is automatically hashed if you use the friendly field. Is Facebook's?
2 replies