Skip to main content
All CollectionsPersonalization EngineCreating personalized DocsAdvanced personalization
Using query parameters as a data source to personalize Turtl Docs
Using query parameters as a data source to personalize Turtl Docs

Learn how to use query parameters to personalize Docs

Blaž Udovč avatar
Written by Blaž Udovč
Updated over a week ago

Note: This feature is available if you have purchased the Personalization module and are on a Professional or Unlimited plan.

Query parameters are the simplest data source to use in personalization. As long as you have personalization enabled on your account, no setup is required. Learn more about other possible data sources here.

Let’s personalize a Turtl Doc with some query parameters. Most commonly, a data source expression should be placed in the prefill value field of the personalization form.

In the example below, our Doc has two personalization fields, one for name, and one for company.

1. Open the personalization form builder for your Turtl Doc.

2. Select the name field and type $:datasources.queryParam('name') into the "Prefill value" field.

As a bonus, we also have a shorthand expression available for query parameters, which is $:datasources.qp('name').

4. Select the "Company" field.

5. Type $:datasources.queryParam('company') or $:datasources.qp('company') into the "Prefill value" field.

6. Click "Publish"

Your Turtl Doc is now ready to be personalized with query parameters by adding them at the end of the Turtl Doc URL.


#datasources

The personalization engine is protected by US patents.

Did this answer your question?