Google Analytics Setup for RezOvation Booking Engine
From RezOvation Wiki
RezOvation Booking Engine products integrate 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. RezOvation Desktop supports the legacy version only.
Support is also provided for Google Adwords.
Contents
|
RezOvation GT
Adding the Google Analytics code to RezOvation GT
Looking for information on setting up Google Adwords tracking (pay per click)? Please view this article.
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
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 you are using: legacy code (urchin.js) or new code (ga.js). If you are not sure which option to pick, please contact your webmaster.
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:
Adding the Google Analytics code to your website
New code (ga.js)
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.
<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>
Legacy code (urchin.js)
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
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">
document.getElementById('RezovationFrame').src = pageTracker._getLinkerUrl('https://Secure.RezOvation.com/Reservations/CheckAvailabilityEmbedded.aspx?_03P4E5CUNQMVA9');
</script>
RezOvation Desktop
Adding the Google Analytics code to RezOvation Desktop Booking Engine
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 that you'd like to view.

- Go to the Main Website Profile Information section and click the Check Status link.

- The tracking URL will be listed.

Copy the _uacct portion of the URL, which is your Google Analytics ID and which we will be placing into the RezOvation Desktop Booking Engine. It looks like this:UA-2071596-1
Configure RezOvation Desktop
- Log in to the BE Admin site, open the Properties menu on the left and select Booking Engine Settings, and click the Guest Tracker link.
- Enter your Google Analytics ID in the box.
- If you do not have access to the Booking Engine Admin site, please contact support and they will enter it for you.
Enabling your Analytics account for E-Commerce transactions
- Log in to your account.
- Click the Edit link next to the profile you'd like to enable.

- On the Profile Settings page, click edit next to Main Website Profile Information.

- Enter the default page (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://www.rezovation.net/booking_guest/wfReservationResponse.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.
URL Name https://secure.rezovation.com/Reservations/CheckAvailability.aspx Check Availability https://secure.rezovation.com/Reservations/BookStep1.aspx Room Selection https://secure.rezovation.com/Reservations/BookStep2.aspx Reservation Details https://secure.rezovation.com/Reservations/CompleteOrder.aspx Payment Info
- Check the box for Required step next to step 1. The result should look like this:
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 on ALL pages of your website. 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://www.rezovation.net/booking_guest/wfStep1_OptionA.aspx?acct=7119&prop=7236">Book Now</a>
Change them to:
<script type="text/javascript">
document.write('<a href="javascript:__utmLinker(\'https://www.rezovation.net/booking_guest/wfStep1_OptionA.aspx?acct=7119&prop=7236\');">Book Now</a>');
</script>
<noscript>
<a href="https://www.rezovation.net/booking_guest/wfStep1_OptionA.aspx?acct=7119&prop=7236">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://www.rezovation.net/booking_guest/wfStep1_OptionA.aspx?acct=7119&prop=7236\');" alt="Book Now">');
</script>
<noscript>
<area shape="rect" coords="61,285,200,318" href="https://www.rezovation.net/booking_guest/wfStep1_OptionA.aspx?acct=7119&prop=7236" alt="Book Now">
</noscript>
</map>
Google Adwords
RezOvation GT
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.
RezOvation Desktop
To enable Google Adwords for RezOvation Desktop 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 Desktop Booking Engine. Do not use your Google Adwords account number, as this does not provide any tracking information.
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 Desktop, 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.



