{"id":1674,"date":"2007-07-19T00:41:58","date_gmt":"2007-07-19T07:41:58","guid":{"rendered":"http:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/?p=1674"},"modified":"2007-07-19T00:44:51","modified_gmt":"2007-07-19T07:44:51","slug":"have-another-cookie-targeting-content-to-two-different-kinds-of-first-time-visitors-to-a-wordpressorg-weblog","status":"publish","type":"post","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/1674\/have-another-cookie-targeting-content-to-two-different-kinds-of-first-time-visitors-to-a-wordpressorg-weblog\/","title":{"rendered":"Have another cookie? Targeting content to two different kinds of first-time visitors to a WordPress.org weblog"},"content":{"rendered":"<p><a href=\"http:\/\/www.raincityguide.com\/2007\/07\/17\/landing-on-long-term-value\/\" target=\"_blank\">Dustin had a post last night<\/a> that made me rethink <a href=\"http:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/?p=1664\" target=\"_blank\">the ideas I posted the other day<\/a> on using a cookie to modify a WordPress.org weblog&#8217;s default behavior for first-time visitors.<\/p>\n<p>Clear as mud?<\/p>\n<p>Starting with version 2.0, WordPress introduced the idea of an optional intro.php file that would be a sticky first post. In other words, the file, truly a pseudo-post, could be shown first to every reader who landed on the top-level page of the weblog. That way, you can do all your welcoming house-keeping with new users.<\/p>\n<p>Too cool. What&#8217;s the problem? Most people showing up at your weblog are not new users, so you&#8217;re going to hammer that intro.php nail into their heads again and again.<\/p>\n<p>And Dustin raised another problem: Many people arriving at your weblog for the first time will be coming in from search engines, from your RSS feed or from deep links on other sites. Those folks are never going to see intro.php, because they won&#8217;t enter the weblog from the top level.<\/p>\n<p>The code I wrote the other day solved both of these problems, but with a one-size-fits-all solution. What if you want to issue a special introduction <i>only<\/i> to top-level first-time visitors? What if you want to address <i>only<\/i> those people coming in via deep links into your weblog? What if you want to say something different to each type of visitor?<\/p>\n<p>I amended the code today to take account of these two different entry scenarios. Using this version you can have an intro.php file for people who enter your weblog for the first time through the front page. The cookie associated with that expires in 60 days, so that only people who have been away for a long while will see it more than once.<\/p>\n<p>You can also have another file called singlePostIntro.php (or whatever) for people who come in via a hard click from a search engine, an RSS feed or another web site. That cookie lasts for two weeks. The point is to address infrequent visitors who come in via deep links differently, in the hopes of persuading them to become subscribers.<\/p>\n<p>You can see this <a href=\"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/1674\/have-another-cookie-targeting-content-to-two-different-kinds-of-first-time-visitors-to-a-wordpressorg-weblog\/#more-1674\" class=\"more-link\">Read more<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dustin had a post last night that made me rethink the ideas I posted the other day on using a cookie to modify a WordPress.org weblog&#8217;s default behavior for first-time visitors. Clear as mud? Starting with version 2.0, WordPress introduced the idea of an optional intro.php file that would be a sticky first post. In [&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":[3,6,5,19],"tags":[],"class_list":{"0":"post-1674","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-blogging","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":3442,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/3442\/wordpress-for-iphone-application-released-overnight\/","url_meta":{"origin":1674,"position":0},"title":"WordPress for iPhone application released overnight","author":"Greg Swann","date":"July 22, 2008","format":false,"excerpt":"The Unofficial Apple Weblog. It's for posting only, but you should be able to handle most admin tasks from Safari. There are alt.themes out there that will reformat your weblog for the iPhone\/iTouch screen. I'll have more to say about these if we ever actually lay hands on a 3G\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1301,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/1301\/customizing-your-weblog-with-css-and-php-navigating-from-post-to-post\/","url_meta":{"origin":1674,"position":1},"title":"Customizing your weblog with CSS and PHP: Navigating from post to post","author":"Greg Swann","date":"April 13, 2007","format":false,"excerpt":"If you click on an individual post in BloodhoundBlog, you'll see something like this above the headline: The code for doing this is built into some themes, but not in the theme we're using. The PHP code for making it happen is actually pretty simple, you just have to plug\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5677,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/5677\/introducing-bloodhoundblognet-free-wordpress-weblogs-for-real-estate-professionals\/","url_meta":{"origin":1674,"position":2},"title":"Introducing BloodhoundBlog.net, free WordPress weblogs for real estate professionals","author":"Greg Swann","date":"November 17, 2008","format":false,"excerpt":"Say hello to BloodhoundBlog.net, free WordPress Multi-user weblogs for real estate professionals. We talked about doing this in Orlando, at the scenius on Swallow Hill Road. Where we started was with the idea of WordPress blogs for the CyberProfessionals to practice on. We saw that the right system could serve\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5959,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/5959\/speaking-in-tongues-revising-my-universal-contact-form-for-real-estate-weblogs-e-paging-support-and-friendlier-coding\/","url_meta":{"origin":1674,"position":3},"title":"Speaking in tongues: Revising my universal contact form for real estate weblogs &#8212; e-paging support and friendlier coding","author":"Greg Swann","date":"December 5, 2008","format":false,"excerpt":"About eleven months ago, I built a universal contact form for real estate webloggers. Just lately, I've revisited that code to add support for e-paging and other kinds of hyper-brief email-based messaging. Getting a form emailed to the office is a nice thing -- unless you're out previewing or inspecting\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5967,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/5967\/making-the-scenius-scene-im-prepared-to-share-an-entirely-new-style-of-blogging-with-you-but-you-have-to-hold-up-your-end\/","url_meta":{"origin":1674,"position":4},"title":"Making the Scenius scene: I&#8217;m prepared to share an entirely new style of blogging with you &#8212; but you have to hold up your end","author":"Greg Swann","date":"December 6, 2008","format":false,"excerpt":"I wrote last week about the Scenius blogs we've been playing with. The concepts we've developed constitute a new style of blogging, a hybrid of the best features of link-blogging and RSS feeds with much better control and with none of the defects. A Scenius blog called \u201cSwitched-On Marketing\u201d is\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6918,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/6918\/the-activerain-hokey-pokey-you-shoot-your-left-foot-off-you-shoot-your-right-foot-off-you-shoot-your-left-hand-off-and-then-you-present-the-audience-with-an-invoice\/","url_meta":{"origin":1674,"position":5},"title":"The ActiveRain hokey pokey: You shoot your left foot off, you shoot your right foot off, you shoot your left hand off &#8212; and then you present the audience with an invoice&#8230;","author":"Greg Swann","date":"February 16, 2009","format":false,"excerpt":"What costs $360 a year and puts you in touch with vast hordes of sweet people who cannot do business with you? Starting today, Active Rain will cost $30 a month for new members. That's a load of dough. If you want to host your own WordPress.org weblog, a perfectly\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts\/1674","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=1674"}],"version-history":[{"count":0,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts\/1674\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/media?parent=1674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/categories?post=1674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/tags?post=1674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}