Skip to main content

Personalize widget text with UTM campaign values

Use this setup when you run several campaigns and want one widget to show different text for each audience.

For example, a dessert store can show a different message to visitors from beach season, healthy eating, or new mom campaigns.

Before you begin

Add a UTM parameter to your campaign URLs.

Use a short value that looks natural in the widget text. For example, ‘beachbody’ is easier to use in a sentence than ‘beach_weight_loss’.

Example URLs:

Audience segment

Example URL with UTM

Beach season dieters

Healthy eaters

New-moms

Set up dynamic text based on UTM campaign

1. Open the widget in Claspo.

2. Select the word or phrase you want to replace with the campaign value.

3. Click Merge Tag in the right panel.

4. Choose the URL query parameter.

5. Enter utm_campaign in the URL query parameter field.

6. Add an example value, such as {utm_campaign}, to preview the text.

7. Click Save to open the widget settings page.

If needed, adjust Audience & Triggering and Schedule. To learn more, check the Display rules tutorials.

If the widget collects emails, phone numbers, or other contact data, connect an integration before publishing. When everything is ready, click Publish widget.

How the widget message changes

Claspo inserts the campaign value into the widget text. Example widget text:

“Looking for {utm_campaign} treats? Enjoy our guilt-free desserts today!” Visitors will see a message that matches their campaign:

  • beachbody → “Looking for beachbody treats? Enjoy our guilt-free desserts today!”

  • healthy → “Looking for healthy treats? Enjoy our guilt-free desserts today!”

  • mom → “Looking for mom treats? Enjoy our guilt-free desserts today!”

You can also personalize widget content by offering a discount for the product category the visitor is viewing. Read the guide.

Did this answer your question?