How To Track Clicks As Conversions In Adwords


by Bogdan - Date: 2010-07-14 - Word Count: 352 Share This!

In some cases (affiliates, third party integration) you may need to track AdWords conversions that are happening as events (clicks that are redirect visitor to athird party websit) and not as pageview conversions. As per April 2010, Adwords is counting conversions only when a page which contains the tracking code is viewed by visitors.

If you're sending traffic to a website but the conversion is happening on another website or if there is no page that loads after users take the desired action on the website (e.g. when downloads are automatically starting on clicks on Download Now, or at clicks on installing firefox plugins) you still can count the AdWords conversions as event-based conversions.

I will exemplify how to track non-page view conversions by looking at click on a Dowload Now button:
Step 1

On all pages where you want to track clicks on the Download Now button, add the following JavaScript code to the {head} section.

{script type="text/javascript"}

function setIframe()

{var pitstopmedia = document.getElementById('psm').innerHTML = '{iframe src ="tracking.html" style="border:none;width:1px;height:1px;" marginheight="0? marginwidth="0? frameborder="0?}{/iframe}';}

{/script}
Step 2

Add the following onlick event to each download now link/button/image

onclick="setTimeout(setIframe,2000);"

and right after each download link/button insert the following {div}

{div id="psm" style="display:none;"}{/div}

For example, if your initial download now link looked like

{a href="http://www.samplesite.com/download/software.zip"}{img src="http://www.samplesite.com/images/but-download-big.png" alt="download" width="234? height="63? border="0?}{/a}

After adding the onlclick and the div your download links should look like:

{a href="http://www.samplesite.com/download/software.zip" onclick="setTimeout(setIframe,2000);"}{img src="http://www.samplesite.com/images/but-download-big.png" alt="download" width="234? height="63? border="0?}{/a}{div id="psm" style="display:none;"}{/div}
Step 3

Create a html file called tracking.html and save it at the location specified by the iframe from Step 1 (src="tracking.html) and paste your AdWords conversion tracking code in the file.

The html file will contain just the Adwords tracking code, something similar too:

{!- Google Code for Downloads Conversion Page -}

{script}

{!-

var google_conversion_id = 10709656626;

var google_conversion_language = "en";

var google_conversion_format = "1?;

var google_conversion_color = "ffffff";

var google_conversion_label = "SizxCMsdstggthyQmu_T_gM";

var google_conversion_value = 0;

if (50) {

google_conversion_value = 50;

}

//-}

{/script}

{script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js"}

{/script}

{noscript}

{div style="display:inline;"}

{img height="1? width="1? style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/1070921626/?value=5&label=SizxjkhklvqgEQmu_T_gM&guid=ON&script=0?/}

{/div}

{/noscript}

You're done!

If correctly implemented, the script will open an invisible iframe that contains the AdWords (or any other tracking code) at each click on the Download Now button. Since the iframe is going to load in the browser, thus generating a fake page view, your Adwords conversion code will be triggered and you should see conversions in your Adwords reports.

Related Tags: google adword, adword tips, ppc tips, adword secrets, ppc secrets

Your Article Search Directory : Find in Articles

© The article above is copyrighted by it's author. You're allowed to distribute this work according to the Creative Commons Attribution-NoDerivs license.
 

Recent articles in this category:



Most viewed articles in this category: