{"id":1107,"date":"2014-12-04T10:51:53","date_gmt":"2014-12-04T10:51:53","guid":{"rendered":"http:\/\/www.invitereferrals.com\/blog\/?p=1107"},"modified":"2020-05-25T11:13:02","modified_gmt":"2020-05-25T11:13:02","slug":"conversion-webhook","status":"publish","type":"post","link":"https:\/\/www.invitereferrals.com\/blog\/conversion-webhook","title":{"rendered":"Conversion Webhook"},"content":{"rendered":"<p><a href=\"http:\/\/cdn3.invitereferrals.com\/blog\/wp-content\/uploads\/2015\/08\/webhook-preview.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-1625\" src=\"http:\/\/cdn3.invitereferrals.com\/blog\/wp-content\/uploads\/2015\/08\/webhook-preview.png\" alt=\"webhook-preview\" width=\"400\" height=\"277\" srcset=\"https:\/\/cdn3.invitereferrals.com\/blog\/wp-content\/uploads\/2015\/08\/webhook-preview.png 400w, https:\/\/cdn3.invitereferrals.com\/blog\/wp-content\/uploads\/2015\/08\/webhook-preview-300x207.png 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><b>Conversion Webhook<\/b>&nbsp;is a HTTP callback triggered when there is goal conversion.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>How To Set<\/strong><\/p>\n<p>1) Edit Campaign.<\/p>\n<p>2) Go to &#8220;Website Integration&#8221; section.<\/p>\n<p>3) Add the HTTP callback url in Conversion Webhook field under track conversions.<\/p>\n<p>&nbsp;<\/p>\n<p><!--more--><\/p>\n<p><a href=\"http:\/\/cdn3.invitereferrals.com\/blog\/wp-content\/uploads\/2017\/08\/16063505\/webhook-.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1805\" src=\"http:\/\/cdn3.invitereferrals.com\/blog\/wp-content\/uploads\/2017\/08\/16063505\/webhook-.jpg\" alt=\"webhook\" width=\"696\" height=\"386\" srcset=\"https:\/\/cdn3.invitereferrals.com\/blog\/wp-content\/uploads\/2017\/08\/16063505\/webhook-.jpg 696w, https:\/\/cdn3.invitereferrals.com\/blog\/wp-content\/uploads\/2017\/08\/16063505\/webhook--300x166.jpg 300w\" sizes=\"(max-width: 696px) 100vw, 696px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Response<\/strong><\/p>\n<p>You will get a post back call on your webhook url with following GET PARAMETERS as soon as there is a referral conversion. You can then use this data as per flow requirements<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Description<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>conversion<\/td>\n<td>whether a successful conversion or not<\/td>\n<td>success \/ fail \/ pending<\/td>\n<\/tr>\n<tr>\n<td>referrer_name<\/td>\n<td>name of the referrer (who referred his friend)<\/td>\n<td>Robert Downy<\/td>\n<\/tr>\n<tr>\n<td>referrer_email<\/td>\n<td>email id of the referrer<\/td>\n<td>example@gmail.com<\/td>\n<\/tr>\n<tr>\n<td>referee_name<\/td>\n<td>name of the referee (friend)<\/td>\n<td>Cristian Bale<\/td>\n<\/tr>\n<tr>\n<td>referee_email<\/td>\n<td>email id of the referee<\/td>\n<td>example@gmail.com<\/td>\n<\/tr>\n<tr>\n<td>orderID<\/td>\n<td>orderID passed by you in javascript code<\/td>\n<td>ASDXXXXX<\/td>\n<\/tr>\n<tr>\n<td>purchaseValue<\/td>\n<td>purchaseValue passed by you in javascript code<\/td>\n<td>1000<\/td>\n<\/tr>\n<tr>\n<td>referrer_converts<\/td>\n<td>No. of conversions by referrer<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>referrer_customValue<\/td>\n<td>custom value passed for referrer<\/td>\n<td>xxxxxxx<\/td>\n<\/tr>\n<tr>\n<td>goal_complete<\/td>\n<td>whether the goal has completed. Eg. If you are rewarding referrer on 5 conversions, then for 5th conversion it will be 1 else 0<\/td>\n<td>1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; Conversion Webhook&nbsp;is a HTTP callback triggered when there is goal conversion. &nbsp; How To Set 1) Edit Campaign. 2) Go to &#8220;Website Integration&#8221; section. 3) Add the HTTP callback url in Conversion Webhook field under track conversions. &nbsp;<\/p>\n","protected":false},"author":8,"featured_media":1934,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[83],"class_list":["post-1107","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial","tag-conversion-webhook"],"_links":{"self":[{"href":"https:\/\/www.invitereferrals.com\/blog\/wp-json\/wp\/v2\/posts\/1107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.invitereferrals.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.invitereferrals.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.invitereferrals.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.invitereferrals.com\/blog\/wp-json\/wp\/v2\/comments?post=1107"}],"version-history":[{"count":10,"href":"https:\/\/www.invitereferrals.com\/blog\/wp-json\/wp\/v2\/posts\/1107\/revisions"}],"predecessor-version":[{"id":5601,"href":"https:\/\/www.invitereferrals.com\/blog\/wp-json\/wp\/v2\/posts\/1107\/revisions\/5601"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.invitereferrals.com\/blog\/wp-json\/wp\/v2\/media\/1934"}],"wp:attachment":[{"href":"https:\/\/www.invitereferrals.com\/blog\/wp-json\/wp\/v2\/media?parent=1107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.invitereferrals.com\/blog\/wp-json\/wp\/v2\/categories?post=1107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.invitereferrals.com\/blog\/wp-json\/wp\/v2\/tags?post=1107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}