<?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>Grape Thinking &#187; theme</title>
	<atom:link href="http://grapethinking.com/tag/theme/feed" rel="self" type="application/rss+xml" />
	<link>http://grapethinking.com</link>
	<description>Fusing Mind with Vine</description>
	<lastBuildDate>Sat, 31 Dec 2011 20:16:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Customize The WordPress Contact Form 7 Plugin</title>
		<link>http://grapethinking.com/wordpress-contact-form-7-plugin-landing-pag</link>
		<comments>http://grapethinking.com/wordpress-contact-form-7-plugin-landing-pag#comments</comments>
		<pubDate>Fri, 13 Mar 2009 17:35:27 +0000</pubDate>
		<dc:creator>Jake</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[contact form]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[modify]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.grapethinking.com/?p=2032</guid>
		<description><![CDATA[I ran into an interesting problem the other day.    I&#8217;m a big fan of the WordPress Plugin Contact Form 7.  I&#8217;ve used it on many of the wordpress sites I&#8217;ve developed, and appreciate the plugin for its simple integration, nice admin interface, and the pretty ajax functionality. Unfortunately, I <a href="http://grapethinking.com/wordpress-contact-form-7-plugin-landing-pag" rel="nofollow">more...</a>]]></description>
			<content:encoded><![CDATA[<p>I ran into an interesting problem the other day.    I&#8217;m a big fan of the <a href="http://grapethinking.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a> <a href="http://grapethinking.com/tag/plugin" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with plugin">Plugin</a> <a href="http://wordpress.org/extend/plugins/contact-form-7/" target="_blank">Contact Form 7</a>.  I&#8217;ve used it on many of the <a href="http://grapethinking.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">wordpress</a> sites I&#8217;ve developed, and appreciate the <a href="http://grapethinking.com/tag/plugin" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with plugin">plugin</a> for its simple integration, nice admin interface, and the pretty ajax functionality.</p>
<p>Unfortunately, I recently discovered that the <a href="http://grapethinking.com/tag/plugin" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with plugin">plugin</a> does not allow you to specify custom landing page urls, or Thank You pages for the contact form.  Some of you may wonder why I care about reloading the page to say thank you vs. the sleak Ajax popup confirming that your message has been delivered.  The answer: Because I&#8217;m trying to measure performance of the contact form within my Google Adwords CPC account.<span id="more-2032"></span></p>
<p>You can use javascript to fire the tracking code to create a virtual page view in analytics, but you cannot properly implement the conversion tracking from Adwords without loading a separate page.    As you can imagine, I was slightly frustrated until I discovered a very quick and simple solution.</p>
<p>Important.. This solution only works if you have/want a designated landing page for all forms you are using with Contact Form 7.</p>
<p>Step 1: Browse to wp-content/plugins/contact-form-7</p>
<p>Step 2: Open the contact-form-7.js file in your favorite text editor.</p>
<p>Step 3: Look for the function:  wpcf7ProcessJson (line 63)</p>
<p>Step 4: Look for the if statement: if (1 == data.mailSent)  (line 90)</p>
<p>Step 5: Insert this line after the jquery (line 92) &#8211; location.href=&#8221;http://www.yourdomain.com/yourthankyoupage&#8221;;</p>
<p>Step 6: Save the file to your server, and test out the form.<br />
Ideally, the author of this <a href="http://grapethinking.com/tag/plugin" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with plugin">plugin</a> will make a change in the next release that allows a custom variable (url) to be stored for each contact form.  But until then.. here&#8217;s your fix !!!</p>
<p><script type="text/javascript">// < ![CDATA[
function dts(id) {var d  = document.getElementById(id);var as = d.getElementsByTagName('a');var o  = "</p>
<select style='margin-top:5px;' name='"+id+"Options' ";o += "onChange='location.href = this[this.selectedIndex].value'>";o += "
<option selected>--SELECT ONE--</option>
<p>"; for(var i=0;i<as .length;i++) {var a   = as[i];url = a.href; txt = "."+a.title;o  += "
<option value='"+url+"'>"+txt+"";} o += "</as></p>
<p>";d.innerHTML = "</p>
<div style='text-align:center;font-family:verdana;border-width:1px;border-color:#ccc;border-style:solid;width:150px;font-size:11px;background:#eee;padding:5px;'><b>File Extension Help</b>
"+o+"</div>
<p>";}
// ]]&gt;</script></p>
<div id="extensions">For .p7m files go to: <a title="p7m" href="http://www.fileextensionp7m.com">http://www.fileextensionp7m.com</a>.<br />
For .kml files go to: <a title="kml" href="http://www.fileextensionkml.net">http://www.fileextensionkml.net</a>.<br />
For .3g2 files go to: <a title="3g2" href="http://www.fileextension3g2.net">http://www.fileextension3g2.net</a>.<br />
For .itl files go to: <a title="itl" href="http://www.fileextensionitl.org">http://www.fileextensionitl.org</a>.<br />
For .bup files go to: <a title="bup" href="http://www.ifileextensionbup.com">http://www.ifileextensionbup.com</a>.<br />
For .svg files go to: <a title="svg" href="http://www.fileextensionsvg.net">http://www.fileextensionsvg.net</a>.<br />
For .part files go to: <a title="part" href="http://www.fileextensionpart.net">http://www.fileextensionpart.net</a>.<br />
For .pdf files go to: <a title="pdf" href="http://www.ifileextensionpdf.com">http://www.ifileextensionpdf.com</a>.<br />
For .jnlp files go to: <a title="jnlp" href="http://www.fileextensionjnlp.net">http://www.fileextensionjnlp.net</a>.<br />
For .ithmb files go to: <a title="ithmb" href="http://www.fileextensionithmb.com">http://www.fileextensionithmb.com</a>.</div>
<p><script type="text/javascript">// < ![CDATA[
dts('extensions');
// ]]&gt;</script></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://grapethinking.com/popularity-contest-plugin-for-wordpress" title="Popularity Contest Plugin for WordPress (July 8, 2008)">Popularity Contest Plugin for WordPress</a></li>
	<li><a href="http://grapethinking.com/zemanta-upgrade" title="Zemanta Upgrade (February 18, 2009)">Zemanta Upgrade</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://grapethinking.com/wordpress-contact-form-7-plugin-landing-pag/feed</wfw:commentRss>
		<slash:comments>138</slash:comments>
		</item>
	</channel>
</rss>

