We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New accessory: CP Analytics

Development and Programming

Derek Hogue's avatar
Derek Hogue
317 posts
16 years ago
Derek Hogue's avatar Derek Hogue

Hey all - I just released the EE2 accessory version of my Google Analytics Panel extension, and it’s called CP Analytics.

CP Analytics is an accessory which displays an overview of your site’s Google Analytics statistics. It displays quick stats for Today and Yesterday (visits, pageviews, average pageviews per visit, and average visit length), with increased stats for the past 31 days (visits, pageviews, average pageviews per visit, average visit length, bounce rate, percentage of new visits, top content and top referrers). The 31-day stats also include sparklines to visualize site activity.

Download it from GitHub

       
esset's avatar
esset
191 posts
16 years ago
esset's avatar esset

This is great, thanks!

Question: Since this is an accessory will it make the request to google on every pageload?

       
Derek Hogue's avatar
Derek Hogue
317 posts
16 years ago
Derek Hogue's avatar Derek Hogue
Question: Since this is an accessory will it make the request to google on every pageload?

Nope - it uses hourly caching for the “today” stats, and daily caching for the rest.

       
esset's avatar
esset
191 posts
16 years ago
esset's avatar esset

Code rockstar 😊

       
TinyBrands's avatar
TinyBrands
23 posts
16 years ago
TinyBrands's avatar TinyBrands

I followed the instructions to install cp_analytics, but when I go to add-ons>accessories, I get a blank screen with no error messages. i am running EE 2.0 build 20091211. Everything else on the CP continues to function properly.

       
Derek Hogue's avatar
Derek Hogue
317 posts
16 years ago
Derek Hogue's avatar Derek Hogue

My assumption is that you’re on PHP 4. CP Analytics requires PHP 5.

       
TinyBrands's avatar
TinyBrands
23 posts
16 years ago
TinyBrands's avatar TinyBrands

I thought that also, but I’m on Mediatemple Grid Service, and just double checked, I’m running PHP 5. Thanks for the quick reply by the way.

       
Derek Hogue's avatar
Derek Hogue
317 posts
16 years ago
Derek Hogue's avatar Derek Hogue

Hmm, I’d suggest upgrading to the current EE build, as it was developed using 2.0.1, so I can’t attest to 2.0.0 compatibility.

       
TinyBrands's avatar
TinyBrands
23 posts
16 years ago
TinyBrands's avatar TinyBrands

Yup, that did it. thanks!

       
Hendrik Dacquin's avatar
Hendrik Dacquin
3 posts
16 years ago
Hendrik Dacquin's avatar Hendrik Dacquin

Have PHP 5 (incl. Fast CGI) on dreamhost server and after puting cp_analytics in third parties folder it is not showing up in accesories menu. Using latest pb build.

hendrik

       
Carlo Laitano's avatar
Carlo Laitano
99 posts
16 years ago
Carlo Laitano's avatar Carlo Laitano

I’m running the latest EE build, PHP5, all in Media Temple. When I try to access the settings page (from the accesory tab link) I get this message:

“An Error Was Encountered You are not authorized to access this page”

Any idea on how to fix this?

       
Derek Hogue's avatar
Derek Hogue
317 posts
16 years ago
Derek Hogue's avatar Derek Hogue

Carlo - can you access the settings from the Extensions screen?

       
Carlo Laitano's avatar
Carlo Laitano
99 posts
16 years ago
Carlo Laitano's avatar Carlo Laitano

D-rock,

When I first posted this the “settings” link was disabled. Somehow now that I opened the Extensions screen the link is available and I was able to input my Google Analytics info. Great work with this!

I tried it with the default theme and it looks great! Is there anyway to change the CSS that is used when using Corporate theme? I know it matches the accessories panel that comes with the theme.. but still looks odd.

       
Derek Hogue's avatar
Derek Hogue
317 posts
16 years ago
Derek Hogue's avatar Derek Hogue
I tried it with the default theme and it looks great! Is there anyway to change the CSS that is used when using Corporate theme?

Best I can tell, there’s no way to detect the active theme in the admin, but I didn’t spend much time digging to be honest. If I can find a way, then I’ll see about loading an alternate stylesheet based on theme. I thought about adding a setting for “light” or “dark” themes, but since the theme setting is per-user (whereas extension settings are per-site), this isn’t of much help.

Feel free to modify the CSS yourself though!

       
Pontus's avatar
Pontus
3 posts
16 years ago
Pontus's avatar Pontus

Hey,

Loved your plugin and using it on a few 1.6.8 installs. I get the “An Error Was Encountered You are not authorized to access this page” When trying to set this one up though (like in a previous post). Settings from the extensions tab isn’t linked either to anything. Running 2.0.1pb01. Any ideas ?

       
1 2 3

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.