How to add a tag to a contact profile with HTML

Last updated: March 10, 2025

Overview

You can add tags to contact profiles using HTML blocks in campaign or automation emails.

Read on to learn how to use HTML to apply tags to contact profiles!


Add a tag to a contact with HTML

To add a tag to a contact profile using HTML:

  1. Find your tag's identifier in the ID column of the Tags page

  2. Add an HTML block to an email

  3. Construct your link using a data-tag attribute with your tag's ID. In the following example, the URL is https://www.sendlane.com/, and the tag identifier is 6:

  4. Send your email!