Welcome Guest, Not a member yet? Register   Sign In
Google Analytics Dashboard Module (v2)
#51

[eluser]Binod Kumar Luitel[/eluser]
[quote author="dan.tdr" date="1289355392"]Hey, first of all let congrats for this great application, i stumbled apon it while doing a search for google analytics script for codeigniter.
But it seems that i have some problems with it. I installed the application on my local server and it worked perfectly when accessed from http://localhost/ga/ but when i accessed it from my ip http://***.***.***.***/ga/ it kept on loading and did not get any data, or returned any error.
I don`t know if i maybe missing any requirements or file permission ( maybe some files need 0777 permission ) or anything else, the fact is that i can run the application on my local server but not on the web so i was wandering if maybe you could give me some help with this[/quote]

Open your config.php file
Change: $config['base_url'] = "http://localhost/ga";
to: $config['base_url'] = "http://".$_SERVER['HTTP_HOST']."/ga";

I guess this will solve your problem.

Cheers!!! to this beautiful piece of work.
#52

[eluser]Dan Tdr[/eluser]
yeah thanks, i talked with freshface and he mentioned that the script is not cross domain, but my main problem was that i changed all the resources paths and i did not copyed and changed the code for the "cacert.pem" file, so that was the main problem and the cross domain one which i had already fixed, once again great plugin
#53

[eluser]SitesByJoe[/eluser]
Looking forward to trying this out!!! Looks really good!
#54

[eluser]seth.aldridge[/eluser]
Quick question. I have the stand-alone version working, but when I try to port it over it's not updating the chart and the stats. I've gone through the code and I think I've narrowed my issue down to the fact that in your JS you are passing the parameters as a POST.

Example:
http://localhost:8888/CI2/index.php/dash...ga:2859255

However, CI by default doesn't allow these types of parameters and I'm being taken to my 404 page rather than the page that displays the text results in the gray boxes. How do I allow these parameters? I've been trying to locate the section in your code, but can't seem to locate it.

Thanks!
#55

[eluser]Joures[/eluser]
How would one go about implementing this into an
existing project? I've tried several times and gotten
different results. First time it threw a 500 at me,
last time it just keeps on loading.

Just to clarify a bit, it's the JavaScript that's giving me that
500, it's the ajax call to the analytics_profiles function.
Any ideas as to why this works in the standalone version but not in
my own project?
#56

[eluser]srpurdy[/eluser]
This is cool, but I'm having problems getting it to work under php,fastcgi module. It works perfectly in apache module. But not in fastcgi. Does anyone know why this would not work with fastcgi?

I'm using php 5.3.5

At this point I'm not sure if it's a server configuration issue. Or if it's something in the code.

In Fastcgi it just never loads. It says loading forever, and no errors in the error log. So it's really impossible to debug when I don't even get an error.

Any thoughts?
#57

[eluser]srpurdy[/eluser]
[quote author="srpurdy" date="1299458788"]This is cool, but I'm having problems getting it to work under php,fastcgi module. It works perfectly in apache module. But not in fastcgi. Does anyone know why this would not work with fastcgi?

I'm using php 5.3.5

At this point I'm not sure if it's a server configuration issue. Or if it's something in the code.

In Fastcgi it just never loads. It says loading forever, and no errors in the error log. So it's really impossible to debug when I don't even get an error.

Any thoughts?[/quote]

Finally solved this for anyone else running a vps
php.ini
cgi.fix_path_info=0

should be
cgi.fix_path_info=1
#58

[eluser]redlogic[/eluser]
Excellent work, thanks you!
#59

[eluser]redlogic[/eluser]
Excellent work, thank you!
#60

[eluser]garrettgjb[/eluser]
Having a weird problem. It worked for a few weeks but it's stopped working in all browsers. Havent changed any settings.

Part of my log:

[10-Jul-2011 23:04:38] PHP Fatal error: Uncaught exception 'Exception' with message 'Access denied (403) url:/accounts/ClientLogin'
thrown in /testing/application/libraries/analytics.php on line 385


Any ideas?




Theme © iAndrew 2016 - Forum software by © MyBB