<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AUKSEO - Blog from a Search Engine Optimiser based the UK &#187; goals</title>
	<atom:link href="http://www.aukseo.co.uk/tag/goals/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aukseo.co.uk</link>
	<description>The views of a UK SEO</description>
	<lastBuildDate>Thu, 11 Mar 2010 22:46:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Track Google Goals on Enhanced WP-ContactForm</title>
		<link>http://www.aukseo.co.uk/track-google-goals-on-enhanced-wp-contactform-432/</link>
		<comments>http://www.aukseo.co.uk/track-google-goals-on-enhanced-wp-contactform-432/#comments</comments>
		<pubDate>Fri, 08 May 2009 00:02:18 +0000</pubDate>
		<dc:creator>aukseo</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[conversions]]></category>
		<category><![CDATA[goals]]></category>
		<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[ROI]]></category>
		<category><![CDATA[tracking]]></category>

		<guid isPermaLink="false">http://www.aukseo.co.uk/?p=432</guid>
		<description><![CDATA[Enhanced WP-ContactForm is a popular Wordpress plugin which adds a neat contact form to your WordPress blog. This can be completed with two small changes to you contact page. 
1. Add the tracking code to the form. 
On line 185 of wp-contactform.php 
$results = '&#60;div style="font-weight: bold;"&#62;' . $success_msg . '&#60;/div&#62;';
change to 
$results = '&#60;div [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.aukseo.co.uk%2Ftrack-google-goals-on-enhanced-wp-contactform-432%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.aukseo.co.uk%2Ftrack-google-goals-on-enhanced-wp-contactform-432%2F" height="61" width="51" /></a></div><p>Enhanced WP-ContactForm is a popular Wordpress plugin which adds a neat contact form to your WordPress blog. This can be completed with two small changes to you contact page. </p>
<p>1. Add the tracking code to the form. </p>
<p>On line 185 of wp-contactform.php </p>
<p><code>$results = '&lt;div style="font-weight: bold;"&gt;' . $success_msg . '&lt;/div&gt;';</code></p>
<p>change to </p>
<p><code>$results = '&lt;div style="font-weight: bold;"&gt;' . $success_msg . '&lt;/div&gt;&lt;script type="text/javascript"&gt;pageTracker._trackPageview("/contact-sent/")&lt;/script&gt;';</code></p>
<p> All you are doing is adding the track page view which throws a page view into Analytics after the success message is displayed.</p>
<p>2. Move the tracking code</p>
<p>The original Google Analytics tracking code needs to be placed before the line you just added to the contact form. In WordPress I have placed the tracking code on the footer so I just copy &#038; past the footer and header into the page template. The move the code from the footer into the header.  If you use a WordPress plug in to manage your tracking you might need to use a plugin that places the tracking code in the head of your template or have a little play around. </p>
<p>All done sent a test contact and in Google Analytics this will appear as a page view. </p>
<p><a href="http://www.aukseo.co.uk/track-google-goals-on-enhanced-wp-contactform-432/contact-sent/" rel="attachment wp-att-452"><img src="http://www.aukseo.co.uk/wp-content/uploads/2009/05/contact-sent.jpg" alt="contact-sent" title="contact-sent" width="449" height="123" class="aligncenter size-full wp-image-452" /></a></p>
<p>Now just add that page as a goal and then Google Analytics will start to track conversion rates. </p>
<p><a href="http://www.aukseo.co.uk/track-google-goals-on-enhanced-wp-contactform-432/contact-sent-ga/" rel="attachment wp-att-453"><img src="http://www.aukseo.co.uk/wp-content/uploads/2009/05/contact-sent-ga-300x133.jpg" alt="contact-sent-ga" title="contact-sent-ga" width="300" height="133" class="aligncenter size-medium wp-image-453" /></a></p>
<p>If you want you can add similar tracking when the contact form fails, this will track if the user enters an invalid field. This is useful to track if you think people may be having problems filling out the form.  Although the above method applies to Enhanced WP-ContactForm the same concept should be applied to forms that just refresh the page, add the page view just after the confirmation statement and move the tracking to the top of the page. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.aukseo.co.uk/track-google-goals-on-enhanced-wp-contactform-432/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
