{"id":7240,"date":"2009-03-02T10:13:28","date_gmt":"2009-03-02T17:13:28","guid":{"rendered":"http:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/?p=7240"},"modified":"2009-03-02T10:19:18","modified_gmt":"2009-03-02T17:19:18","slug":"daisy-chained-source-tracking-with-the-universal-contact-form","status":"publish","type":"post","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/7240\/daisy-chained-source-tracking-with-the-universal-contact-form\/","title":{"rendered":"Daisy-chained source-tracking with the Universal Contact Form"},"content":{"rendered":"<p>One of the features I built into the <a href=\"http:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/?p=7223\" target=\"_blank\">Universal Contact Form<\/a> last night is source tracking. This is Direct Marketing 101 &#8212; know where your efforts are producing the best returns.<\/p>\n<p>So to invoke the form with source-tracking, you would just do this:<\/p>\n<pre>http:\/\/www.domain.com\/UniversalContactForm.php?source=CLad2<\/pre>\n<p>In this case, we&#8217;re assuming that the source of the click into the form is a Craigslist posting.<\/p>\n<p>Same thing, but as a unique form:<\/p>\n<pre>http:\/\/www.domain.com\/UniversalContactForm.php\r\n?action=Relocation&source=CLad2<\/pre>\n<p>(I had to break the line at the question mark to make it fit. Here and below, these should be seen as being all one line.)<\/p>\n<p>In reality, though, you&#8217;re not going to want to go directly to the form. You&#8217;re going to want to hit a landing page that has the form as its call to action. And, in light of that, you&#8217;re going to &#8220;include&#8221; the form in PHP.<\/p>\n<p>Alas, the variables passed from the URL in your Craigslist ad will be lost. You can&#8217;t live without the action variable, but you already know what to do about that: Hard code it.<\/p>\n<p>And that&#8217;s essentially what you&#8217;ll do with the source variable, as well &#8212; except you&#8217;ll soft code both variables by passing them through.<\/p>\n<p>So you invoke the form like this:<\/p>\n<pre>include (\"http:\/\/www.domain.com\/UniversalContactForm.php\r\n?action=$action&amp;source=$source\");<\/pre>\n<p>The action variable is being received into the PHP variable $action on the way into the landing page, and source is being received into $source. When you do the &#8220;include,&#8221; you are transferring to another variable space, so you need to pack up the two variables and ship them along as you go.<\/p>\n<p>But having done that, the form has access to them, so it behaves just as you want it to. You can daisy-chain like that as many times as you need to and the form will still receive the variables.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the features I built into the Universal Contact Form last night is source tracking. This is Direct Marketing 101 &#8212; know where your efforts are producing the best returns. So to invoke the form with source-tracking, you would just do this: http:\/\/www.domain.com\/UniversalContactForm.php?source=CLad2 In this case, we&#8217;re assuming that the source of the click [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[212,6,5,19],"tags":[],"class_list":{"0":"post-7240","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-flourishing","7":"category-marketing","8":"category-real-estate","9":"category-technology","11":"no-featured-image"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":7223,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/7223\/building-an-even-more-universal-universal-contact-form\/","url_meta":{"origin":7240,"position":0},"title":"Building an even more universal Universal Contact Form","author":"Greg Swann","date":"March 1, 2009","format":false,"excerpt":"I've talked before about the idea of a software universe -- where the set of actions possible in a given software configuration is so large that you can come up with tools and techniques never anticipated by the developers. We went through this last fall when we started playing with\u2026","rel":"","context":"In &quot;Flourishing&quot;","block_context":{"text":"Flourishing","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/flourishing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":13435,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/13435\/looking-for-a-treat-that-will-really-do-the-trick-achieve-your-goals-by-tracking-your-performance\/","url_meta":{"origin":7240,"position":1},"title":"Looking for a treat that will really do the trick? Achieve your goals by tracking your performance.","author":"Greg Swann","date":"October 31, 2010","format":false,"excerpt":"That's a big \"Duh!\" -- isn't it? Here's a calendar for November. I'll talk about my October tonight or tomorrow. Meanwhile, here's a good looking cat for Halloween:","rel":"","context":"In &quot;Egoism in Action&quot;","block_context":{"text":"Egoism in Action","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/egoism-in-action\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7016,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/7016\/whats-the-best-way-to-deliver-the-heap-specific-universal-contact-form-with-a-heap-specific-form-of-course\/","url_meta":{"origin":7240,"position":2},"title":"What&#8217;s the best way to deliver the Heap-specific universal contact form? With a Heap-specific form, of course.","author":"Greg Swann","date":"February 20, 2009","format":false,"excerpt":"I'm not too dumb, I'm sure. Just dumb enough. When I released the Heap-specific version of the universal contact form, for some reason it didn't occur to me that I could build a version of the form to deliver the product. This omission I do hereby correct: If you want\u2026","rel":"","context":"In &quot;Flourishing&quot;","block_context":{"text":"Flourishing","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/flourishing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6934,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/6934\/a-big-heap-of-heap-goodness-revising-my-universal-contact-form-to-create-heap-records-assigning-initial-drip-campaigns-to-them\/","url_meta":{"origin":7240,"position":3},"title":"A big heap of Heap goodness: Revising my universal contact form to create Heap records, assigning initial drip campaigns to them","author":"Greg Swann","date":"February 17, 2009","format":false,"excerpt":"I've rebuilt my universal contact form to be Heap-friendly. Now, in addition to emailing you and the prospect with a quick follow-up, as well as optionally epaging you, the form will also optionally create a new Heap lead with the contact information and with the name of an initial drip\u2026","rel":"","context":"In &quot;Marketing&quot;","block_context":{"text":"Marketing","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/marketing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4192,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/4192\/tech-talk-chrome-a-theoretical-mactablet-session-tracking-and-a-cheap-and-reliable-phone-based-amanuensis-is-that-too-much-to-ask\/","url_meta":{"origin":7240,"position":4},"title":"Tech talk: Chrome, a theoretical MacTablet, session tracking and a cheap and reliable phone-based amanuensis &#8212; is that too much to ask?","author":"Greg Swann","date":"September 2, 2008","format":false,"excerpt":"Chrome: Yawn. Firefox, OTOH, is coming along nicely. I now run it side-by-side with Safari on my Mac. Safari is still my fave, but I don't rail at Firefox like I used to. The user interface of the iPhone is actually a hugely subversive paradigm shift in computer design: Tapping,\u2026","rel":"","context":"In &quot;Marketing&quot;","block_context":{"text":"Marketing","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/marketing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1144,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/1144\/the-mls-from-the-inside\/","url_meta":{"origin":7240,"position":5},"title":"The MLS &#8212; from the inside . . .","author":"Greg Swann","date":"March 14, 2007","format":false,"excerpt":"FBS Blog. It's brand new, but if you care about tracking MLS tech topics from the vendor side of the table, subscribe to the feed and see what emerges... Technorati Tags: disintermediation, real estate, real estate marketing","rel":"","context":"In &quot;Disintermediation&quot;","block_context":{"text":"Disintermediation","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/disintermediation\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts\/7240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/comments?post=7240"}],"version-history":[{"count":6,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts\/7240\/revisions"}],"predecessor-version":[{"id":7246,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts\/7240\/revisions\/7246"}],"wp:attachment":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/media?parent=7240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/categories?post=7240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/tags?post=7240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}