# Coralogix

### 1. Include Zipy session url in the metadata.

Put below code in the \<head> tag of your site.&#x20;

```javascript
<script>
const getCurrentZipySessionURL = async () => {
  return await new Promise(function(resolve, reject) {
      let i = 0;
      const _interval = setInterval(() => {
          let zipySessionUrl = (window)?.zipy?.getCurrentSessionURL();
          
          if(zipySessionUrl){
              resolve(zipySessionUrl);
              clearInterval(_interval);
          }
          else{
              i++;
              if(i >= 4){
                reject("Some problem occured while loading zipy.");
                clearInterval(_interval);
              }
          }
      },1500);
  });
}


getCurrentZipySessionURL()
.then(zipySessionUrl => {
  window.CoralogixRum.setUserContext({
    user_metadata: {
      zipySessionUrl : zipySessionUrl
    }
  })
})
.catch((e) => {
    console.log(e);
});
</script>
```

After adding this code in your site you should be able to send Zipy session in Coralogix.

### 2. Find Zipy session url in Coralogix

Go to **Logs** screen and select **SEVERITY** from the panel. Then click on **Columns** from the toolbar at top.

<figure><img src="https://3440602746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcCYilc27NCELgnKQNPVF%2Fuploads%2FguUq0rQRDQlAbEK8175W%2FScreenshot%202024-03-13%20at%204.51.36%E2%80%AFPM%20(1).png?alt=media&#x26;token=1b3c13b7-e9b6-45e9-b49f-8097ef184569" alt=""><figcaption></figcaption></figure>

A pop up will be opened, find the Zipy session url metadata field there by typing 'zipy'  in input area. Then drag the *zipy session url* metadata field from **Available Fields** to **In Use**. Then click on **Apply** button.

<figure><img src="https://3440602746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcCYilc27NCELgnKQNPVF%2Fuploads%2FPx8Bn9TbRggrMLuekTuC%2FScreenshot%202024-03-13%20at%204.47.21%E2%80%AFPM.png?alt=media&#x26;token=58b44c96-be2f-4266-b1ce-81e77617c69c" alt=""><figcaption></figcaption></figure>

Now you should be able to see to Zipy session url in your Coralogix **Logs** screen.

<figure><img src="https://3440602746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcCYilc27NCELgnKQNPVF%2Fuploads%2FTW6TfivZspHevtWmltbj%2FScreenshot%202024-03-13%20at%204.59.32%E2%80%AFPM.png?alt=media&#x26;token=a473e010-6192-439d-9431-d068f0a4450a" alt=""><figcaption></figcaption></figure>
