Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 464
  • Last Modified:

How to Track Lead Source and Referrer.

Hi, My client has a website and an enquiry form. Every time he gets an enquiry he wants to track where the lead came from (Referrer [can be a search engine or a 3rd party advertiser]), the keyword they used, the search engine used, the landing page etc etc.

Whats the best solution out there for this? I'm pretty good with PHP and Javascript. Tried using Google Analytics cookies, they are not that accurate.

Thanks guys in advance.
0
udara22
Asked:
udara22
1 Solution
 
Kent DyerCommented:
You need a database..  If you have MySQL you should be set.

Use your database as your source of record..
 
You need a login/password
Data Entry Screen
Search
Edit Screen
Reports

HTH,

Kent
0
 
udara22Author Commented:
Hi Kent, Thanks. I have a Joomla website running. I used Google Analytics cookies to extract data and store into the database next to each of the enquiries in the Joomla backend. its all set.

But the issue is not storing information. The issue is which technology to use to grab the user information?

Thanks
0
 
Kent DyerCommented:
OK..  you need to do the CRUD principle to your database..  You have to be "C"reate (INSERT) into the database..  You have to "R"ead (SELECT) from the database..  You have to be able to "U"pdate and "D"elete..  If you can login to phpMyAdmin, you should have the db connectors from your pHP pages..

Not sure what else I can provide?

Kent
0
[Video] Create a Disruption-Free Workspace

Open offices have their challenges. And Sometimes, it's even hard to work at work. It's time to reclaim your office and create a disruption-free workspace. With the MB 660, you can:

-Increase Concentration
-Improve well-being
-Boost Productivity

 
udara22Author Commented:
Kent, how can I grab what users typed on google?
0
 
ZylochCommented:
I'm a little surprised that Google Analytics is inaccurate with regards to this, as I would imagine referrers to be high on the list of things it provides.

Nonetheless, if your users came from Google, which holds the user's query string in the URL, you can grab it.

With PHP, you can refer to the $_SERVER['HTTP_REFERER'] superglobal and parse it to obtain the query string. See http://www.electrictoolbox.com/php-keywords-search-engine-referer-url-2/ for some more details on one way to do this.
0
 
Ray PaseurCommented:
Kent, how can I grab what users typed on google?
You probably can't.  And I am not sure that Google would want you to have this information -- it's their proprietary business data.  I believe that Google Analytics will be one of your best tools.  You can capture some additional information if you want to get into cross-platform cookie tracking.  Learn about Undertone Networks and DoubleClick.  I am assuming that if you have foreign sites that advertise and refer clients, you are already tracking this via the request link, right?  You can get a little more information if you look in $_SERVER['HTTP_REFERER'].
0
 
udara22Author Commented:
@Ray_Paseur : Hi Ray and Zylock. The issue with Google Analytics is, sometimes its referer and keywrod cookie (__utmz) doesnt get updated if the user has visited the website before.  For an example, if I go to Google and type "keyword one" and land on my website and the google cookie is set referer to "Google", and if I go and click on a 3rd party advertising banner right after that, sometime google still has referer as "Google". This happends a lot on IE 7. So thats why I was looking for a more PHP based solution rather than cookie and JS based.

My media agency uses DoubleClick. But its just for media agencies isnt ? Not fur standard consumers?
0
 
udara22Author Commented:
Sorry, not quite what I expected.
0
 
udara22Author Commented:
Sorry, not quite what I expected.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now