Forum Moderators: DixonJones
Good day!
I have a website with few pages and a contact form (php form). My site is now ranking in search engines and I'm also using paid advertising campaigns.
When I receive an enquiry through the contact form I want the main referrer through which a visitor has arrived to my home page.
I used the variable 'HTTP_REFERER', just to find that I am getting my home page as 'HTTP_REFERER' through which the visitors click "Contact Us" link and arrive at the contact form page.
I want to know how they've arrived on my home page.
Please let me know.
With warm regards
Rajiv
If you don't have access to the server to enable and record session ID's that would enable you to track a user through the site, then tracking from page to page is difficult.
The easiest way that I can suggest would be to add some Javascript code (that will not work for a small handful of your sites visitors, but without going to server side scripting - php/asp/perl/etc - your options are limited). The code could add the users referrer to the links on your page, so you could see the referrer as it is passed from page to page. If your site had lots of pages, you should only add this referrer if the referrer isn't on your site.
So, internally, the links would look like (simplified Javascript for illustration purposes):
<script>
document.write( "<a href=\"sompage.html?ref=" );
document.write( document.referrer );
document.write( "\">" );
</script>
Good Luck!
Larry
Suggestion: try the JavaScript forum ;)
Let me see if I understand you correctly: basically, you have a contact form on your site, and given that you're doing some PPC campaigns, you'd like to know what terms, etc, brought traffic to that specific contact form. Is that correct?
If so, take a look at ConversionRuler. I use it to track conversion rates, etc, for a client who runs PPC campaigns. It's very friendly, easy to get it up and running, and doesn't cost you "an arm and a leg". I've been using it for sometime and am able to see which keyterms from my client's several campaigns are bringing the most inquiries (through the contact form).
Hope this helps!
Cheers,
Lydia
[edited by: DaveAtIFG at 5:45 am (utc) on Sep. 11, 2004]