{"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":"2025-05-28T12:45:27","modified_gmt":"2025-05-28T07:15:27","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>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>By default, the webhook data is sent as a JSON object.<\/p>\n\n\n\n<p>However, if your integration requires the data to be sent in Standard Stringify JSON format, you can easily configure this from 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>Go to <strong>Click to Chat<\/strong> \u2192 <strong>Other Settings &#8211; Advanced Settings &#8211; Webhook Data Format<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"159\" height=\"154\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2023\/02\/Other-Settings-nav.webp\" alt=\"\" class=\"wp-image-6364\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>String<\/strong> \u2013 Sends the webhook data as a JSON string (default).<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>JSON<\/strong> \u2013 Sends the webhook data in standard JSON format for applications that require structured data.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"739\" height=\"519\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2023\/02\/Webhook-data-format.webp\" alt=\"\" class=\"wp-image-4068\" srcset=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2023\/02\/Webhook-data-format.webp 739w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2023\/02\/Webhook-data-format-300x211.webp 300w\" sizes=\"(max-width: 739px) 100vw, 739px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Purpose of Webhooks<\/h3>\n\n\n\n<p>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>Choosing the correct data format for your webhook ensures seamless integration with third-party platforms. If your analytics or automation tools expect structured JSON data, switch the webhook data format to JSON in the Advanced Settings.<\/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. However, if your integration requires the data to be sent in Standard Stringify JSON format, you can easily configure this [&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":0,"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/posts\/4059\/revisions"}],"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}]}}