Forums/Question and Answers/Tips & Tricks

Testing on productpages (that do not have unique URL's)

Dennis van der Heijden
posted this on October 20, 2011 07:57

When you have a shopping cart that focuses on SEO it might be that the URL's do not have any special characters you can use to see if it's a product page. How do you still target that specific group of pages?

Making a Segment

  1. Making a segments by going to the menu Segments -> Create Segment create a segments with just a name, select active and nothing more (see screenshot below)

    segment.png

  2. Save the segment and edit it again once its saved. We need to get the last number of the URL in this example that is 1000388 (see below)

    url.png

  3. Paste the code below, in your product template of your e-commerce solution just before the reedge header code. Anywhere before the Reedge tracking code is fine.

            <script type="text/javascript">
    var REED_segids = "comma_separated_list_of_segment_IDS ";</script>

You only need to replace the bold part with a comma separated list of segment ID's . It can be just one segment ID as well as in the below sample:

<script type="text/javascript">var REED_segids = "1000388";</script>

This code will make the application trigger a specific segment for the visitor, segment that can be used in the targeting options of your test(see below) to identify the pages needed.

Setup the test

You select a page that represents your product pages (one product page) you make your test and when you come to the step Target Group you select advanced. By default, you get a targeting rule for your specific page but remove that one and add Visitor Data -> Visitor's Segment as a rule. Now select there the segment that you used before in the Javascript code pasted on your targeted pages.

In details section of the rule (3) we want to make sure this test only works if they are NOW watching a page from this segment and not (used to see in the past) so the Time look back we change from All the time to This Page Visit. then continue setting up the test and your test should now be triggering on all product pages. See below for a visual on this last step.

target-group.png


Notes:

  • Test things that are present and the same on all product pages, this does not include product names. Since the application will change that name on all pages.
  • You can add segments to just track specific categories, product pages, subcategories and you can add multiple scripts to you page to collect more information and use that in you tests.
  • If you just like to put a person in a segment for future reference (not instant changes) you can place this code anywhere in the body:

    <!-- begin Reedge conversion code --><script type="text/javascript">if(typeof(REED)!="undefined" && typeof(REED.pushData)!="undefined") REED.pushData({sid:1000388},'strigg')</script><!-- end Reedge conversion code --> 

    The bold part is then the segment you adding the user to the segment that the person visited the product page.