NOTE: this ticket is about adwords and yahoo Content, which is the network of websites publishing ads. See #517 for the ticket concerning normal search/content adwords campaigns.
Piwik could detect automatically when a visitor comes from a click on Adwords content or Yahoo content ads. For example, we could automatically set the referer to "campaign" with the name being "Adwords content" and the detail being the URL of the website where the click is coming from.
an example adsense referer is:
http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-4902541541856011&dt=1240459174499&lmt=1240459174 &alternate_ad_url=http%3A%2F%2Fwww.chauffeurdebuzz.com%2Fpub.asp&format=336x280_as&output=html&correlator =1240459174499&url=http%3A%2F%2Fwww.chauffeurdebuzz.com%2Fearth%2Bday%2Bla%2Bjournee%2Bde%2Bla%2Bterre %2Bdu%2B22%2Bavril-6664&color_bg=FFFFFF&color_text=000000&color_link=F00000&color_url=0C9AD0&color_border =FFFFFF&ad_type=text&ref=http%3A%2F%2Fwww.chauffeurdebuzz.com%2F&frm=0&ga_vid=1576807524.1238980664&ga_sid =1240459142&ga_hid=2010139354&ga_fc=true&flash=10.0.22&u_h=900&u_w=1440&u_ah=847&u_aw=1440&u_cd=32&u_tz =720&u_his=3&u_java=true&u_nplug=20&u_nmime=61&dtd=52&w=336&h=280&xpc=mQiDrsk0te&p=http%3A//www.chauffeurdebuzz .com
apparently Adsense Referers are sometimes just the domain where you clicked on the ad...
That would lead to interesting reports such as: visitors that come from Adwords from XYZ.com have convertion rate of 5% but visitors coming from Adwords from ABC.com have convertion rate of 15%.
Piwik should parse (using referer information, referer domains are already shown) advertising information.
For example Google pageads referer urls are quite simply formatted (unnecessary information stripped out, original url is really long):
http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-...&dt=...&lmt=...&output=html&url=[source url]&ea=0&ref=[previous referer (where user did come to source url)]&kw_type=radlink&hl=fi&kw0=keyword1&kw1=keyword2&kw2=keyword3&kw3=keyword4&okw=[primary keyword (?)]
Some statistics may be nice. How many people did come from from advertising sources, what keywords were used and so on. Of course google gives same statistics but google is not the only advertising source. And it may be nice to cross-check google statistics accuracy.
I suggest moving this feature to Milestone 2 - Piwik 0.8 - A Web Analytics platform
We should make referer links to ad networks non-clickable (as it could incur click cost or be interpreted as click fraud).
Here's the forum post: http://forum.piwik.org/read.php?3,70002
Requirements included in #517