Pagedata

« Previous image | Screenshots | Next image »

Shows an example of how the fetch / googleanalytics / pagedata function can be used to show statistics about an article.

Code:

{def $pagedata=fetch('googleanalytics', 'pagedata', hash( 'node_id', $module_result.node_id ) )}
{if $pagedata}

This page has been viewed {$pagedata.pageviews} times, for a total of {$pagedata.timeonpage} seconds !


{/if}