{"id":2586,"date":"2020-08-17T12:12:40","date_gmt":"2020-08-17T12:12:40","guid":{"rendered":"https:\/\/gaconnector.com\/docs\/?p=2586"},"modified":"2021-08-13T08:37:22","modified_gmt":"2021-08-13T08:37:22","slug":"integrate-ga-connector-zoho-salesiq","status":"publish","type":"post","link":"https:\/\/gaconnector.com\/docs\/integrate-ga-connector-zoho-salesiq\/","title":{"rendered":"How to integrate GA Connector with Zoho SalesIQ"},"content":{"rendered":"<h2>Prerequisites<\/h2>\n<ul>\n<li>This guide is for the API-based integration and assumes that you have already installed the GA Connector script on your website. If you haven&#8217;t added our script yet, please do so by following the instructions in <a href=\"https:\/\/gaconnector.com\/docs\/install-ga-connector-2-0-tracking-code\/\">this article<\/a>.<\/li>\n<li>Uses Zoho CRM and is connected to your Zoho SalesIQ<\/li>\n<li>If you&#8217;re using our cookie-based integration, these instructions won&#8217;t be applicable to you.<\/li>\n<\/ul>\n<h2>Installing the additional script<\/h2>\n<p>Since Zoho SalesIQ is embedded in your website via an iframe. GA Connector won&#8217;t be able to track your emails right out of the box. Aside from our main script, you&#8217;ll need to add the additional script below right after the script that Zoho SalesIQ has provided.<\/p>\n<pre class=\"\"><script>\r\nvar gaconnector_input = document.createElement(\"INPUT\");\r\n\r\ngaconnector_input.setAttribute(\"type\", \"hidden\");\r\ngaconnector_input.setAttribute(\"id\", \"gaconnector_input_id\");\r\ndocument.body.appendChild(gaconnector_input);\r\n\r\n$zoho.salesiq.ready=function() {\r\n\tfunction trackEmail(email) {\r\n\t\tvar target = document.getElementById('gaconnector_input_id');\r\n\t\tvar event = new Event('change');\r\n\r\n    \t        target.value = email;\r\n    \t        target.dispatchEvent(event);\r\n        }\r\n        $zoho.salesiq.visitor.chat(function(visitid,data) {\r\n\t\ttrackEmail(data.email);\r\n\t});\r\n\r\n\t$zoho.salesiq.visitor.missed(function(visitid,data) {\r\n\t\ttrackEmail(data.email);\r\n\t});\r\n\r\n\t$zoho.salesiq.visitor.offlineMessage(function(visitid,data) {\r\n\t\ttrackEmail(data.email);\r\n\t});\r\n\r\n\t$zoho.salesiq.visitor.feedback(function(visitid,data) {\r\n\t\ttrackEmail(data.email);\r\n\t});\r\n\r\n\t$zoho.salesiq.chat.continue(function(visitid,data)\r\n\t{\r\n\t\ttrackEmail(data.visitoremail);\r\n\t});\r\n\r\n\t$zoho.salesiq.chat.complete(function(visitid,data)\r\n\t{\r\n\t\ttrackEmail(data.visitoremail);\r\n\t});\r\n}\r\n<\/script>\r\n<\/pre>\n<h2>WordPress<\/h2>\n<p>If you are using\u00a0WordPress and\u00a0Zoho SalesIQ&#8217;s WordPress plugin, you can add the code right after the main Zoho SalesIQ script in the plugin settings.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2588\" src=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2020\/08\/zoho-salesiq.jpg\" alt=\"\" width=\"1008\" height=\"383\" srcset=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2020\/08\/zoho-salesiq.jpg 1008w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2020\/08\/zoho-salesiq-300x114.jpg 300w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2020\/08\/zoho-salesiq-768x292.jpg 768w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2020\/08\/zoho-salesiq-700x266.jpg 700w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2020\/08\/zoho-salesiq-60x23.jpg 60w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2020\/08\/zoho-salesiq-150x57.jpg 150w\" sizes=\"(max-width: 1008px) 100vw, 1008px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prerequisites This guide is for the API-based integration and assumes that you have already installed the GA Connector script on your website. If you haven&#8217;t added our script yet, please do so by following the instructions in this article. Uses Zoho CRM and is connected to your Zoho SalesIQ If you&#8217;re using our cookie-based integration, [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"_links":{"self":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/2586"}],"collection":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/comments?post=2586"}],"version-history":[{"count":8,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/2586\/revisions"}],"predecessor-version":[{"id":2834,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/2586\/revisions\/2834"}],"wp:attachment":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/media?parent=2586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/categories?post=2586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/tags?post=2586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}