Identifying the visitors in your session recordings

Identifying the visitors in your session recordings

Zoho Commerce site builder

If you want to add the Identifier API to the Zoho Commerce site builder, follow the below-mentioned steps:
1. Open your store where the Identifier API needs to be inserted. Navigate to Site Settings.



















2. Under General, select Header & Footer code and add the below code:
  1. <script>
  2.     function getuserDetail(){
  3.         $X.get({
  4.             url: '/portaluser/getCurrentPortalUser',
  5.             handler: function () {
  6.                 var response = JSON.parse(this.responseText);
  7.                 if(response.status_message === "success"){
  8.                     if(response.current_user.user!== 'null'){
  9.                         let userEmail = response.current_user.emailid;
  10.                         window.pagesense = window.pagesense || [];
  11.                         window.pagesense.push(['identifyUser',userEmail ]);
  12.                     }
  13.                 }
  14.             }
  15.         })
  16.     }
  17.     window.addEventListener('load', getuserDetail);
  18. </script>



3. Click on Save and Publish the site.


Zoho Sites builder

If you want to add the Identifier API to the Zoho Sites builder, follow the below-mentioned steps:
1.  Login to your Zoho Sites account. 
2. Open your Website > Site settings.
3. Under General, click on Header and Footer code to insert the code.


4. Paste the below Identifier API code in the Header region:
  1. <script>
  2.     function getuserDetail(){
  3.         $X.get({
  4.             url: '/portaluser/getCurrentPortalUser',
  5.             handler: function () {
  6.                 var response = JSON.parse(this.responseText);
  7.                 if(response.status_message === "success"){
  8.                     if(response.current_user.user!== 'null'){
  9.                         let userEmail = response.current_user.emailid;
  10.                         window.pagesense = window.pagesense || [];
  11.                         window.pagesense.push(['identifyUser',userEmail ]);
  12.                     }
  13.                 }
  14.             }
  15.         })
  16.     }
  17.     window.addEventListener('load', getuserDetail);
  18. </script>
5.  Click Save and Publish.

Zoho SalesIQ

If you want to add the Identifier API to the Zoho SalesIQ, follow the below-mentioned steps:
Copy and paste the following Javascript Identifier API code inside your website's JS code:\
  1. $zoho.salesiq.ready=function()

  2. {

  3. $zoho.salesiq.visitor.chat(function(visitid,data)
  4. {
  5. window.pagesense = window.pagesense || [];
  6. window.pagesense.push(['identifyUser', data.email]);

  7. });

  8. }

  9. $zoho.salesiq.visitor.offlineMessage(function(visitid,data)
  10. {
  11. window.pagesense = window.pagesense || [];
  12. window.pagesense.push(['identifyUser', data.email]);
  13. });



We’ve designed this documentation to guide you every step of the way. If you need further assistance or have any questions, don’t hesitate to contact us at support@zohopagesense.com - we’re always here to help!