Enabling segmentation

With Trustmary, it is possible to create a custom survey URL that contains a segment. This is enables you to "mark" a survey URL before it is sent out so you can see how a certain group of respondees have responded.

Turn on the segmentation for a survey by opening the survey, clicking on Settings, and under the Additional features section, selecting Enable segmentation and clicking Save.

Generating a custom link

You can create a custom URL by adding ?p[segment_number]=[segment_value] as the query parameter at the end of the URL. For example, if you would like to have a segment called "123" you could add ?p1=123 after the survey URL, resulting in an URL that looks something like this:


You can get the base URL for you survey by opening a survey, clicking on the Collect tab and copying the URL address from there.

What can a segment contain?

The segment parameters can contain only URL safe characters, such as numbers (0-9), characters (a-z) and the special characters "-" and "_". The best practice for naming the segments is to use IDs from your systems. The segments should not be readable in plain language, e.g. name of product purchased.


You will see the given segments below each answer on the Responses tab in the survey editor. You can also export all the answers with the segments to a .csv or Excel for further processing. Filtering in the app by segments is currently not possible.

Did this answer your question?