ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Google Analytics Dashboard Module (v2)

September 12, 2009 9:51am

Subscribe [40]
  • #16 / Sep 23, 2009 10:57am

    freshface

    131 posts

    New version is up and runnig.
    See first post for download link.

  • #17 / Oct 09, 2009 1:12pm

    Skinnpenal

    27 posts

    Looks very nice!

    Does it rely on parsing the html of analytics (making it easily breakable if google changes any output)?

  • #18 / Oct 10, 2009 10:02am

    Kimmik

    19 posts

    Hi, this looks great!
    I would like to add it to an existing codeigniter installation…

    Is this possible, and what files need to be replaced?

    Or can I just replace all files?

    (Sry, I’m a noob)

  • #19 / Oct 10, 2009 10:44am

    cahva

    662 posts

    Just tested this. Cool. You might want to add that this requires mod_curl extension to be installed/activated(its due to using https to send the username/passwd to google). Its not always obvious that mod_curl is active. It has had so many security holes in the past that its been swithced off many times on our servers to wait for a fix 😊

    EDIT: I checked the source and I see that there is a fallback if curl is not found. Atleast for me the fallback didnt work but thats just that I tested this on Wamp server and I didnt have https wrapper enabled. It works on production server no-problemo 😉

  • #20 / Oct 10, 2009 10:53am

    cahva

    662 posts

    Looks very nice!

    Does it rely on parsing the html of analytics (making it easily breakable if google changes any output)?

    I’m gonna answer on behalf of the author. No, it doesnt use the HTML output as that would be silly and foolish 😊 Google has API’s for almost all of their services that you can can fetch and return information in a decent form.

  • #21 / Oct 10, 2009 11:36am

    Neil Evans

    1403 posts

    i am really liking this… if you want a big take up, you should consider packaging it for ExpressionEngine. I was thinking this would be a lovely addon for it, and hence i cam searching here for some examples of how it has been used!
    Definitely saving your download to have a look for myself in the future.

  • #22 / Oct 10, 2009 12:25pm

    freshface

    131 posts

    Glad you guys like it.
    I dont use expression engine, but i will take a look on creating a module for it.

    Regards

  • #23 / Oct 10, 2009 12:46pm

    Neil Evans

    1403 posts

    the only reason i brought up EE, is that the EE CMS is going to be released soonish (launch date is going to be released soon i think) and it is entirely built on top of CI… As it is also run by EL which setup CI.

    No worries if not, and certainly no hurry, but when i get time, i will certainly work through your files to get an under standing!!!

  • #24 / Oct 10, 2009 7:33pm

    m&m

    1 posts

    Over 30+ downloads and no feedback 😉

    I’ve just been looking in GA API, because I need implement some customized reports for site built on CI and I found this module.

    I am really impressed because this is doing exactly what I need. I didn’t like Google Data Export API, because it’s seems to me that this is not 100% task for JS and in this case php is better solution.

    Well done 😉

  • #25 / Oct 12, 2009 2:55pm

    s0l1dsnak3123

    18 posts

    Very Nice.

  • #26 / Dec 03, 2009 2:19am

    michelw

    8 posts

    Hello,

    Nice future but for some reason it only works on Google Chrome AND NOT ON IE 8?
    Where to downlaod the latest version and maybe an older version to test?
    Does anyone know how to fix this problem?

    I am getting this error:


    Fatal error: Uncaught exception ‘Exception’ with message ‘Bad request (400) url: https://www.google.com/analytics/feeds/data?ids=&start;-date=2009-12-01&end;-date=2009-12-31&dimensions=ga:day&metrics=ga:visits&sort=ga:day’ in /home/vnhyr/domains/###.nl/public_html/ga_standalonev2/application/libraries/analytics.php:382 Stack trace: #0 /home/vnhyr/domains/###.nl/public_html/ga_standalonev2/application/libraries/analytics.php(128): analytics->getUrl(‘https://www.goo…’, Array, Array) #1 /home/vnhyr/domains/###.nl/public_html/ga_standalonev2/application/libraries/analytics.php(250): analytics->getXml(‘https://www.goo…’) #2 /home/vnhyr/domains/###.nl/public_html/ga_standalonev2/application/libraries/analytics.php(443): analytics->getData(Array) #3 /home/vnhyr/domains/###.nl/public_html/ga_standalonev2/application/controllers/dashboard.php(114): analytics->getVisitors() #4 /home/vnhyr/domains/###.nl/public_html/ga_standalonev2/application/cont in /home/vnhyr/domains/###.nl/public_html/ga_standalonev2/application/libraries/analytics.php on line 382


    p.s. I have changed the name of my domain name to ### in this error message!!

  • #27 / Dec 03, 2009 5:01pm

    freshface

    131 posts

    Hi michelw

    I uploaded a new version.
    I didn’t test it in IE8 but i wrote it in oldskool javascript so the result isn’t injected directly.
    I hope it works for you now.

    Download link http://www.figure8.be/file_download/14

  • #28 / Dec 04, 2009 2:52am

    raitucarp

    16 posts

    look like GA dashboard,

    umm, how about goal pages @freshface ??

  • #29 / Dec 04, 2009 9:23am

    michelw

    8 posts

    Sorry the new version will not work in IE 8.
    For some reason the browse script will not get the $(‘dashboard_profile_id’).value.

    In Google Chrome it will work so it has to be something within the javascript code IE 8 will not work with! Maybe it is possible to use a hardcoded option to set the Google dashboard_profile_id??

    When yoy add the hardcoded version of the profile_id the script does work in IE8!!

    Michel

  • #30 / Dec 04, 2009 10:01am

    freshface

    131 posts

    Why all the exclamation- and question marks?

    Indeed, when you hardcode the option menu it will work.
    The reason is that the result could not be ‘injected’ in dashboard_profile_id.

    I dont have IE8 so i could not test at the moment.
    If you or someone else could i will update my code.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases