Google E-Commerce

1. Create a Reservation Confirmation Page on your website. It can be a very basic "Thanks, your reservation has been confirmed!" type page.

2. Our system will forward the guest to this new page with some variables included in the link: id (Reservation ID),total (Total amount of the Reservation),unit (Unit name they reserved).

3. Inject the widget below on the new page you created. Make sure to put in your UA ID, Company Name, City and State into the placeholders.

4. Send us the link and we'll update the account - [email protected]

*Make sure jQuery and Google Analytics javascripts are installed prior to implementing this code

<script type="text/javascript">
var getUrlParameter = function getUrlParameter(sParam) {
    var sPageURL =,
        sURLVariables = sPageURL.split('&'),

    for (i = 0; i < sURLVariables.length; i++) {
        sParameterName = sURLVariables[i].split('=');

        if (sParameterName[0] === sParam) {
            return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);

  var _gaq = _gaq || [];

  _gaq.push(['_setAccount', 'UA-YOURIDHERE']);



    getUrlParameter('id'), // transaction ID - required

    'Your Company Name',  // affiliation or store name

    getUrlParameter('total'), // total - required

    '0',  // tax

    '0',  // shipping

    'You City',       // city

    'Your State',     // state or province

    'USA'             // country


   // add item might be called for every item in the shopping cart

   // where your ecommerce engine loops through each item in the cart and

   // prints out _addItem for each


    getUrlParameter('id'),           // transaction ID - required

    getUrlParameter('unit'),           // SKU/code - required

    getUrlParameter('unit'),        // product name

    'RV',   // category or variation

    getUrlParameter('total'),          // unit price - required

    '1'               // quantity - required


  _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers

  (function() {

    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';

    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);


Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.