Post by Lasse » Sat Jul 05, 2008 10:02 pm

Hi.

An important thing for any webshop is to able to track what people search for.

Is this in any way possible with the current version of opencart?

Or has anyone been able to setup the search tracking in Google Analytics so it tracks opencart searches?

User avatar
New member

Posts

Joined
Fri Feb 29, 2008 11:56 pm


Post by Lasse » Sun Jul 13, 2008 6:47 pm

No one got a suggestion for this?

User avatar
New member

Posts

Joined
Fri Feb 29, 2008 11:56 pm


Post by Daniel » Sun Jul 13, 2008 7:06 pm

This can be done, but its a big contribution to write. If anyone is willing to write it I will include it in the next re;lease of opencart.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Lasse » Sun Aug 03, 2008 10:58 pm

Is it more simple to make the search be posted in the URL?
Like:

Code: Select all

http://www.opencartshop.com/index.php?controller=search&keyword=books
That way you can track the search results externally.

User avatar
New member

Posts

Joined
Fri Feb 29, 2008 11:56 pm


Post by Qphoria » Sun Aug 03, 2008 11:43 pm

Could just add a search history table that gets appended whenever the search button is clicked with the ip, search string, etc. That shouldn't be too hard. I'll take a look.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Lasse » Mon Aug 04, 2008 1:06 am

wow thanks! :)

User avatar
New member

Posts

Joined
Fri Feb 29, 2008 11:56 pm


Post by Qphoria » Wed Aug 06, 2008 10:42 pm

Ok, I've got this about 60% done.

I have database logging working and I am logging the following fields.
- search_id (unique_id that auto-increments)
- search_term (what you searched for)
- search_time (stores the now() time)
- search_results (storing all the product id's that it finds)

The next step is to add an admin page to view and delete this data.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Lasse » Wed Aug 06, 2008 11:16 pm

Sounds just great! :)

User avatar
New member

Posts

Joined
Fri Feb 29, 2008 11:56 pm

Who is online

Users browsing this forum: No registered users and 4 guests