Google Analytics Setup for RezOvation Booking Engine
From RezOvation Wiki
The RezOvation GT Booking Engine integrates with the Google Analytics web statistics tool. Full support is provided for:
- E-Commerce tracking (with actual revenue amounts)
- Referral tracking
- Goal tracking
Support is also provided for Google Adwords.
Set up and configure Google Analytics
- 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.
- Log into your Google Analytics account and click the Edit link next to the profile for your site.

- Click the Check Status link at the top of the page.

- Your Google Analytics Tracking code will be displayed.

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
- Log in to your account.
- Click Edit next to the profile you'd like to configure.

- On the Profile Settings page, click the Edit link.

- Type in the default page for your website (usually index.html).
- Change the E-Commerce Website radio button from No to Yes.
Setting Up Goal Tracking
Goal settings
- From main Profile Settings page, click the Edit link next to the first goal (G1)

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

- Under the Additional Settings section, set Match Type to Head Match, and set the Goal Value to 1.

- 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.
- 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.
URL Name Optional https://secure.rezovation.com/Reservations/CheckAvailability.aspx Check Availability https://secure.rezovation.com/Reservations/BookStep1.aspx Select Room https://secure.rezovation.com/Reservations/BookStep1a.aspx Select Extras Only used if extras are sold https://secure.rezovation.com/Reservations/BookStep2.aspx Contact Info https://secure.rezovation.com/Reservations/CompleteOrder.aspx Complete Order
- Check the box for Required step next to step 1. The result should look like this:
Configure RezOvation GT
- 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.
- Select the version of the Google Analytics code to new tracking code (ga.js). (NOTE: your website must be configured to use the ga.js code. If you're not sure whether this is the case, please contact your webmaster.)
Adding the Google Analytics code to your website
Add the following code to your website after the opening <body> tag on ALL pages of your website. Be sure to change the value UA-xxxxxx-x to use your actual Google Analytics ID. Do not place this code at the bottom of the page - it must be placed BEFORE any links to the RezOvation booking engine.
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._setDomainName("none");
pageTracker._setAllowLinker(true);
pageTracker._trackPageview();
</script>
Change all booking links to use a special code. e.g. if your links currently look like:
<a href="https://secure.rezovation.com/Reservations/CheckAvailability.aspx?_03P4E5CUNQMVA9"><img src="images/book-online-HC.jpg" border="0" alt="Book Now" /></a>
change them to:
<a href="https://secure.rezovation.com/Reservations/CheckAvailability.aspx?_03P4E5CUNQMVA9" onclick="pageTracker._link(this.href); return false;"><img src="images/book-online-HC.jpg" border="0" alt="Book Now" /></a>
Important: if your pages include a call to _trackPageview(), _link(), _trackTrans(), or _linkByPost(), 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.
Special considerations when using the embedded search
If you are using the embedded availability search iframe (which links to CheckAvailabilityEmbedded.aspx), then you will need to change the iframe script as follows.
If your iframe looks like this:
<iframe style="height: 200px; width: 260px;" src="https://secure.rezovation.com/reservations/CheckAvailabilityEmbedded.aspx?_03P4E5CUNQMVA9" noresize="noresize" frameborder="no" scrolling="No" allowtransparency="true"></iframe>
Change it to this:
<iframe id="RezovationFrame" style="height: 200px; width: 260px" allowtransparency="true" scrolling="no" frameborder="no"></iframe>
<script type="text/javascript">
var iframe = document.getElementById("RezovationFrame");
iframe.src = pageTracker._getLinkerUrl("https://Secure.RezOvation.com/Reservations/CheckAvailabilityEmbedded.aspx?_03P4E5CUNQMVA9");
</script>
Google Adwords
Enabling Google Adwords
To enable Google Adwords for RezOvation GT Booking Engine, simply add your Google Adwords conversion ID (aka 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
- In order to see pay per click cost data in your Google Analytics account, you must link your Adwords account to your Analytics account. Please see the Google documentation for more information on how to link accounts.
- It has come to our attention that Google Adwords may sometimes provide inconsistent data if you link multiple Adwords accounts for multiple domains back to a single Analytics account. In general for best results it is recommended that you set up an individual Adwords and Analytics for each domain that you wish to track.
- Need more information about Google conversion tracking? Visit the Google help docs: https://adwords.google.com/support/aw/bin/answer.py?answer=115794
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.
My booking engine URL is listed as the referrer.
If Google lists the referrer as "checkavailability.aspx?s_" or similiar, then the RezOvation Booking Engine is getting tracked as a referrer. This means you have not set up the Google tracking code properly on your website. Some possible reasons for this issue:
- You are not using the correct code in your booking engine links
- You have other javascript on your website which is conflicting with the Google tracking scripts
In either case, you should contact your webmaster to troubleshoot this problem.

