How to Use Anchor Links in Your Messages and Forms

Last updated at:


Anchor links are an easy way to create a personalized on-site experience for your customers coming from different emails, advertisements, or even in-person events. You can use anchor links in signup forms to target different lists and segments with relevant content. While anchor links are similar to UTM parameters, you will not be able to track customers as well as you can with UTM parameters. For more information on using UTM parameters, head to our article on UTM Tracking in Klaviyo.

How to Create an Anchor Link

To create an anchor link, add in a # symbol followed by a few descriptive words. For instance, if you want a popup to trigger when someone clicks on a link in your email, indicating they are interested in hearing about a new product you are releasing, you can make an anchor link that looks like the following.

From there, you can add this URL to your messages and forms.

Adding Anchor Links in Messages

To use your anchor links in messages, add a URL, like the one created above, to your emails and SMS messages.


In email, this looks like adding the URL to your images, links, or buttons. Drag and drop an image, text, or button block into your template. Under the block, add in the URL with the anchor link and click Save. You can add different anchor links for each link that you have in your email.


If you want to track where a person clicks within your email to use later in segmentation, follow our article on Use Buttons in an Email to Collect Information About Your Recipients.


For your SMS messages, paste in the URL with your anchor link to the SMS builder. If you choose to shorten your link, the anchor link will still work.


Using Anchor Links with Signup Forms

After you’ve created a way for your customers to reach your anchor link, you can use signup forms to customize the on-site content for each browser so that your brand seems more human. Continuing with the example above, if someone clicks through the button in the email or the link in the SMS, the goal is to direct them to a full-page popup to sign up to receive information about a product release. In the signup form behavior, specify that you only want to display this form to people who click with this particular URL.


Test your form before setting it live and come back to it to make sure it’s performing well.

Additional Resources


Was this article helpful?
26 out of 86 found this helpful