WordPress plugin: What Would Seth Godin Do
Seth Godin advocates using cookies to distinguish between new and returning visitors to your site:
One opportunity that’s underused is the idea of using cookies to treat returning visitors differently than newbies. It’s more work at first, but it can offer two experiences to two different sorts of people. (Source: In the Middle, Starting)
I built this WordPress plugin to implement Seth Godin’s idea. For WordPress users it reduces the “work at first” to almost nothing. Installation is simple:
- Download the WWSGD WordPress plugin and unzip it.
- Copy
what_would_seth_godin_do.phpto your WordPress plugins folder. - Activate the plugin in the Plugins area.
- Customize settings in the Settings area.
By default, new visitors to your blog will see a small box above each post containing the words “If you’re new here, you may want to subscribe to my RSS feed. Thanks for visiting!” After 5 visits the message disappears. You can customize this message, its lifespan, and its location.
This plugin requires cookies. Users without support for cookies will always see the new visitor message. It has been tested with WordPress 2.0 – 2.7.1, but it may work with earlier versions.
New visitors will appreciate some context and background information about your site. This is your chance to offer them a special welcome and invite them to become permanent subscribers!
DOWNLOAD the What Would Seth Godin Do WordPress plugin (v 1.7)
I can be reached at richard AT richardkmiller DOT com. I appreciate comments and suggestions.
FOR OTHER PLATFORMS:
(I have not tested these.)
- WWSGD for Drupal by Richard Eriksson
- WWSGD for Blogger/Blogspot by Harley Pebley
- WWSGD for Joomla by Nicholas K. Dionysopoulos
If you want to be notified the next time I write something, sign up for email alerts or subscribe to the RSS feed. Thanks for reading.
December 12th, 2006 at 1:25 pm
Having the box on every post of the main page is a bit… scary!
December 12th, 2006 at 1:50 pm
December 12th, 2006 at 2:17 pm
December 12th, 2006 at 4:02 pm
December 13th, 2006 at 7:58 am
December 13th, 2006 at 10:32 pm
December 19th, 2006 at 3:52 pm
(adding you to list of people I talk to about plugin ideas)
December 19th, 2006 at 9:00 pm
I think I’ve found one more feed to add to the reader. Thanks
January 2nd, 2007 at 9:50 am
January 2nd, 2007 at 10:19 pm
February 8th, 2007 at 3:54 pm
February 8th, 2007 at 3:59 pm
February 9th, 2007 at 10:29 am
Regards,
Jean
February 9th, 2007 at 10:01 pm
Thank you for such a wonderful plugin. I tried it with WP 2.1 and it worked on most pages.
On pages that use the Comment Analysis plugin:
http://www.lambic.co.uk/blog/wordpress-plugins/
I see the following error message at the top [I have removed the path urls]:
Warning: Cannot modify header information – headers already sent in what_would_seth_godin_do.php on line 86
The page does load, but with the above message at the very top. I am not sure if this issue is because of a conflict with the Comment Analysis plugin or with WP 2.1 itself. Just wanted to let you know.
Thanks again for releasing this plugin.
February 10th, 2007 at 2:29 pm
Thanks for your comment. The problem may be extra blank lines in the plugin outside of the < ?php ?> tags. I don’t think the plugin has any extra blank lines but they may have been inadvertently inserted when you put the plugin on your site. You can open the plugin file with a text editor and make sure there are no blank lines at the beginning of the file before “< ?php" or at the end of the file after the "?>“.
February 14th, 2007 at 12:28 pm
Thanks for the explanation. I just tried it and removed the spaces and unfortunately the same error still shows at the top.
February 16th, 2007 at 3:14 am
Thanks…
February 16th, 2007 at 3:08 pm
I didn’t read all the comments, but what about if the newcomer lands on an individual post, say from a Google search?
Is there any way to show the caption there also?
February 16th, 2007 at 3:17 pm
Yes, this plugin also works for individual posts in addition to the home page.
February 25th, 2007 at 9:48 am
March 3rd, 2007 at 6:40 pm
Check it out on okdork.com
March 14th, 2007 at 9:11 pm
IMHO, it would make more sense to have it appear (1) on individual post pages when people open them (which means they have sufficient interest to justify sending them the incitement to subscribe) and possibly also (2) at the top of the home page (but once only).
March 14th, 2007 at 11:40 pm
These are fair suggestions. I don’t have a next version planned yet, but these would be good features. Thanks.
March 22nd, 2007 at 2:18 pm
Kind regards,
- Avi
March 23rd, 2007 at 5:36 pm
March 25th, 2007 at 6:30 pm
March 26th, 2007 at 12:03 am
March 27th, 2007 at 11:23 am
is there a way to display it above the title of the post rather than above the content?
thanks so much for writing this!
March 29th, 2007 at 10:35 pm
I’ll see what I can do about limiting the notice to one post only. That will be in the next version.
@Ben Klinger
Thanks. I don’t think the WordPress API offers a way to put the notice above the title. The notice gets lumped in with the content, either before or after it.
April 6th, 2007 at 5:07 am
April 10th, 2007 at 3:06 am
April 12th, 2007 at 2:18 pm
April 21st, 2007 at 5:47 am
May 9th, 2007 at 12:59 pm
This has to be one of my new favorite plugins for wordpress.
Thanks for sharing
May 9th, 2007 at 4:11 pm
May 12th, 2007 at 12:15 am
July 6th, 2007 at 11:55 am
July 7th, 2007 at 9:15 pm
Thanks Richard
July 9th, 2007 at 10:47 pm
I installed your plugin and everything works fine except one thing. The link for the rss feed gives a 404 ‘not found’ error.
The rss link from the built in cutline chicklet works fine, it links to “http://kenstech.com/blog/index.php/feed/”
I went in and edited the plugin so that the line in the href that read “.get_option(’home’).”/index.php/feed/ ” was replaced with the above hard coded link directly to my feed.
This unfortunately did not work. Even though I edited the plugin, the link still shows up without the “index.php” bit between the “/blog/” and “/feed/” in the path.
This makes no sense to me since I changed the path. Yet it still shows the old path and still gives me the 404.
I hope this isn’t too confusing. Any help would be appreciated.
Ken Steen
July 9th, 2007 at 11:26 pm
Never mind….
I feel like an idiot. I figured it out, thanks anyway.
Ken
July 10th, 2007 at 7:01 am
July 21st, 2007 at 9:00 am
Out of curiosity, who has the best custom message that has increased RSS subs and comments?
Thanks
A Grandiose Blog – Cocktails, Gadgets & More …
July 21st, 2007 at 10:24 am
July 22nd, 2007 at 10:48 am
The plugin works great on IE 7 (couldn’t test it under IE6), but under Firefox the welcome message is always getting displayed. It just won’t go away though cookies are turned on. When I took a look at the FF cookies for my blog I couldn’t find “wwsgd_visits” there.
Any suggestions? Does this only happen to me or is this a known bug/issue? Maybe it’s my fault, but I just can’t figure out where I could have gone wrong… :-/
July 22nd, 2007 at 10:52 am
July 22nd, 2007 at 11:36 pm
Any body please help..
Thanks in advance..
July 23rd, 2007 at 7:14 pm
satest: The 404 error above seemed to be resolved in the following comment. Any luck with your site?
July 23rd, 2007 at 8:21 pm
Hopefully, the Googlebot is also able to store cookies (?), so the message won’t be displayed after the first 3 times it crawls the site’s content.
July 24th, 2007 at 5:31 am
I set the .htaccess file as
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
Still it does not work.
Thanks.
July 24th, 2007 at 9:31 am
July 25th, 2007 at 12:25 am
which is a: application/x-httpd-php
from: http://...
What would firefox do with this file?
open
save to disk
Many thanks for your valuable response..
July 25th, 2007 at 7:38 am
July 25th, 2007 at 8:58 am
thx
fatman
Not Found
The requested URL /fmblog/feed/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at fatmanmelts.com Port 80
July 26th, 2007 at 8:25 am
I love your plugin. BUT:
I am having problem using it with the hebrew language (utf-8, right to left).
Could a fix to that be implemented into the plugin ?
thanks,
Tal.
July 26th, 2007 at 8:52 am
I was using the year/month/day type permalink.
I just switched the permalink structure to the default one and now, it works fine with
/blog/?feed=rss2 link
But, the mystery is that it worked earlier for me even with the latter permalink structure.
I have added some themes and plugins newly. I doubt that some files in root and wp-includes folder is created by the plugins and may be creating some problems.
July 26th, 2007 at 11:31 pm
Tal: How does the plugin misbehave when enabled on your blog? I’d like to ensure it works for R-to-L languages too, so I appreciate your feedback.
July 27th, 2007 at 12:38 am
The number of times I want it to show to visitors (example #3) will show up in the message box and that’s it. No message.
Perhaps I did something to the code. I even tried deleting it and re-installing it. But the same thing. I’m on wordpress 2.2.1, using the firefox browser.
Thanks so much – I can’t wait to get it to work!
July 30th, 2007 at 4:10 am
August 9th, 2007 at 5:58 am
What a great plugin, you should be charging for this, Really!
(Of course after I download my copy
All The Best,
Steve
August 9th, 2007 at 12:38 pm
August 11th, 2007 at 9:33 am
August 14th, 2007 at 10:45 am
Nice plug in, i installed it on my word press 2.2 blog with no problems, check it out dude, at http://my-ad-sense.com
September 11th, 2007 at 9:46 am
If you’re new here, you may want to subscribe to my RSS feed. This would mean that you’ll never miss a post! Thanks for visiting! SeanA brilliant Wordpress plugin I’ve come across lately is “What Would Seth Godin Do?”
This plugi…
September 25th, 2007 at 4:36 am
I think you could modify the plugin putting conditional tags if the surfer is human or a bot. If it is a bot the plugin doesn’t show the sentence otherwise it shows.
September 25th, 2007 at 9:27 pm
September 28th, 2007 at 1:51 am
Obviously, it does nothing for people who hit the site direct or who come from a link on another site, but I figured that organic SE traffic is the most transient so catching the attention of those visitors probably works best. Sciencebase.com had 2745 RSS subscribers and 1000 Yahoo Group members last time I checked my stats, so something must be working.
db
September 28th, 2007 at 12:36 pm
Could you please help?
I’m having the same problem as Comment 57 from Lisa in that whatever I do to edit the message, when I update it, the message is cleared and the number of Occurrences appears where the message should be. I cannot find a solution in the comments.
I have Deactivated, reinstalled, cleared cookies and tried whatever I can think of – no joy.
Question – where is the text stored? Perhaps I can update it manually.
Many thanks
Michael
September 29th, 2007 at 1:12 am
Also relevant is that after Deactivating, deleting the plugin file and re-uploading the original file, then Activating, the original message is not re-instated. The only message that appears is the previously entered number of occurrences.
All very strange.
September 29th, 2007 at 12:03 pm
Michael (#66): Sorry to hear of your troubles with the plugin. The plugin stores the message and number of times to display the message using the WordPress get_option() and update_option() functions. In the database, they’re stored in the “wp_options” table in the “wwsgd_settings” row. Perhaps by deleting that row (and only that row) you can reset the plugin to work properly. (Please don’t attempt if you’re not comfortable with that.) If that doesn’t work, please email me at richard AT this domain.
September 29th, 2007 at 6:47 pm
Worked like a charm! Thank you so much.
The problem was that there were invalid characters in the database row because I copied and pasted my message. MySQL obviously doesn’t know how to handle this. Tut, tut.
You might want to include a note to this effect in your Installation Notes. You might also want to ‘SEO’ your plugin name for the search term ‘first time visitor’.
A brilliant, brilliant plugin. Thank you so much for providing it, and for your support in answering my question. Much appreciated.
Be well, be bad, stay sane.
Maybe I shouldn’t say that… after reading your beliefs
September 30th, 2007 at 11:36 pm
I like the idea but I am having trouble stopping Seth doing his thing. I have kept the default setting to 3 but it keeps popping up for me every time. I have checked the cookie and it shows 8 – and adds one every visit.
Could it be because it is my own blog? Or will everyone see the message every time?
Thanks
October 5th, 2007 at 2:34 pm
just thought you might want to know.
thanks,
// Ed
October 8th, 2007 at 8:59 pm
October 9th, 2007 at 9:01 am
Great plugin, have been using it for a while now! Was wondering though if there was a way to make it invisible to the search engine robots? When I look at my site’s cached pages, I noticed that it’s on all of them. Any way to stop that???
Thanks!
October 9th, 2007 at 9:41 pm
October 12th, 2007 at 3:46 am
Thnx
Billy
October 14th, 2007 at 3:52 am
Dave
October 16th, 2007 at 7:31 am
October 23rd, 2007 at 3:32 pm
December 3rd, 2007 at 6:30 am
December 4th, 2007 at 6:56 pm
December 6th, 2007 at 9:18 pm
What a creative plug-in. I want to use it at the top of the post, but somehow it grabs the first URL that is contained in the post and overwrites the feed URL in the pop-up.
Very weird. It does not do that on the bottom of the post.
Any thoughts?
December 8th, 2007 at 3:12 pm
December 18th, 2007 at 8:07 am
December 20th, 2007 at 4:12 pm
December 23rd, 2007 at 12:05 am
January 26th, 2008 at 12:56 pm
“Warning: Cannot modify header information – headers already sent by (output started at /path_to_plugins/dd-sitemap-gen/lang/Swedish.php:1) in /path_to_plugins/what_would_seth_godin_do.php on line 91″
It’s always line 91 in what_would_seth_godin_do.php that is mentioned. This is a really, really annoying problem and really causes some serious problems.
Any proposal to a solution? I’ve already removed any extra line breaks after the php tags in the plugins.
February 3rd, 2008 at 11:49 am
February 5th, 2008 at 8:34 am
February 6th, 2008 at 7:42 am
February 6th, 2008 at 2:00 pm
February 9th, 2008 at 1:04 am
Z
February 9th, 2008 at 5:48 pm
February 11th, 2008 at 5:01 pm
I love your WWSGD? plugin, but I’ve come across an issue I can’t figure out.
I remember when I first downloaded the plugin (I don’t think it was from this site, but from a WP plugin site that listed it), there were comments asking if it could be used outside of posts. The response was that it couldn’t.
Well, I found a way to. I inserted a line of PHP code in the index.php file of my template that did several things all in one line:
1. It included an If statement to check the number of visits — the same statement from the plugin.
2. It used an echo statement to create a named div.
3. It used the echo statement to append the function $wwsgd_settings['new_visitor_message'] (taken from the plugin).
4. And it then appended the div close tag to the end of the echo statement.
And it worked. The rest of the plugin functioned normally. I just called the output function from a different location.
I commented out the add_filter function in the plugin, since I was calling the output from a different location.
However, it doesn’t appear to work in IE6. I’ve set my “repetition” to 4 visits. But even after twenty page views, the message still appears. Meanwhile, it works like a charm in Firefox.
Thinking that it might be because IE didn’t recognize my PHP workaround in the index file, I removed the comment brackets from the plugin file, so that the message would reappear within the individual posts.
In Firefox, it worked normally. The message showed up in the posts, then disappeared on the 5th visit. However, in IE6, nothing changed. Even with the plugin functioning normally (i.e., without my hack), the message shows up in the post and never leaves.
So I’m wondering if there could be some incompatibility between WWSGD? and IE6? And if so, have you already seen this, and do you have a solution?
I’d appreciate your help. I’m a big fan of the plugin, and want to make it work as advertised for all of my readers.
Thanks!
February 11th, 2008 at 5:21 pm
I deleted my cookies in IE, and started all over, and voila — it worked exactly as expected!
So, no worries. Nothing wrong with your plugin at all. It was an IE problem… isn’t it always?
My current blurb includes a parenthetical stating that the welcome message should disappear after 4 page views. I think I’ll turn that into a link, to a page which will inform readers that if it doesn’t go away, they should delete their cookies.
Thanks for the great plugin! You can see it at work at http://www.respectkobe.com.
February 14th, 2008 at 4:04 pm
Thanks.
February 17th, 2008 at 2:59 am
So, in original “blog-type” themes plugin works perfectly. But in “magazine-style” (custom home.php) this small box not shows. What code I must put in my home.php to show small box in custom place on the page?
February 22nd, 2008 at 9:10 am
February 26th, 2008 at 12:24 pm
February 27th, 2008 at 7:22 pm
I’ve been trying to get a hold of Tucker but I can’t find an email or another way to contact him on his site.
Anyone else (or Tucker if you read this) that could tell me what to do in order to do what Tucker did? I’m not a php coder but my copy/paste skills are excellent!
March 1st, 2008 at 11:34 pm
March 10th, 2008 at 6:01 am
March 14th, 2008 at 4:40 am
March 15th, 2008 at 12:23 pm
March 16th, 2008 at 1:40 am
March 17th, 2008 at 12:48 am
March 18th, 2008 at 6:10 pm
March 18th, 2008 at 10:46 pm
March 26th, 2008 at 8:05 am
March 26th, 2008 at 9:41 pm
March 27th, 2008 at 5:29 am
April 5th, 2008 at 8:05 pm
setcookie(’wwsgd_visits’, $wwsgd_visits, time()+60*60*24*365);
April 21st, 2008 at 8:34 am
How does one change the plugin so it points to a Feedburner feed instead of the site’s own feed?
Thanks.
April 21st, 2008 at 8:45 pm
If you’re familiar with HTML, you can change the link in the WWSGD settings to a FeedBurner link.
However, it may be easier to use the FeedBurner plugin to automatically redirect traffic for your feed to FeedBurner:
http://www.google.com/support/feedburner/bin/answer.py?answer=78483&topic=13252
April 22nd, 2008 at 9:46 am
April 22nd, 2008 at 1:00 pm
Okay, thanks.
April 22nd, 2008 at 11:10 pm
April 23rd, 2008 at 1:33 am
Many Thanks
May 22nd, 2008 at 5:33 am
May 22nd, 2008 at 9:50 pm
May 22nd, 2008 at 10:50 pm
May 24th, 2008 at 3:42 am
Excellent wonderful plugin, thanks so much for making it!
Question – do you know of anything similar that might work for blogs at eBay?
Thanks!
barbara
May 25th, 2008 at 6:45 am
May 27th, 2008 at 12:30 pm
May 28th, 2008 at 12:43 pm
May 31st, 2008 at 3:20 pm
I’ve tried to insert the message a lot of times, but still doesn’t work.
What can I do?
Thanks.
June 10th, 2008 at 9:42 pm
Jorge: Please download the latest version of this plugin (version 1.5, updated tonight) and try the “Reset Settings” button. This may clear up the issue you’re having.
June 12th, 2008 at 2:13 pm
June 14th, 2008 at 6:23 am