You can use web tags to classify visits by contacts to pages on your website. For example, imagine tagging pages on a movie website. You could associate pages containing articles with tags such as noir, horror, or comedy.
You can associate one or more tags, called Web tags, with visited pages.
Web tags can be used to trigger the display of an on site message or within a script.
You can configure Web tags in two ways.
Configure Web tags in magnews
To create a new Web tag, go to:
Journey Lab > Web tracking > Web tag
The page shows the list of available Web tags.
Click "New web tag" in the top-right corner to open the configuration page.
Complete the following fields:
-
Tag name:
Enter a name for the Web tag -
Tag ID:
The Web tag ID is an identifier used to reference the tag in a script or as a variable name in filters
Next, define the rules that associate the Web tag with a visitor.
Click "Add" to create a new condition.
- Choose whether the Web tag association is based on the visited page's Page title or Address
- Select whether the page contains, is equal to, starts with, or ends with the value defined in the first field. Alternatively, create a regular expression to define a custom criterion
- Enter the value used to apply the association
You can add more rules by clicking the button and defining each new rule.
When you have finished configuring the Web tag, click Save in the top-right corner.
Add Web tags directly to the HTML code
You can add one or more tags directly to a page by using a specific meta tag.
Example:
<meta name="mnwebtags" content="men" />
<meta name="mnwebtags" content="women,products" />
Each page can contain one or more Web tags, separated by commas.
To use tags added through meta tags in filters and display conditions, magnews must index them. To index the tags:
- In magnews, go to Management > Web Tracking > Web Tag
- Manually enter the list of Web tags you plan to use
Alternatively, you can skip this step by enabling the "Automatically create web tags on your site pages" option in the Advanced tab of the web property settings.
This setting allows magnews to automatically register the tags received through the magnews code, making them immediately available for targeting and analysis, up to a limit of 2500 Web tags.