{"id":4059,"date":"2023-02-10T16:05:21","date_gmt":"2023-02-10T10:35:21","guid":{"rendered":"http:\/\/holithemes.com\/plugins\/click-to-chat\/?p=4059"},"modified":"2026-10-23T16:55:23","modified_gmt":"2026-10-23T11:25:23","slug":"webhook-data-format","status":"publish","type":"post","link":"https:\/\/holithemes.com\/plugins\/click-to-chat\/webhook-data-format\/","title":{"rendered":"Webhook Data Format"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The Click to Chat plugin supports webhook integration to send event data such as button clicks and form submissions to external applications or services.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By default, the webhook data is sent as a JSON object.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your integration requires a stringified JSON payload, you can change the format in the plugin settings.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Changing the Webhook Data Format<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to <strong>Click to Chat \u2192 Analytics \u2192 Webhooks \u2192 Webhook data format<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>String (Stringify JSON)<\/strong> \u2013 Sends the webhook data as a JSON string.<\/li>\n\n\n\n<li><strong>JSON<\/strong> \u2013 Sends the webhook data as a JSON object (default).<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"741\" height=\"666\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2023\/02\/webhook-data-format-types.webp\" alt=\"Webhook data format menu with JSON and String options\" class=\"wp-image-7776\" srcset=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2023\/02\/webhook-data-format-types.webp 741w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2023\/02\/webhook-data-format-types-300x270.webp 300w\" sizes=\"(max-width: 741px) 100vw, 741px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Purpose of Webhooks<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Webhooks in the Click to Chat plugin are primarily used for analytics and automation. They allow you to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Track user interactions<\/strong> by capturing clicks on the WhatsApp icon.<\/li>\n\n\n\n<li><strong>Collect form input<\/strong> from users who submit the <strong>Greetings Form<\/strong> before initiating a chat.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Choose the format your integration requires under <strong>Click to Chat \u2192 Analytics \u2192 Webhooks<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Click to Chat plugin supports webhook integration to send event data such as button clicks and form submissions to external applications or services. By default, the webhook data is sent as a JSON object. If your integration requires a stringified JSON payload, you can change the format in the plugin settings. Changing the Webhook [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":"","_htd2_assets":[]},"categories":[55],"tags":[],"class_list":["post-4059","post","type-post","status-publish","format-standard","hentry","category-webhooks"],"_links":{"self":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/posts\/4059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/comments?post=4059"}],"version-history":[{"count":2,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/posts\/4059\/revisions"}],"predecessor-version":[{"id":7931,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/posts\/4059\/revisions\/7931"}],"wp:attachment":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/media?parent=4059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/categories?post=4059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/tags?post=4059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}