Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph does not appear in CMS #3

Open
sminnee opened this issue Mar 31, 2012 · 11 comments
Open

Graph does not appear in CMS #3

sminnee opened this issue Mar 31, 2012 · 11 comments

Comments

@sminnee
Copy link
Member

sminnee commented Mar 31, 2012

From http://open.silverstripe.org/ticket/6864

Although the Google Analytics module is installed (and tracking is working properly when I sign in to Google Analytics directly), the graph does not appear in the CMS. I have renamed the folder name to googleanalytics (removed the version number) which solved the "Loading..." issue. However, all I get now is a white screen that says "Google Analytics", "Show:", and "Choose metrics to display." Nothing that I have tried so far has worked to fix this. I have even tried completely uninstalling (deleting the googleanalytics folder and all contents, commenting out the applicable lines in _config.php) and reinstalling the module; of course I did a /dev/build?flush=all, I also cleared my cookies and temporary internet files. No change.

Screenshot: http://open.silverstripe.org/attachment/ticket/6864/Google%20Analytics%20Module%20error.jpg

@tractorcow
Copy link
Collaborator

Still seems to be the case in 3.1. :)

Does anyone have this working?

@ARNHOE
Copy link
Contributor

ARNHOE commented Apr 1, 2013

I have had this before, but filling the right profile id fixed this.

@tractorcow
Copy link
Collaborator

In my test site I have what I believe to be the profile id filled in correctly. When I check/uncheck the boxes I do get an ajax response from the server, but nothing in the front end is updated.

I'm not sure what the below means, but this is the response I get:

{"series":null,"markers":[[1363231313000,"Updated","Long descr."],[1363226466000,"Updated","Long descr."],[1363225744000,"Updated","Long descr."],[1363225380000,"Updated","Long descr."],[1363225226000,"Updated","Long descr."],[1363225194000,"Updated","Long descr."],[1361766521000,"Updated","Long descr."],[1361501986000,"Updated","Long descr."],[1364160215000,"Google","Long descr."],[1364347564000,"Bing","Long descr."],[1364453370000,"Google","Long descr."],[1364682834000,"Google","Long descr."],[1364688958000,"Google","Long descr."]]}

It would be great to get some feedback from the CMS if an incorrect profile ID is loaded. Perhaps some kind of test to check the validity of the provided details?

@hauntscare
Copy link

Still the same Problem as tractorcow... Help please!

@tractorcow
Copy link
Collaborator

Does anyone have a screenshot of what this is supposed to look like?

@injozi
Copy link

injozi commented Mar 21, 2014

I managed to get it working in SS 3.1.2.
Also wasn't working so I renamed the folder to googleanalytics, made sure the ids etc were correct then build?flush=1 and flushed the cms interface.
Screengrabs attached:
screen shot 2014-03-21 at 11 01 29 am

screen shot 2014-03-21 at 10 52 25 am

@hauntscare
Copy link

Sure that this is 3.1?

Because i explored the error that it is not loading the jquery.livequery.js because this is not included in SS3.1 anymore and it is trying to load it from the CMS Source.

@injozi
Copy link

injozi commented Mar 21, 2014

Definitely 3.1.2 - just checked the version number in the CMS folder and I'm not getting any errors.

@Martinste
Copy link

This issue seems to still be active in 3.1.6

when I check/uncheck the boxes "Visits" and "Page Views" I get a chrome console call saying:

Uncaught TypeError: Cannot read property 'make' of undefined VM1457:28
jQuery.color.parse VM1457:28
fillInSeriesOptions VM1457:299
setData VM1457:233Plot VM1457:181
$.plot VM1457:2051plotAccordingToChoices VM1459:161
(anonymous function) VM1459:68
jQuery.event.dispatch lib.js?m=1413976553:207
elemData.handle.eventHandle lib.js?m=1413976553:174

any ideas?

@Martinste
Copy link

ok so it seems to start working if:

i fill out the CMS with information and NOT altering the _config.php file at all....

started working after I commented the rows:

GoogleLogger::activate(...............);
GoogleAnalyzer::activate(.................);
GoogleLogger::set_event_tracking_enabled(true);

@JarkkoLinnanvirta
Copy link
Contributor

@Martinste I tried that and couldn't get it to work. Firefox's console logs this error message: "TypeError: datasets is null" in file GooglePerformanceChart.js on line156.

So first I had the config in mysite/_config.php (same error as above) and then I moved it to SiteConfig as @Martinste suggested. SilverStripe version is 3.1.12 and googleanalytics is the newest.

Thanks for your support! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants