Creating a page load conversion using the Advanced Editor

Page Load Conversion

A page load conversion counts the number of visitors or page views on a specific URL or group of URLs.

Adding a Page Load Conversion using the user interface:

  • During the test set up process, you can add page load conversion at step 4 “Goals”.
  • Enter conversion “Name” (E.g. Page_Confirmation)
    • We recommend using the “Page” prefix and avoid using spaces, apostrophes or special characters where possible.
  • Select “Page Load Conversion” from the ‘Type’ drop-down field.
  • Select a ‘Location’ from the drop-down field.

 

Adding a new location

  • To add a new location, click”Manage…” in top right corner of your screen and select locations

  • Click on “Create Location”

  • On the next screen, enter ‘Name’ (E.g. Payment Page).

Enter ‘Description’ (Optional).

 Choose a ‘Site’ from the dropdown list. ‘Site’ defines the domain where the test will run. To create a new site, click “Create Site”, enter name, enter domain name (e.g. yourdomain.com) and click “Save Site”.

 Enter one or more regular expression(s) that define a URL page or a group of URL pages.

 Add or delete additional regular expressions by clicking “+” or “-“.

 Check a URL by entering the reguClick Conversion lar expression into the field and clicking “Check”.

 Leave ‘Advanced Parameter’ settings as default.  – Select ‘default’ values for ‘Advanced Parameters’ or contact your administrator for further assistance.

 

1b)Adding a Page Load Conversion using custom code in the post-rendering script:

  • During the test set up process, you can add page load conversions in step 2 “Test Details” by adding custom code to the post-rendering script.
  • Click “Edit” within the ‘Post-Rendering Script’ section.

  • Add the following custom code into the ‘Post-Rendering Script’ window:

 

WT.addEventHandler(‘pageview’, function(e)

{

If(window.location.href.match(/www.yoursite.com/)) {

WT.click( {conversionPoint: conversionName});

}

});

  • Replace /www.yoursite.com/ with the URL page(s) in RegEx format.
  • Replace conversionName with a meaningful conversion name (E.g. Page_Confirmation).
    • We recommend using the “Page” prefix and avoid using spaces, apostrophes or special characters where possible.
  • Click “Audience” to save and proceed to the next step of the test set up.