How to Track hits to the registration form from your event website to your registration form using Google Analytics

The vast majority of our Conference & Event Websites use an external registration website like EventBrite or N200 to process ticket sales.

The standard setup for Google Analytics will only track hits on the one domain name – the Event Website. Ideally tracking would work across the event website and the registration page.

In this article I will explain how to track as users journey from event website and the registration page / website.

1. Setup Google Analytics on the Event Website.

Add the following code to all pages on the site (your unique tracking code can be found on Google Analytics – this is indicated in RED):

<script type="text/javascript">
var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-34935105-8']);
 _gaq.push(['_setDomainName', 'conference-websites.co.uk']);
 _gaq.push(['_setAllowLinker', true]);
 _gaq.push(['_trackPageview']);
(function() {
 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
</script>

To do this on Conference Websites:

Admin > Event Settings > Misc > Header

Copy and Paste code above, edit the text in RED and past it into the Header.

2. Setup Google Analytics on the Registration form and page

Add the following code to all pages on the site (your unique ID code can be found on Google Analytics – this is indicated in RED, the URL for the Registration form is in dark blue):

<script type="text/javascript">
var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-34935105-8']);
 _gaq.push(['_setDomainName', 'conference-websites-registration-form.co.uk']);
 _gaq.push(['_setAllowLinker', true]);
 _gaq.push(['_trackPageview']);
(function() {
 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
</script>

3. Change all links from the Event Website to the Registration form to include the tracking code

Change all links to the registration form to the one below:

<a onclick="_gaq.push(['_link', 'conference-websites-registration-form.co.uk']); return false;" href="conference-websites-registration-form.co.uk" title="">REGISTER NOW</a>

To do this on Conference Websites:

You’d need to add a new Text widget to the Widgetised area / Right hand column:

Admin > Appearance > Widgets > Drag the TEXT widget in place.

Past this code in the text box – edit the BLUE text with the new URL

<ul class="menu"><li><a onclick="_gaq.push(['_link', 'conference-websites-registration-form.co.uk']); return false;" href="conference-websites-registration-form.co.uk">REGISTER NOW</a></li></ul>

 

Further Reading / Help

https://support.google.com/analytics/answer/1034342?hl=en

 

AboutUs

Tunbridge Wells Leading WordPress Website Design & Branding Experts with eighteen years of specialised experience creating websites for conferences and events, we are a highly creative website design and branding agency, uniquely placed to provide our clients with the right technical advice and the very best design work. We pride ourselves on being friendly and approachable; creating long lasting relationships with our clients to ensure continued success.

MakeContact

MIRAMEDIA LTD.

The House
29-31 Monson Road
Tunbridge Wells
TN1 1LS

(+44)1892 711144
info@miramedia.co.uk