Automation & Growth
WhatsApp Cloud API automation
Pro
Send automatic WhatsApp messages (order updates, abandoned carts…) from your own business number.
Uses your own Meta WhatsApp Business Platform account. Nothing is sent to ChatKart. Messages go from your business number as approved templates.
Setup
- Create your Meta account items
In Meta Business settings create a WhatsApp Business account and phone number, create a system user and generate a permanent access token (permissionswhatsapp_business_messagingandwhatsapp_business_management). Copy the Phone number ID. - Create message templates
In WhatsApp Manager, create templates and wait for approval. Use numbered parameters, e.g.Hi {{1}}, your order #{{2}} total {{3}} is being prepared.Meta decides each template’s category (utility / marketing) and its price. - Connect ChatKart
Open Automation & API → Cloud API. Enter the Phone number ID and token (stored encrypted). Keep consent switched on. - Add template lines
One per line:template_name | language | {variable1},{variable2}
Example:order_processing | en_US | {customer_first_name},{order_id},{order_total} - Test it
Press Send a test message, then check the log table. HTTP 200 = accepted by Meta.
What you can automate
| Feature | How it works |
|---|---|
| Order messages | One line per status (pending, processing, on-hold, completed, cancelled, refunded, failed) plus an alert to the shop number for every new order. |
| Abandoned carts | At checkout the shopper’s phone, name and cart are saved only after they type a phone number and tick the consent box. First message after N minutes (min. 15), optional follow-up after 24 hours with an optional single-use coupon ({coupon}, valid 3 days). {cart_url} refills their cart. Rows are deleted after 14 days; placing an order stops the messages. |
| Back in stock | Out-of-stock products show “Notify me on WhatsApp” (number + consent). When the product is back, each subscriber gets one message. |
| Review requests | N days after an order becomes Completed, a message with {review_url} is sent. |
Variables
{customer_name} {customer_first_name} {order_id} {order_total} {order_status} {order_url} {site_name} {product_name} {product_url} {review_url} {cart_url} {coupon}
Newlines are removed from variables (WhatsApp forbids them in parameters).
- A consent tick box is added to the checkout (classic and block checkout; WooCommerce 8.6+ for blocks). Only consenting customers are messaged.
- Orders created by the popup order form do not collect that consent, so they receive no automatic messages unless you switch the consent requirement off.
- You are responsible for complying with WhatsApp's business policy and local law (GDPR, PDPA…).
- Messages are queued with WP-Cron. On low-traffic sites, set up a real server cron for
wp-cron.php.
Tracking, UTM & webhooks
Open Automation & API → Tracking & webhooks.
Analytics events
Free
ChatKart sends three events to Google Analytics 4 (gtag), Google Tag Manager (dataLayer) and the Meta Pixel:
| Event | When | Meta Pixel |
|---|---|---|
ck_whatsapp_click |
Visitor starts a chat | Contact |
ck_whatsapp_lead |
Lead form submitted | Lead |
ck_whatsapp_order |
WhatsApp order placed | InitiateCheckout |
Parameters: source, agent, page URL, page title.
The plugin loads no tracking code itself. Your Google / Meta tags must already be on the site (Site Kit, GTM4WP, Meta plugin…). In GA4, mark the events as key events / conversions.
Google Ads conversions
Pro
Enter the conversion ID (AW-…) and one label per event; a conversion event is sent with send_to.
UTM & click IDs
Free
utm_source, utm_medium, utm_campaign, utm_term, utm_content, gclid, fbclid are remembered for the visit in the browser’s session storage (no cookie) and added to events, leads, webhooks and orders.
Add the campaign source to the WhatsApp message Pro appends e.g. “Source: google / cpc / spring-sale”.
Webhooks
Pro
Send a JSON POST to up to 5 https URLs for: chat started, new lead, WhatsApp order.
{"event":"ck.lead","site":"…","time":"…","data":{…}}
- Signing secret: each request carries
X-CK-Signature: sha256=<HMAC-SHA256 of the body>. Verify it on your server. - Private and local addresses are blocked.
- Press Send a test webhook now to check the response.
Leads & analytics
Leads
Pro
Open Data & growth → Leads. See, delete and export to CSV the visitors who filled in the chat popup’s lead form.
- Each lead stores name, email, phone, agent, page and time (UTC).
- New leads can be emailed to you.
- Leads are included in WordPress’ Tools → Export / Erase Personal Data by email address.
Analytics
Open Data & growth → Analytics.
| Plan | You see |
|---|---|
| Free | Chats started in the last 7 days, 30 days and all time. |
| Pro | Breakdown by source, agent, page and day, plus CSV export. |
Counting stores only the time, agent and page URL. No IP address, cookie or name. Turn it off with “Count clicks”. Mention WhatsApp chat, lead capture and analytics in your privacy policy.
