How to track different projects or companies for the same user

If you want to create multiple projects or companies for every user you can use our companies attribute

When you are handling different companies of projects in your SaaS you can track your user's companies easily by updating your live chat javascript snippet code following the below example:

<!-- Customerly Live Chat Snippet Code -->
!function(){var e=window,i=document,t="customerly",n="queue",o="load",r="settings",u=e[t]=e[t]||[];if(u.t){return void u.i("[customerly] SDK already initialized. Snippet included twice.")}u.t=!0;u.loaded=!1;u.o=["event","attribute","update","show","hide","open","close"];u[n]=[];u.i=function(t){e.console&&!u.debug&&console.error&&console.error(t)};u.u=function(e){return function(){var;return t.unshift(e),u[n].push(t),u}};u[o]=function(t){u[r]=t||{};if(u.loaded){return void u.i("[customerly] SDK already loaded. Use customerly.update to change settings.")}u.loaded=!0;var e=i.createElement("script");e.type="text/javascript",e.async=!0,e.src="";var n=i.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};u.o.forEach(function(t){u[t]=u.u(t)})}();         
    app_id: "00c4ed07",
 user_id: 4, // Optional
        name: "Sarah", 
        email: "", 

        //Company Properties can be added here as you wish

        company: {
            company_id: "2", // Your internal ID of the company or project
            name: "Customerly", // The name of the user's project or company 
            //Add another property here that you might need to track
            //The format should be
            //property_name: property_value
            license_expire_at: 1603490400

<!-- End of Customerly Live Chat Snippet Code -->