Welcome to the archive of the old FlatPress support forum. Browse more than a decade of FlatPress wisdom! Login is disabled.

The current FlatPress support forum is available here: forum.flatpress.org
google analytics with Flatpress ?
  • Hi Community, i tried to implement google-analytics-code into a Flatpress-Installation. When inserting the provided code to the footer - exactly before the [/body]-Tag, it will result in an error-message on the site, saying "Fatal error: Smarty error: [in footer.tpl line 29]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590) in /mnt/web5/41/86/51071086/htdocs/hintertuxingen/fp-includes/smarty/Smarty.class.php on line 1095" Is google-analytics impossible with Flatpress because of the smarty-Engine ? Another stupid question, presented by... Martin
  • I found a solution myself, and here it is in hope it will help others: Copy the google code to an external file called 'analytics.js' and upload it to your server. Then place the follwing code behind the [/body]-tag of footer.tpl: