Google Analytics Setup Using Legacy Integration

From RezOvation Wiki

Jump to: navigation, search

Note: we do not recommend using the legacy Google Analytics integration, as it does not offer all the features of the newer option.

The RezOvation Booking Engine integrates seamlessly with the Google Analytics web statistics tool. Full support is provided for:

  • E-Commerce tracking (with actual revenue amounts)
  • Referral tracking
  • Goal tracking

Currently, both the legacy version of Google Analytics (urchin.js) and the new version (ga.js) are supported in RezOvation GT. Please click here if you are using the new version (ga.js) with RezOvation GT.

Support is also provided for Google Adwords.

Contents

Set up and configure Google Analytics

  1. Create an account on Google Analytics if you do not have one. If you already have a Google or Gmail account, you just need to activate your Analytics account. Log in to Google or Gmail and visit Google Analytics to activate your account.
  2. Log into your Google Analytics account and click the Edit link next to the profile for your site.
    Image:GA-Account-1.png

  3. Click the Check Status link at the top of the page.
    Image:GA-Code-2.png

  4. Your Google Analytics Tracking code will be displayed.
    Image:GA-Code-3.png
    Copy the _uacct portion of the URL, which is your Google Analytics ID and which we will be placing into RezOvation GT. It is formatted like this:
    UA-2071596-1

Enabling your Analytics account for E-Commerce transactions

  1. Log in to your account.
  2. Click Edit next to the profile you'd like to configure.
    Image:GA-Account-1.png

  3. On the Profile Settings page, click the Edit link.
    Image:GA-Account-2.png

  4. Type in the default page for your website (usually index.html).
  5. Change the E-Commerce Website radio button from No to Yes.
    Image:GA-Account-3.png

Setting Up Goal Tracking

Goal settings

  1. From main Profile Settings page, click the Edit link next to the first goal (G1)
    Image:RGT-GA-Goal-1.png

  2. Enter the Goal URL, which is:
    https://secure.rezovation.com/Reservations/ResConfirmation.aspx
  3. Name the goal, and select the "On" radio button to turn the goal on.
    Image:RGT-GA-Goal-2.png

  4. Under the Additional Settings section, set Match Type to Head Match, and set the Goal Value to 1.
    Image:GA-Goal-3.png

  5. Click the Save Changes button to save your changes.

Goal funnel

If you'd like to track the Goal funnel, which allows you to see where in the process potential guests are "falling off" the booking process before the Goal is reached, please follow the directions below.

  1. Enter each URL in the funnel. The URLs are listed below. You can name the goal steps however you wish. If extras are sold, make sure to add the BookStep1a.aspx line.

    URLNameOptional
    https://secure.rezovation.com/Reservations/CheckAvailability.aspxCheck Availability
    https://secure.rezovation.com/Reservations/BookStep1.aspxSelect Room
    https://secure.rezovation.com/Reservations/BookStep1a.aspxSelect ExtrasOnly used if extras are sold
    https://secure.rezovation.com/Reservations/BookStep2.aspxContact Info
    https://secure.rezovation.com/Reservations/CompleteOrder.aspxComplete Order

  2. Check the box for Required step next to step 1. The result should look like this:
    Image:RGT-GA-Goal-4.png

Configure RezOvation GT

  1. Open RezOvation GT and go to the Configuration screen. Go to the Online Reservations section and click the Booking Engine link. Enter your Google Analytics ID under the Statistics Tracking section. Leave the Adwords ID section blank.
  2. Select legacy code (urchin.js).
    Image:RGT-GA-Code-4.png

Adding the Google Analytics code to your website

Add the following lines to your tracking code on your web site after the opening <body> tag. Be sure to replace the _uacct= line with your actual Analytics account ID.

      <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
      </script>
      <script type="text/javascript">
        _uacct="UA-xxxx-x";
        _udn="none";
        _ulink=1;
        urchinTracker();
      </script>

Change the links from the main site to the secure site to use __utmLinker as follows. If your current links look like:

<a href="https://Secure.RezOvation.com/Reservations/CheckAvailability.aspx?_03P4E5CUNQMVA9">Book Now</a>

Change them to:

    <script type="text/javascript">
    document.write('<a href="javascript:__utmLinker(\'https://Secure.RezOvation.com/Reservations/CheckAvailability.aspx?_03P4E5CUNQMVA9\');">Book Now</a>');
    </script>
    <noscript>
    <a href="https://Secure.RezOvation.com/Reservations/CheckAvailability.aspx?_03P4E5CUNQMVA9">Book Now</a>
    </noscript>

The code above provides links for users with or without JavaScript enabled. It's important to note that apostrophes need to be escaped with a backslash where they appear in the link or link text.

Important: if your pages include a call to urchinTracker(), utmLinker(), utmSetTrans(), or utmLinkPost(), your Analytics tracking code must be placed in your HTML code ABOVE any of these calls. In these cases the tracking code can be placed anywhere between the opening <body> tag and the JavaScript call.

If you are using an image map to link a button, or other image to the online reservation URL, the code for the image map should look something like this:

<map name="Map">
<script type="text/javascript">
document.write('<area shape="rect" coords="61,285,200,318" href="javascript:__utmLinker(\'https://Secure.RezOvation.com/Reservations/CheckAvailability.aspx?_03P4E5CUNQMVA9\');" alt="Book Now">');
</script>
<noscript>
<area shape="rect" coords="61,285,200,318" href="https://Secure.RezOvation.com/Reservations/CheckAvailability.aspx?_03P4E5CUNQMVA9" alt="Book Now">
</noscript>
</map>

Special considerations when using the embedded search

We do not recommend using the embedded search with the legacy Google script. Instead, use the new version.

Google Adwords

Enabling Google Adwords Tracking

To enable Google Adwords for RezOvation GT Booking Engine, simply add your Google Adwords conversion ID (sometimes known as campaign ID) to the Google Adwords field referenced in Adding the Google Analytics code to RezOvation GT.

Please do not:

  • Use your Google Adwords account number, as this does not provide any tracking information.
  • Place the Adwords script on your website or in the Booking Engine template. The Adwords script is called automatically on the online reservation confirmation page. As long as you enter the code in RezOvation GT, the Adwords conversion will be recorded when it occurs. If you do put the conversion script on any other pages of your site, this will skew your conversion numbers.

Important notes

FAQs

  • Google can take up to 72 hours to process ecommerce (revenue) data. So, in some cases the "transactions" data listed under ecommerce may not match the "products" data. It is recommended that you look at ecommerce stats with a 3 day lag in order to obtain accurate data.
  • Referrals from your domain (e.g. www.thehillcountryinn.com) are normal. This is much like "direct" referrals and indicates that a guest entered the booking process by going directly to your website, instead of through a third-party referrer (such as Google, BedandBreakfast.com, etc.)
  • Goal tracking revenue numbers will never match ecommerce revenue numbers. This is because goal tracking does not offer RezOvation a data feed (ecommerce, on the other hand, allows us to submit reservation data including total, tax, and confirmation #). Instead, you must define a goal with a set value, which for simplicity is usually $1. So, $10 of goal revenue means 10 goals met.

Troubleshooting

Referrals are not getting tracked properly.

Please confirm that you have placed the Google code on every page of your website, as described in the section "integrating Google Analytics with your website".

Ecommerce data is not being tracked.

Please confirm that you have entered the Google Analytics ID in the RezOvation Booking Engine settings.

Conversions are not being tracked.

Please confirm that you have entered the Google Conversion ID in the RezOvation Booking Engine settings.

Cost data is not being tracked.

Please confirm that you have linked your Adwords account to your Analytics account. In addition, if you have multiple domains, you should have a single Adwords and Analytics account for each domain.

My domain name is listed as a referrer.

Please confirm that you have placed the Google code on every page of your website, as described in the section "integrating Google Analytics with your website".

Please also confirm that you modified all of your booking engine links to use the correct link tracking code.

See Also

Personal tools