Google Analytics Goal Tracking

Main Street Sites supports goal tracking in Google Analytics and Google Adwords.

If you haven't done so already, the first step is to enable the built-in Google Analytics support for your Main Street Sites account. Go to Website > General > Site Options and select the "Settings" tab. Fill in the Google Anayltics ID field. For help with this step, see How to enable Google Analytics.

Creating your goal in Google Analytics

If you have set up your Google Analytics ID as indicated above, all traffic to your Main Street Sites pages should be getting logged by Google Analytics. Once that is the case, it is not difficult to set up a goal that is based on the address of the registration "done" page.

The URL for the registration done page looks like this:

https://secure.mainstreetsites.com/dmn####/order_done.aspx?ord=#######

...where the #### is your unique Main Street Sites domain identifier and ####### is the unique ID for the current order.

You should be able to set up your conversion goal tracking in Google Analytics by simply having the goal look for "order_done" in the URL. 

When you create your goal, set "Goal URL" to "order_done" and "Match Type" to "Regular Expression Match". 

Setting up Goal Tracking Manually

If you'd prefer to add your own Google AdWords or Analytics goal tracking script to the done page directly, you can do that by going to Website > General > Built-in Pages. Select the "Registration" page and click on the "Additional Content" tab. Find one of the "Registration Done" pages in the list. (You will see three of them: top, bottom and footer.) Do not insert the Javascript directly into the content editor. Instead, you should add it to a snippet at Website > Vaults > Snippet Vault. Then the snippet can be inserted onto the page.

Note: Generally speaking we would recommend you use the built-in approach.

Advanced Goal Tracking Issues

Setting up proper return path tracking can be challenging because of the different domains being traversed by visitors to your website.  

For example, a person visiting your website from a Google Adwords ad might begin on a landing page like this: www.your-domain.com/some_landing_page and then click on a link that takes them to the Main Street Sites secure registration page like this: https://secure.mainstreetsites.com/register.aspx. In this case, Google Adwords can record the conversion, but it will not "see" the connection between the original ad and the conversion.

To properly associate conversions with AdWord campaigns, some additional handling is required.

If you have a Main Street Sites website, please contact support to have the additional handling activated for your account.

If you use your own website with Main Street Sites, you'll need to implement some special handling on your website for the links to Main Street Sites. Please contact support for help in making the necessary modifications to your website.

Please note: The Google Analytics goal tracking conversions will still get captured without the special handling, but they will not be associated with the correct AdWords campaign.

*