I followed the tutorials to set a custom redirect in blogger using a static page and discovered that you can no longer navigate back to the ordinary blog. In fact, all the existing search engine references to your blog posts get lost. This isn't a great solution.
Importantly, if you simply redirect from the main address of your blog to your landing page, they will never be able to navigate to the blog itself. So this cookie creates a once-only solution unique to each visitor.
You can use the following piece of code to redirect new users of your Blogger blog to a customised static page. You need to copy and paste this code into the <head> section of your blogger template. You can do this by navigating through the Blogger control panel, Template, Customize HTML (guide here). When you are looking at the HTML, search for </head>, and paste the below code just before </head>.
Be sure to back up your custom html / template first, just in case something goes wrong.
Important: you need to change a few lines in the below code.
- var homepage_url = "http://www.paulodowd.com/";
- Change the web address here to the web address of your blog. This might be "http://www.myblog.blogger.com", or something similar.
- window.location = "http://www.paulodowd.com/p/paul-odowd.html";
- You need to change the web address here to the address where you want your user to end up. To create a landing page, use the Blogger control panel to set up a static page (tutorial here), and then use the URL you find in the address bar when you are on that static page.
You can test if this is working quite easily by opening up a Private Window in Firefox, or Incognito Window in Chrome, and navigating to your page. Cookies are automatically deleted when you close a private/incognito window.
The following pages might be useful resources if you want to develop the above code further:
- Blogger Cookie Notification information.