How to setup FeedBurner Stats on Drupal
The code that Feedburner provide is:
This code will work properly if placed in the Node.tpl.php file in your theme directory - which isn't a great option because
- It's hard to limit the roles that are tracked and
- It will only show on node pages and not any other system pages or views
- Not everyone has access to the theme files and wants to mess around with them
Here is the modified code that will work when placed in a block.
The code is by no means perfect but it does the job. If you are not using clean URLs (who isn't these days) you may want to add
?q= after yoursite.com/ otherwise the URLs in FeedBurner Stats won't match up correctly to the URLs on your site.