2017 © Pedro Peláez
 

elefant-app app-analytics

Google Analytics app for the Elefant CMS

image

elefant/app-analytics

Google Analytics app for the Elefant CMS

  • Tuesday, September 30, 2014
  • by jbroadway
  • Repository
  • 1 Watchers
  • 3 Stars
  • 34 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

This is a simple Google Analytics app written for the Elefant CMS. It embeds the Analytics code into pages, and allows the site admin to view basic stats through the Elefant admin toolbar., (*1)

Installation

To install, unzip it into your apps folder. You'll see "Analytics" appear in the Elefant Tools menu. Click on it to set your site ID and account info., (*2)

Next, add the following code to your layouts where you want the tracking code to appear (usually just before </body>):, (*3)

{! analytics/code !}

For extra speed you can tell Elefant to hard-code the Analytics code into the template so the app is only called when the template is first compiled. To do this, change the above embed code into the following:, (*4)

{# analytics/code #}

The one thing to be aware of is that if your site ID is updated in the future, the old code will be hard-coded in the compiled templates, so you'll need to recompile the layout templates. The Assetic app has a handy button to do this in a single click., (*5)

Screenshots

Admin stats screen:, (*6)

, (*7)

The Versions

30/09 2014

dev-master

9999999-dev

Google Analytics app for the Elefant CMS

  Sources   Download

MIT

The Requires

 

analytics app cms google traffic stats elefant

27/10 2012

1.0

1.0.0.0

Google Analytics app for the Elefant CMS

  Sources   Download

MIT

The Requires

 

analytics app cms google traffic stats elefant