I'm trying to identify conversions coming from adwords.
My problem: users get in touch trhough email contact mostly. And few from the form page. Assuming conversion is receiving a contact from site wether from email or form page, how do I track it?
I remember once put a conde showing a logo but didn't like that. In the other hand although I can put that logo in the "Form ok page" to determine if someone sent info, I can't do it in pages containing email links, since those are all pages and doesn't mean they clicked the email link and finally send it.
Any help?
In the other hand I have no idea of how to set a cookie?
The important thing not to do is to paste the code into the "Contact Us" page. You only want to count a conversion when the visitor actually fills out the contact form and sends you the query. That's why it has to go in the "Thank you" page that he sees after he fills out the form and clicks submit.
The code that you paste automatically checks the cookie to see if this user has clicked on your ad. If so, it sends a message (as a page fetch) to AdWords that updates that visitor's AdWords record to count it as a converted click.
I don't see how since email link is already there wether they visit it coming from ad or not...
We use PHP, so I set a cookie if a user comes from a PPC page like this:
if ($_GET['source']) {
unset($adwords);
foreach (array('source', 'campaign', 'group', 'ad', 'creative', 'keyword') as $gvar) {
if ($_GET[$gvar])
$adwords[] = $gvar . '=' . $_GET[$gvar];
}
$adwords = implode('&', $adwords);
SetCookie('adwords', $adwords, time()+60*60*24*30, '/');
}
<% if ($_COOKIE['adwords']) : %>
<a href="mailto:sales-adword@example.com">Sales</a>
<% else : %>
<a href="mailto:sales@example.com">Sales</a>
<% endif %>