A lot of users have asked us how to create a specific targeting code for a bucket that will only be displayed on their site's homepage.
There is a simple regular expression solution that can be used to limit segmentation on the homepage. First, make sure you have a bucket you want to use with the targeting code. Next, in the targeting code interface, scroll to the bottom of the screen and add the following URL regular expression ( in this example, we are assuming your site's url is
http://www.yoursite.com/ ):
- ^http:\/\/www\.yoursite\.com\/$
This regular expression restricts the targeting code to be applied only to the home-page url. If you do also have a index.html file for the home, make sure you include this URL as well.
Cheers!
Tags: homepage, targeting
-
▶ Reply to This