Feedburner trick

Feedburner Trick: Give Users a File AFTER They Subscribe

This post will show you how to give your visitors a free download AFTER they subscribe to your blog using Feedburner. If you follow my instructions I can guarantee that you will drastically increase the number of people who subscribe to your blog, just like I did. It’s actually quite simple, but feel free to ask me questions in the comment section below.

Keep in mind, my example uses WordPress; however, you should be able to apply this trick using any blogging platform or custom codedblog.

Before you get started, I do have one request. Please tweet this post so other people like you can enjoy this Feedburner trick.


Step 1: Create a “Confirm and Download” page

This step requires that you do (7) very simple things. I’ve listed them below and I have provided an image to guide you. Keep in mind that you can name this web page what ever you want. However, I suggest you read the entire post before you rename the page so you can fully understand the method of my madness.

  1. Add a short message in the body that reads something like this: “Click the link below to subscribe to our blog and download your free file”
  2. Then add a “Download Now” link below your message and edit the link as follows:
  3. Set the id attribute as id=”sub_link”
  4. Add a onclick=”frmsubmit()” function will push the free file to the browser for the new subscriber to download
  5. Make the href “javascript:;” since we will be assigning the Feedburner confirmation url dynamically
  6. Set the anchor tag to open in a new window (target=”_blank”)
  7. Copy the URL (you’ll it for step 2)

How To let users download a file using feedburner

Step 2: Make edits in feedburner.com

  1. Go to Publicize > Email Subscriptions > Communication Preferences
  2. Change the default confirmation link from ${confirmation} to: http://YourBlog.com/confirm-and-download/?url=${confirmation}
  3. To avoid confusion I also edited the email content to something like this

email

make sure you replace http://YourBlog.com/confirm-and-download/ with your url from step 1.

step-two

Step 3: Upload a your file

  1. Upload your free file, download, ebook, whatever 🙂
  2. Copy the URL of your file and save for step 5


Step 4: Add a snippet of code to header.php

  1. Open your header.php file (if you are using WordPress)
  2. Add or replace the below body tag below the closing ofhead tag. Don’t forget to edit your post ID. The post ID should be from the page you created in step 1.

<body <?php body_class(); ?> <?php if($post->ID == ‘554‘){ ?>onLoad=”urlAssign()”<?php } ?>>

5. Add a snippet of code to footer.php

Add the below snippet of code to footer.php. Make sure you change the post ID and the window.location URL to the url of your file.

—–start code——-

<?php if($post->ID == ‘554‘){ ?>
<script type=”text/javascript”>
function frmSubmit(){
window.location=”http://YourBlog.com/free-download.zip“;
}

function urlAssign(){
document.getElementById(‘sub_link’).href=document.getElementById(‘fb_url’).value;
}
</script>
<input type=”hidden” name=”fb_url” id=”fb_url” value=”<?php echo $_REQUEST[‘url’]; ?>” />
<?php } ?>

—–end code——-

That is it folks. Be sure to test and be sure to use your domain, post id and other content in the above example. Please let us know if you experience problems or flaws with this Feedburner trick. So far it has worked great for our blog. To see ours in action, look in the right column of any post on this blog and you will see our free download area.

Special thanks!

dilipI want to thank Dilp Srivastava for making this vision a reality. He coded this script, trouble shot it, and adjusted it until it worked perfectly. Thanks Dilip! You are one of the best developers I have ever worked with.