Re: [WebDNA] Record click-thrus
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101549
interpreted = N
texte = google do something craftyThey use an onmousedown eventSearching for office flowers
and if you look at top resulthttp://www.officeflowers.co.uk/in source code, you can see an onmousedown event called clkwhich references a compressed js function at top of pagewindow.clk=function(b,c,d,e,f,g){if(document.images){var a=encodeURIComponent||escape;(new Image).src="/url?sa=T\x26source \x3dweb"+(c?"&oi="+a(c):"")+(d?"&cad="+a(d):"")+"&ct="+a(e)+"&cd="+a(f) +(b?"&url="+a(b.replace(/#.*/,"")).replace(/\+/g,"%2B"):"") +"&ei=3R40SYuRIoycQP2OkagL"+g}return true};What it seems to do is pass this clk(this.href,'','','res','1','')to a tracking code that basically preloads an image (tracking image as supplied by Steve Craig earlier) as the browser goes off. It makes sure it does this before it goes off, as it does onmousedown=return clk(this.href,'','','res','1','')Therefore, the browser waits until it gets a true or false returned by function...Does this help?TCOn 1 Dec 2008, at 17:24, Steve Craig wrote:> Any particular reason why, the reason I ask is that the page I use > would never be seen by client, it responds very quickly at the > server side then redirects to the client page. Just wondering.>> Cheers> ========================================> Steve Craig - Asylum Interactive Ltd> Tel +44 1330 860550 Fax +44 1330 860880> ========================================> http://www.asylumweb.com> Email: steve@asylumweb.com> Skype: s.craig - iChat: steve.craig> ========================================>>>>> On 1 Dec 2008, at 17:14, Dan Strong wrote:>>> If only it was this easy... :) That would work fine -- and it was >> my very first thought -- except that the ad needs to link >> *directly* to the client's website. I can't link to an intermediate >> page that redirects, hence my dilemma.>> -Dan>>>>>> On Mon, 1 Dec 2008 09:19:07 +0000>> Steve Craig wrote:>>> Hi>>> There 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=1001>>> Code on the redirect page...>>> [ReturnRaw]HTTP/1.0 302 Found>>> Location: [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.>>> Cheers>>> PS: 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 Ltd>>> Tel +44 1330 860550 Fax +44 1330 860880>>> ========================================>>> http://www.asylumweb.com>>> Email: steve@asylumweb.com>>> Skype: 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?>>>>>>>> --------------------------------->>>> >>> src ="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/>>> --------------------------------------------------------->>> 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/>>>> --------------------------------------------------------->> 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/>>> ---------------------------------------------------------> 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:
google do something craftyThey use an onmousedown eventSearching for office flowersand if you look at top resulthttp://www.officeflowers.co.uk/in source code, you can see an onmousedown event called clkwhich references a compressed js function at top of pagewindow.clk=function(b,c,d,e,f,g){if(document.images){var a=encodeURIComponent||escape;(new Image).src="/url?sa=T\x26source \x3dweb"+(c?"&oi="+a(c):"")+(d?"&cad="+a(d):"")+"&ct="+a(e)+"&cd="+a(f) +(b?"&url="+a(b.replace(/#.*/,"")).replace(/\+/g,"%2B"):"") +"&ei=3R40SYuRIoycQP2OkagL"+g}return true};What it seems to do is pass this clk(this.href,'','','res','1','')to a tracking code that basically preloads an image (tracking image as supplied by Steve Craig earlier) as the browser goes off. It makes sure it does this before it goes off, as it does onmousedown=return clk(this.href,'','','res','1','')Therefore, the browser waits until it gets a true or false returned by function...Does this help?TCOn 1 Dec 2008, at 17:24, Steve Craig wrote:> Any particular reason why, the reason I ask is that the page I use > would never be seen by client, it responds very quickly at the > server side then redirects to the client page. Just wondering.>> Cheers> ========================================> Steve Craig - Asylum Interactive Ltd> Tel +44 1330 860550 Fax +44 1330 860880> ========================================> http://www.asylumweb.com> Email: steve@asylumweb.com> Skype: s.craig - iChat: steve.craig> ========================================>>>>> On 1 Dec 2008, at 17:14, Dan Strong wrote:>>> If only it was this easy... :) That would work fine -- and it was >> my very first thought -- except that the ad needs to link >> *directly* to the client's website. I can't link to an intermediate >> page that redirects, hence my dilemma.>> -Dan>>>>>> On Mon, 1 Dec 2008 09:19:07 +0000>> Steve Craig wrote:>>> Hi>>> There 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=1001>>> Code on the redirect page...>>> [returnraw]HTTP/1.0 302 Found>>> Location: [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.>>> Cheers>>> PS: 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 Ltd>>> Tel +44 1330 860550 Fax +44 1330 860880>>> ========================================>>> http://www.asylumweb.com>>> Email: steve@asylumweb.com>>> Skype: 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?>>>>>>>> --------------------------------->>>> >>> src ="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/>>> --------------------------------------------------------->>> 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/>>>> --------------------------------------------------------->> 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/>>> ---------------------------------------------------------> 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/
Toby Cox
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:
HomePage Caution (1997)
Sorting by date (1997)
Suggestions (1998)
Searching two databases (2001)
Re2: AAgghh!! Help, please. SSL strikes again. (1997)
Re[2]: Weird [blank] interpretation (1999)
Bad creator codes which cause access denied error message (1997)
International Orders (1998)
[WebDNA] Variable mystery (2009)
WCS Newbie question (1997)
OH CRAP!!!!!- Template not found error!!! (1999)
show all problem (1997)
Multiple security dbs (1997)
Emailer help....! (1997)
Cookie Question (1999)
Emailer help....! (1997)
Deleting Orders (1997)
Webstar SSL and Non-SSL question (1998)
[carts] and databases (1997)
Mirroring WebCat Servers (2001)