Porting Plugins » Plugin gallery » Special:RecentChangesLinked » Plugin adminnotifier » Plugin googleanalytics
From LifeType Wiki
Name: Google Analytics
Download link: http://sourceforge.net/projects/lifetype/files/
License: GPL
Author: lss
Description
This plugin do 2 things.
1. It offers a settings page in blog settings. Blogger can fill in his _uacct code which can be finded in google analytics tracing code. 2. It offers a method call getJavascriptCode returning google analytics tracing code which can be add to template file.
Installation
Just unpack the pluing zip file to your lifetype plugins folder, then refresh browser in plugins center. You can find googleanalytics plugin installed.
Configuration
1. Enter admin page, goto control center -> Google Analytics. 2. Enable this plugin and fill in you _uacct code. You can find this code in google analytics tracing code.
Add template code blow to your header.template, just above </head> tag.
{if $googleanalytics}
{$googleanalytics->getJavascriptCode()}
{/if}
</head>
