In Optimizely, tags capture information that appears on the pages of your website — the parts of the pages that visitors engage with, such as type of product and what it costs.
When you set up Personalization or Recommendations, you'll set up tags alongside events to collect important data about visitor behaviors. Then, you'll use this information to group visitors by behavior, called behaviorally targeted audiences in Personalization. For example, you might group visitors who clicked a product that costs more than $100. Or, tags can help gather the data needed to run a Recommendations experiment.
The following example shows how to set up a tag.
- Go to Implementation > Pages and select the page where you want to add a tag. You can also create a new page instead.
- In the Visual Tags section, click Create.
- Click the element to which you want to attach a tag.
In the Selector field, the Editor automatically populates the selector for the element you chose. You can type or paste the element’s selector into the Selector field if you prefer.
- In the Name field, enter a name for your tag.
- Click Save.