I am looking for a way to include tracking information.
Things like identifying conversions from PPC campaigns by capturing the following information into the contact form.
- which PPC campaign
- which PPC keywords
The other part of tracking infor useful for everyone would be for leads not generated by PPC, but standar search engine referrals:
- if a search engine, which
- keywords or search term
- the originating traffic source if not a search engine
I am hoping others have had this same requirement, so we can share methods to achieve this instead of re-inventing the proverbial wheel.
I have seen the following hosted service which seems to do everything I mentioned
http://www.bestcontactform.com/features.php , but would rather have the features built into my own forms.
There is also a Wordpress form that claims to do the same, but not being more than a copy/paste coder I have no idea which part of the code does this:
http://yoast.com/wordpress/enhanced-wordpress-contact-form/
Looking forward to your advice.
- Vince
Things like identifying conversions from PPC campaigns by capturing the following information into the contact form.
- which PPC campaign
- which PPC keywords
The other part of tracking infor useful for everyone would be for leads not generated by PPC, but standar search engine referrals:
- if a search engine, which
- keywords or search term
- the originating traffic source if not a search engine
I am hoping others have had this same requirement, so we can share methods to achieve this instead of re-inventing the proverbial wheel.
I have seen the following hosted service which seems to do everything I mentioned
http://www.bestcontactform.com/features.php , but would rather have the features built into my own forms.
There is also a Wordpress form that claims to do the same, but not being more than a copy/paste coder I have no idea which part of the code does this:
http://yoast.com/wordpress/enhanced-wordpress-contact-form/
Looking forward to your advice.
- Vince
Hi jvince,
We've talked about tracking campaigns before, you can capture url codes or cookies if you need to.
Broader stats are more difficult, there are some Joomla add-ons to do this but see the cautionary post here. You may be better off doing this with Google Analytics or some external stats package.
Bob
We've talked about tracking campaigns before, you can capture url codes or cookies if you need to.
Broader stats are more difficult, there are some Joomla add-ons to do this but see the cautionary post here. You may be better off doing this with Google Analytics or some external stats package.
Bob
Hi Bob,
We use Google Analytics integrated with Adwords for PPC stats and have all the wonderful conversion settings enabled.
The issue is that solution does not allow you to identify which enquiry was generated by a PPC campaignk, straight search engine referral, or from another referring Website.
e.g. This month GA conversion tracking tells us we have had 12 leads and also which PPC campaign generated these 12 leads.
The problem is we have had a total of 20 leads, so 8 leads not generated by PPC - but how can we now identify which is which?
But if we have the referrer info sent/saved with each submit of the form - similar to user IP number capture - then prblem solved.
May be best to see the summary of 'Best Contact Form' here to clarify:
http://www.bestcontactform.com/what.php
Our Contact Forms Can Tell You:
Which keywords visitors used to find your site.
Which search engine was used.
Was the link an organic or PPC (Paid) link?
The landing page on tour website.
The full refferrer (without truncation).
The geographic location plotted on a map.
Their web browser information.
Their operating system.
Their screen resolution.
Which keywords are converting into sales.
The date and time each form was submitted.
All Submission are Archived and can be exported to CSV
Hope that helps.
Many thanks,
- Vince
We use Google Analytics integrated with Adwords for PPC stats and have all the wonderful conversion settings enabled.
The issue is that solution does not allow you to identify which enquiry was generated by a PPC campaignk, straight search engine referral, or from another referring Website.
e.g. This month GA conversion tracking tells us we have had 12 leads and also which PPC campaign generated these 12 leads.
The problem is we have had a total of 20 leads, so 8 leads not generated by PPC - but how can we now identify which is which?
But if we have the referrer info sent/saved with each submit of the form - similar to user IP number capture - then prblem solved.
May be best to see the summary of 'Best Contact Form' here to clarify:
http://www.bestcontactform.com/what.php
Our Contact Forms Can Tell You:
Which keywords visitors used to find your site.
Which search engine was used.
Was the link an organic or PPC (Paid) link?
The landing page on tour website.
The full refferrer (without truncation).
The geographic location plotted on a map.
Their web browser information.
Their operating system.
Their screen resolution.
Which keywords are converting into sales.
The date and time each form was submitted.
All Submission are Archived and can be exported to CSV
Hope that helps.
Many thanks,
- Vince
Hi Vince,
There's no big problem in saving the referer info with the form data - look at the section in the Autogenerated code that gets the IP address and put an amended version into the OnSubmit before box.
Bob
There's no big problem in saving the referer info with the form data - look at the section in the Autogenerated code that gets the IP address and put an amended version into the OnSubmit before box.
Bob
Hi,
This is something that I would like to do too. I know a bit of PHP, so hopefully I can figure it out. However I can't see where the IP address is pulled from in the autogenerated code section or where the Onsubmit part is.
I have attached a file which shows what I see in the autogenerated code section.
Any direction would be greatly appreaciated.
Thanks!
Joe
This is something that I would like to do too. I know a bit of PHP, so hopefully I can figure it out. However I can't see where the IP address is pulled from in the autogenerated code section or where the Onsubmit part is.
I have attached a file which shows what I see in the autogenerated code section.
Any direction would be greatly appreaciated.
Thanks!
Joe
Hi Joe,
There won't be any Autogenerated code unless you have a DB Connection. You can Create a table and set one up temporarily to see the code. The line that gets the IP address and adds it to the $_POST array is:
Bob
There won't be any Autogenerated code unless you have a DB Connection. You can Create a table and set one up temporarily to see the code. The line that gets the IP address and adds it to the $_POST array is:
JRequest::setVar( "ipaddress", JRequest::getVar( "ipaddress", $_SERVER["REMOTE_ADDR"], "post", "string", "" ));
Bob
Thanks again for the replies. I have done that and can now see the code that you pasted in.
However, it appears that I cannoy edit the code. The hint "The data below is auto generated by Chronoforms and will be regenerated everytime the form is saved, editing it is worthless." on the autogenerate code section also states you can't edit it.
Here is the test code I am wishing to add (I have tested the functions outside of chronoforms and it works):
Any direction would be great!
Thanks
Joe
However, it appears that I cannoy edit the code. The hint "The data below is auto generated by Chronoforms and will be regenerated everytime the form is saved, editing it is worthless." on the autogenerate code section also states you can't edit it.
Here is the test code I am wishing to add (I have tested the functions outside of chronoforms and it works):
<?php
// take the referer
$thereferer = strtolower($_SERVER['HTTP_REFERER']);
// see if it comes from google
if (strpos($thereferer,"google")) {
// delete all before q=
$a = substr($thereferer, strpos($thereferer,"q="));
// delete q=
$a = substr($a,2);
// delete all FROM the next & onwards
if (strpos($a,"&")) {
$a = substr($a, 0,strpos($a,"&"));
}
// we have the results.
$mygooglekeyword = urldecode($a);
}
$MyForm =& CFChronoForm::getInstance("MainContact");
if($MyForm->formparams("dbconnection") == "Yes"){
$user = JFactory::getUser();
$row =& JTable::getInstance("chrono_contact", "Table");
srand((double)microtime()*10000);
$inum = "I" . substr(base64_encode(md5(rand())), 0, 16).md5(uniqid(mt_rand(), true));
JRequest::setVar( "recordtime", JRequest::getVar( "recordtime", date("Y-m-d")." - ".date("H:i:s"), "post", "string", "" ));
JRequest::setVar( "keywords", JRequest::getVar( "keywords", $mygooglekeyword , "post", "string", "" ));
JRequest::setVar( "ipaddress", JRequest::getVar( "ipaddress", $_SERVER["REMOTE_ADDR"], "post", "string", "" ));
JRequest::setVar( "uid", JRequest::getVar( "uid", $inum, "post", "string", "" ));
JRequest::setVar( "cf_user_id", JRequest::getVar( "cf_user_id", $user->id, "post", "int", "" ));
$post = JRequest::get( "post" , JREQUEST_ALLOWRAW );
if (!$row->bind( $post )) {
JError::raiseWarning(100, $row->getError());
}
if (!$row->store()) {
JError::raiseWarning(100, $row->getError());
}
$MyForm->tablerow["jos_chrono_contact"] = $row;
}
?>
Any direction would be great!
Thanks
Joe
This topic is locked and no more replies can be posted.