---
title: Segmanta's External Respondent Parameter, seg_erid
description: Denote a unique, external respondent ID from your source system into a survey, using URL query seg_erid, Segmanta's External Respondent Parameter.
---

[Skip to content](https://help.segmanta.com/segmanta-external-respondent-parameter#main-content)

English

Show submenu for translations

![300x300 (1).png\]](https://help.segmanta.com/hs-fs/hubfs/300x300%20(1).png?height=40&name=300x300%20(1).png)

- [Default HubSpot Blog](https://segmanta-2.hubspotpagebuilder.com/blog)

Open main navigation

Close main navigation

- [Default HubSpot Blog](https://segmanta-2.hubspotpagebuilder.com/blog)
- English
  
  Show submenu for translations

 How can we help?

- There are no suggestions because the search field is empty.

1. [Segmanta Help Center](https://help.segmanta.com/?hsLang=en)
2. [Survey Editor](https://help.segmanta.com/survey-editor?hsLang=en)
3. [Distribution](https://help.segmanta.com/survey-editor?hsLang=en#distribution)

# Segmanta's External Respondent Parameter, seg\_erid

## Denote a unique, external respondent ID from your source system into a survey, using URL query seg\_erid, Segmanta's External Respondent Parameter.

💪 **When to use it** 

- To denote a unique respondent that can be linked back to your integrations. If you are sending your survey to previously identified users from your source system (i.e. a [Salesforce](https://help.segmanta.com/salesforce-integration?hsLang=en) Record ID), it is recommended that you pass their ID to the Segmanta survey you are distributing by using seg\_erid.
- To ensure the survey experience’s consistency by identifying unique consumers and displaying their survey progress across different sessions, browsers, and devices. If the seg\_erid is passed into a survey, the progress of that survey in a subsequent session will resume where a respondent with that seg\_erid value last left off.

**Pro-tip**: For example, if a respondent takes a survey containing five questions and only completes three of those questions, in the next session that same respondent has the option to resume the survey from question four with his or her previous responses for questions 1-3 pre-filled out.

### Passing the Segmanta External Respondent Value

#### In a non-embedded survey

- A non-embedded survey is a survey that does not appear inside of a website and is distributed via URL. When using a non-embedded survey, the parameter name ‘seg\_erid’ should be appended using an equivalent of the [encodeURIComponent](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent), while its value should change with each survey respondent and also be encoded using the equivalent of the encodeURIComponent.

**Pro-tip**: For example, if you would like to associate a Salesforce Record ID to each unique respondent of your survey, you would pass the seg\_erid as a URL parameter by building your distribution link as follows:

https://surveys.segmanta.com/**publicid**/?seg\_erid=**{$Salesforce\_Record\_ID**}

Where **publicID** is a placeholder for the unique Segmanta ID for your survey that can be found in the **Distribute** \> **Link** section of your survey’s editor and {**$Salesforce\_Record\_ID**} is a placeholder that should be replaced with each respondent’s **Salesforce Record ID**.

#### In an embedded survey

- The Segmanta External Respondent Parameter can be passed to a survey embedded inside of a website either through [Dynamic Embed](https://help.segmanta.com/dynamic-embed?hsLang=en) or an [in-line embed](https://help.segmanta.com/embedding-your-survey?hsLang=en).

**Pro-tip**: For example, if you would like to associate a Salesforce Record ID to each unique respondent who takes your website survey, you could pass the seg\_erid as a URL parameter by building your distribution link as follows:

```
<script>window.SEGMANTA__USER_METADATA = {"seg_erid": "{$Salesforce_Record_ID}"}</script>
```

```
where {$Salesforce_Record_ID} is a placeholder that should be replaced with each respondent’s Salesforce Record ID every time the respondent takes your website survey.
```

- Surveys embedded via Dynamic Embed can also send events based on a unique seg\_erid value.

**Pro-tip**: For example, by configuring the **check\_respondent\_on\_server** parameter, you can interrogate the server via the seg\_erid to understand whether the user has completed the surveys or not (default to false).

```
<script>window.SEGMANTA__DYNAMIC_EMBED_CONFIG = {...check_respondent_on_server: true,}</script>
```

In order to rely on the server for this, the 'seg\_erid parameter' must be included in the global variable SEGMANTA\_\_USER\_METADATA embedded inside a script on your website, otherwise, the check will default to cookies.

 

- [Getting Started](https://help.segmanta.com/getting-started?hsLang=en)
- [Survey Questions](https://help.segmanta.com/survey-questions?hsLang=en#main-content)

    - [Getting Started](https://help.segmanta.com/survey-questions?hsLang=en#getting-started)
    - [Display Settings](https://help.segmanta.com/survey-questions?hsLang=en#display-settings)
    - [Question Customization](https://help.segmanta.com/survey-questions?hsLang=en#question-customization)
    - [Advanced Settings](https://help.segmanta.com/survey-questions?hsLang=en#advanced-settings)
    - [Data Enrichment](https://help.segmanta.com/survey-questions?hsLang=en#data-enrichment)
- [Survey Editor](https://help.segmanta.com/survey-editor?hsLang=en#main-content)

    - [Survey Outline](https://help.segmanta.com/survey-editor?hsLang=en#survey-outline)
    - [Design](https://help.segmanta.com/survey-editor?hsLang=en#design)
    - [Logic](https://help.segmanta.com/survey-editor?hsLang=en#logic)
    - [Configurations](https://help.segmanta.com/survey-editor?hsLang=en#configurations)
    - [Permissions](https://help.segmanta.com/survey-editor?hsLang=en#permissions)
    - [Distribution](https://help.segmanta.com/survey-editor?hsLang=en#distribution)
- [Integrations](https://help.segmanta.com/integrations?hsLang=en)
- [Analysis & Analytics](https://help.segmanta.com/analysis-analytics?hsLang=en#main-content)

    - [Questions View](https://help.segmanta.com/analysis-analytics?hsLang=en#questions-view)
    - [Results Overview](https://help.segmanta.com/analysis-analytics?hsLang=en#results-overview)
- [Organization Settings](https://help.segmanta.com/organization-settings?hsLang=en#main-content)

    - [My Profile](https://help.segmanta.com/organization-settings?hsLang=en#my-profile)
    - [Accounts](https://help.segmanta.com/organization-settings?hsLang=en#accounts)
- [FAQ](https://help.segmanta.com/faq?hsLang=en#main-content)

    - [Survey Editor](https://help.segmanta.com/faq?hsLang=en#survey-editor)
    - [Survey Analytics](https://help.segmanta.com/faq?hsLang=en#survey-analytics)
    - [Organization Settings](https://help.segmanta.com/faq?hsLang=en#organization-settings)
    - [Data Privacy and Security](https://help.segmanta.com/faq?hsLang=en#data-privacy-and-security)
    - [Integrations](https://help.segmanta.com/faq?hsLang=en#integrations)
    - [Embedding](https://help.segmanta.com/faq?hsLang=en#embedding)
- [Contact Us](https://help.segmanta.com/contact-us?hsLang=en)

- [Default HubSpot Blog](https://segmanta-2.hubspotpagebuilder.com/blog)

[![Chill listening crop-3](https://help.segmanta.com/hs-fs/hubfs/Segmanta_logo_Final.png?width=108&height=24&name=Segmanta_logo_Final.png "Chill listening crop-3")](https://www.segmanta.com/)

<https://www.linkedin.com/company/segmanta/mycompany/> <https://www.facebook.com/segmanta/>

Copyright © 2026, Segmanta