Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversions API User Data is missing WhatsApp Business Account ID #305

Open
huw opened this issue Feb 6, 2025 · 0 comments · May be fixed by #306
Open

Conversions API User Data is missing WhatsApp Business Account ID #305

huw opened this issue Feb 6, 2025 · 0 comments · May be fixed by #306

Comments

@huw
Copy link

huw commented Feb 6, 2025

In the API docs for the Conversions API for Business Messaging, the user is instructed to include the whatsapp_business_account_id parameter alongside the ctwa_clid parameter, in order to attribute a Business Messaging conversion event correctly. To quote:

{
  "data": [
    {
      "event_name": "Purchase",
      "event_time": 1675999999,
      "action_source": "business_messaging",
      "messaging_channel": "whatsapp",
      "user_data": {
        "whatsapp_business_account_id": "<WHATSAPP_BUSINESS_ACCOUNT_ID>",
        "ctwa_clid": "ARAkLkA8rmlFeiCktEJQ-QTwRiyYHAFDLMNDBH0CD3qpjd0HR4irJ6LEkR7JwFF4XvnO2E4Nx0-eM-GABDLOPaOdRMv-_zfUQ2a", // <CLICK_TO_WHATSAPP_CLICK_ID>
      },
      "custom_data": {
        "currency": "USD",
        "value": 123
      }
    }
  ],
  "partner_agent": "<PARTNER_NAME>"
}

This field is required for sending events to the Conversions API, which will error if it’s not included. However, the JavaScript SDK doesn’t allow the user to include it, which makes it unusable for sending these kinds of events.

FWIW, this is the only place the field is documented. It should also be included in the Customer Information Parameters doc, and linked to from the Parameters doc. It should probably also be documented as required.

(PR to follow)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant