You can follow our implementation guide to have it done easily.
json
{
"data": [
{
"event_name": "{{Event Name}}",
"event_time": {{Unix Timestamp}},
"user_data": {
"em": ["{{Hashed Email}}"],
"ph": ["{{Hashed Phone}}"]
},
"custom_data": {
"currency": "{{Currency}}",
"value": {{Value}}
}
}
]
}
Create GTM variables to populate the JSON payload:
Variable Type
Example Path
Purpose
Data Layer Var
ecommerce.transaction_id
Transaction ID
Data Layer Var
ecommerce.value
Purchase value
Custom JavaScript
SHA256(email)
Hashed user email
Built-in Variable
Timestamp
Event time
Use Custom Event triggers (e.g., purchase, lead) from your website’s data layer.
Apply filters to fire only for conversion events.
Use GTM Preview Mode to verify payload structure.
Check Meta Events Manager > Test Events for incoming server events.
Validate deduplication by comparing CAPI and Pixel events in reports.