Re: [WebDNA] Record click-thrus
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101544
interpreted = N
texte = HiThere used to be an ad server widget thingy on the webdna samples page, not sure if it has made it across. Basically the ad linked to a redirect page with code like this on it...Link from the ad...AdsRedirect.html?AdvertID=1001Code on the redirect page...[ReturnRaw]HTTP/1.0 302 FoundLocation: [Lookup db =Adverts.db&lookInField=AdvertID&value=[AdvertID]&returnField=AdvertURL][Replace db=Adverts.db&eqAdvertIDdatarq=[AdvertID]]AdvertNumClicks=[math] [Lookup db = Adverts .db&lookInField=AdvertID&value=[AdvertID]&returnField=AdvertNumClicks] +1[/math][/Replace][/ReturnRaw]Basically it looks up the db to find the actual url, then it adds 1 to the "AdvertNumClicks" variable.Hope it helps.CheersPS: I had a look at the new site, you will find files called "Random Banner Ad Example" here...http://dev.webdna.us/downloads.html========================================Steve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880========================================http://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig========================================On 1 Dec 2008, at 02:57, Dan Strong wrote:> All,>> I have a situation where a client has purchased advertising on my > website and wants stats. They want the "link-juice" of having my > site link directly to them:>> --------------------------------->
![](their ad)
> --------------------------------->> Recording impressions is easy enough, but how to record click-thrus? > [ReturnRaw] comes to mind, and I've used it before for redirects, > but the concept of how to be able to record click-thrus while still > linking directly to client's site is escaping me at the moment.>> Would I do an javascript onClick event in the link and send a var to > another page or something?>> --------------------------------->
onClick="someMagicalCodeThatSendsVartoWebdnaPage()">![](their
> ad)
> --------------------------------->> Any clarification is appreciated.>> Hope everybody who celebrates it had a great Thanksgiving holiday.>> -Dan>>>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/
Associated Messages, from the most recent to the oldest:
HiThere used to be an ad server widget thingy on the webdna samples page, not sure if it has made it across. Basically the ad linked to a redirect page with code like this on it...Link from the ad...AdsRedirect.html?AdvertID=1001Code on the redirect page...[returnraw]HTTP/1.0 302 FoundLocation: [Lookup db =Adverts.db&lookInField=AdvertID&value=[AdvertID]&returnField=AdvertURL][Replace db=Adverts.db&eqAdvertIDdatarq=[AdvertID]]AdvertNumClicks=[math] [Lookup db = Adverts .db&lookInField=AdvertID&value=[AdvertID]&returnField=AdvertNumClicks] +1[/math][/Replace][/ReturnRaw]Basically it looks up the db to find the actual url, then it adds 1 to the "AdvertNumClicks" variable.Hope it helps.CheersPS: I had a look at the new site, you will find files called "Random Banner Ad Example" here...http://dev.webdna.us/downloads.html========================================Steve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880========================================http://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig========================================On 1 Dec 2008, at 02:57, Dan Strong wrote:> All,>> I have a situation where a client has purchased advertising on my > website and wants stats. They want the "link-juice" of having my > site link directly to them:>> --------------------------------->
> --------------------------------->> Recording impressions is easy enough, but how to record click-thrus? > [returnraw] comes to mind, and I've used it before for redirects, > but the concept of how to be able to record click-thrus while still > linking directly to client's site is escaping me at the moment.>> Would I do an javascript onClick event in the link and send a var to > another page or something?>> ---------------------------------> onClick="someMagicalCodeThatSendsVartoWebdnaPage()">
> --------------------------------->> Any clarification is appreciated.>> Hope everybody who celebrates it had a great Thanksgiving holiday.>> -Dan>>>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/
Steve Craig
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Variables not being passed *back* (2000)
RE: Fishing: anyone on this group willing to do support? (1998)
I figured it out (1999)
RE: question on [delete] (1998)
Searching a field and returning the highest value (1997)
WebCat2b13MacPlugIn - [include] (1997)
Where's Cart Created ? (1997)
Newbie Tax Question (1997)
Firesite and [referrer] atg broke (1997)
PCS Frames (1997)
Protect vs Authenicate (1997)
Files not moved to EmailCompleted (2002)
Orderfile Info is Dissappearing (1998)
WebDNA Windows 5.0 sendmail bug (2003)
Pull Down Search (2000)
HELP WITH DATES (1997)
WebCat2final1 crashes (1997)
Help! WebCat2 bug (1997)
Re:Signal Raised (1997)
Cart/Cookie question (2005)