I've updated
the tutorial on my website for making a custom template so that it now works with the click-thru stats.
Note: This code is written for phpdig 1.8.3. If you have any questions or problems with the code, please post here in the forum. Thanks.