cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Track original referrer and seach keywords

Add a New Topic Reply to Post
Post

Glenn Nicholas - Guest

3:55 am - August 16, 2008

Please replace the ??? with your data!

  • Your URL: http://om4.com.au
  • The browser used: Safari
  • cforms version: Latest
  • Your Wordpress version: Latest

[desc]:
Oliver, great plugin, congrats.

In addition to your plugin, we also use a modified version of Chip Cuccio's contact form plugin to record contacts in a db table for tracking. We found one of the most useful things to track was a) the original referrer for the contact; and b) if the referrer was a search engine result page, the search keywords used.

This way you can see:

- someone came from xyz.com and then what they entered in the contact form

- someone searched Google for xyz to find you and what they entered in the contact form

This might be a feature you would consider adding to your own tracking functionality.

Drop me an email if you want to see the code we use to get the referrer details.

Oliver - Admin

8:28 am - August 16, 2008

posts 3562

in cforms: use {Referer} for db tracking or the email message, simply put it in a hidden input field and it'll be recorded

Glenn Nicholas - Guest

3:40 am - August 18, 2008

Thanks Oliver, I was able to place the {Referer} tag in the admin email. If I come from Page A (on site A) directly to Page B (on site B, with Cforms form on it) and fill out the form, the Referer value shows as Page B instead of Page A. 

Also, I tried setting up a hidden field using Referer|{Referer} in the field value so the default would be the variable for Referer and show in the db tracking. However after I set this up and tested, the Referer value was blank.

Oliver - Admin

10:39 am - August 18, 2008

posts 3562

Right, since the form submission itself counts as a Referer the email can't directly reference {Referer}, but has to go through the use of a hidden field.

You're second attempt was right on (I double checked and it does work), try:

hiddenRef|{Referer}

What's the URL of the form?

Glenn Nicholas - Guest

8:50 pm - August 18, 2008

Form is here: http://om4.com.au/test-referer-value-in-cforms/

I tried the field value you showed, no change. The hidden field is shown in the View mode for Tracking, but the field is empty.

For referer tracking, Original Referer is what would be useful to report, the last page used before coming to the current site. Tells you who sent the person who made the enquiry.

Oliver - Admin

9:20 pm - August 18, 2008

posts 3562

I just setup a test link pointing to your form and once clicked it shows fine in your hidden field. Make sure you have referer enabled your browsers when testing.

Add a New Topic Reply to Post


Reply to Topic: Track original referrer and seach keywords
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 1 + 12        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)