How To Track Clicks As Conversions In Adwords
- 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.
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
Recent articles in this category:
- Many Different Content Management Systems Are Available ( Cms)
At this time the rule is that going to the content management system open source and a commercial. H - Establish Your Credibility Online
Shoppers are now careful these days. They are more conscious that there are fraud sellers lurking on - Make Money Online Fast - Is It Possible?!
When you see the phrase "make money online fast" you may wonder to yourself, is this for real?! And - What Is Auto Traffic Avalanche?
Many people is talking about this great tool, and that became an excellent software, that can genera - Beginners Guide To Blogging
A blog is basically an online journal wherein you can digitally pen down your thoughts, ideas, opini - Say No To Just Having Enough To Get By...look For Wealth After A Fixed Paycheck
For the last year, I am proud to say that my regular weekly salary was earned through direct deposit - How Outsourcing Works - Hiring An Outsourced Virtual Assistant
Outsourcing is a proven means of helping businesses cut resource costs while getting the same level - How, Where Should You Start And Get Paid In Affiliate Marketing?
Before internet, freelance jobs like insurance, network marketing and real estate used to be the onl - Saratoga Builders Help You Make Informed Decisions
Numerous American central heating designs implement a furnace which blows forced hot air by means of - Basic Features Of A Good Web Hosting Plan
There are a few features that you should look for when you are picking a good web hosting plan, ther
Most viewed articles in this category:
- Tools for Adsense
If you're just boarding on the AdSense train, and looking to find a quick way to make the profits yo - Information Products - Your Action Plan
If you've been thinking of writing your own information product, here are a few tips to help you get - Are You Missing Out On This Method Of Generating Instant Cash?
If you have not yet heard of Bum Marketing, you're missing out. It's a great online marketing metho - How to Find a Home Based Business Internet Opportunity Thats Right for you
Copyright © Jagraj Gill http://www.payitforward4profits.com/jaggiegill Finding the right hom - Can It Be True? Can You Really Use The Internet to Create Money?
Is it hype? Or is it real? Is dramatized and exaggerated? Or can I really use the internet to cre - How to Create a Virtual Grand Opening
Copyright © 2007 Donna Gunter Grand openings and ribbon cuttings don't have to be limited to bu - What Is The Hottest Product To Sell Online
After going through a survey from all the internet Guru Alex Mandossian, Armand Morin, Derek Gehl an - Web Based Employee Time Clock
The power of the internet is in its connectivity. Many people think that the internet is great becau - Driving Hordes of Traffic to your Site
Getting enough traffic to your site is the overwhelming problem for anyone new to Internet or Affili - So You Want to Start an Online Business Part Two - Analyzing Keywords
Analyzing Keywords Continuing on from Part One of 'So You Want to Start an Online Business'; we wil