Jump to content

Back office stats search engine keywords empty


Recommended Posts

Hi all,

 

When I go into the Back Office > Stats > Search engine keywords all I ever see is "0 keywords match your query".

 

We have several websites all running Prestashop now and this message is the same across all of them.

 

Am I missing something obvious here? I've changed all the date ranges, graph types, etc. but this has made no difference.

 

Oliver

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 1 month later...
  • 1 month later...
  • 2 months later...
  • 3 months later...
  • 2 months later...
  • 1 month later...
  • 1 month later...
  • 4 months later...

I am also having this same problem on 1.4.11.0.

 

Stats SE Keywords worked fine in 1.4.9.0. Something got fouled up in "code refinement" after 1.4.9.0. I have seen numerous things fouled up in FO and BO -- sloppy coding mostly -- as a result of "code refinement" after 1.4.9.0.

 

I may hunt this problem down using code comparison tools. If I find what got screwed up, I will post a fix here.

Link to comment
Share on other sites

Below is the fix for 1.4.11.0. This issue was fixed in later versions of PS, so it may have only affected 1.4.10.0 and 1.4.11.0. I don't know. I have not looked at all the 1.5.x.x versions to see when the issue got corrected.

 

In the file sekeywords.php, some code was added to curtail the function getKeywords under a certain condition (depending on the value of an index in an array). However, code should also have been added to effectively say "if the array contains more than that single value, then don't curtail the function." 

 

Anyway, in that function, change this:

if ($kArray[0][0] == '&')

-

to this:

if ($kArray[0][0] == '&' && Tools::strlen($kArray[0]) == 1)

-

I have noticed that it is problematic to test with google and bing. I sometimes can't get the referrer to fire the function correctly and write to the DB. I have used aol.com search for tests, and it seems to fire and write to the DB consistently, so if you want to test, maybe try aol.

 

Also, be aware of 'minimum occurrences' for showing the keyword in BO stats. If you want to test, it is easier to just refresh the sekeyword table in the DB while you are testing (you can use phpMyAdmin for that).

Edited by hermit75 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...