Best way to track Google Adwords campaigns?
Google Analytics? (We don't use AdWords in house, so we don't have any particularly great ideas laying around.
)
I only know of one good way to track Google AdWords, and that is by doing what Ryan suggested, using Google Analytics.
With Google Analytics installed on your ubercart site, just enable AdWords and "rock on" 
We use it extensively for some of our sites.
You will want to track AdWords conversion too on your success page. I've added this code to the end of uc_googleanalytics.module file just before the "return $script;" call:
$script .= "<!-- Google Code for purchase Conversion Page -->\n";
$script .= "<script language=\"JavaScript\" type=\"text/javascript\">\n";
$script .= "<!--\n";
$script .= "var google_conversion_id = xxxxxxxxx;\n";
$script .= "var google_conversion_language = \"en_U\";\n";
$script .= "var google_conversion_format = \"1\";\n";
$script .= "var google_conversion_color = \"FFFFFF\";\n";
$script .= "if (xx.xx) { var google_conversion_value = xx.xx; }\n";
$script .= "var google_conversion_label = \"purchase\";\n";
$script .= "//-->\n";
$script .= "</script>\n";
$script .= "<script language=\"JavaScript\" src=\"https://www.googleadservices.com/pagead/conversion.js\">\n";
$script .= "</script>\n";
$script .= "<noscript>\n";
$script .= "<img height=1 width=1 border=0 src=\"https://www.googleadservices.com/pagead/conversion/xxxxxxxx/imp.gif?value=xx.xx&label=purchase&script=0\">\n";
$script .= "</noscript>\n";This way you will be able to know specific conversion rates for each AdWords campaign.
You will want to track AdWords conversion too on your success page. I've added this code to the end of uc_googleanalytics.module file just before the "return $script;" call:
$script .= "<!-- Google Code for purchase Conversion Page -->\n";
$script .= "<script language=\"JavaScript\" type=\"text/javascript\">\n";
$script .= "<!--\n";
$script .= "var google_conversion_id = xxxxxxxxx;\n";
$script .= "var google_conversion_language = \"en_U\";\n";
$script .= "var google_conversion_format = \"1\";\n";
$script .= "var google_conversion_color = \"FFFFFF\";\n";
$script .= "if (xx.xx) { var google_conversion_value = xx.xx; }\n";
$script .= "var google_conversion_label = \"purchase\";\n";
$script .= "//-->\n";
$script .= "</script>\n";
$script .= "<script language=\"JavaScript\" src=\"https://www.googleadservices.com/pagead/conversion.js\">\n";
$script .= "</script>\n";
$script .= "<noscript>\n";
$script .= "<img height=1 width=1 border=0 src=\"https://www.googleadservices.com/pagead/conversion/xxxxxxxx/imp.gif?value=xx.xx&label=purchase&script=0\">\n";
$script .= "</noscript>\n";This way you will be able to know specific conversion rates for each AdWords campaign.
This was specifically what I was looking for, thanks.
I'll go ahead and give it a shot.
Interesting.
Insurrectus, is that something new?
Because, by just using the Drupal Google Analytics-module and the uc_google-module I can just go to either Google Adwords or directly to Google Analytics and get a nice statistics for each AdWords campaign, ad group, and/or ad word, with listing of visits, page views, sales, earnings, costs, number of transactions, number of sold products, and more.
What added functionality do you get from that extra code?
This will give you the conversion rate, ROI, Margin, RPC for each ad group or keyword. This will give you more granularity to understand how your AdWords are performing. The conversion rate can be calculated elsewhere in GA like under traffic sources (medium & keyword).
See attached pictures.
| Attachment | Size |
|---|---|
| listing2.PNG | 6.88 KB |
Yes, that's exactly what I'm talking about.
That is statistics Google provides for you if you have a GA and a AdWords account. Because AdWords is tracked by Google and GA keeps track of incoming sources, there is no need for that extra code. Just "connect" your AdWords account and GA account.
From Google Help Pages:
http://www.google.com/support/googleanalytics/bin/answer.py?answer=55507...
Not that it's a big deal, but I think less code is better 
I've built a module which may be of interest to people wanting to put Conversion Tracking code on their Order Complete pages - http://www.ubercart.org/contrib/12709. Feedback is encouraged.



