Re: [WebDNA] Record click-thrus
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101551
interpreted = N
texte = Nice. I would suggestfunction pinger() { $('#keepempty').get("http://www.yourserver.com/yourscript.tpl", function(data){ return true; });}onClick="return pinger();"On 1 Dec 2008, at 18:17, Olin Lagon wrote:> Makes sense. They want the direct link for their SEO. How about you > use> Jquery.com? I haven't tested this but this should work>> 1. Load jquery> >>> 2. Post function on page> >>> 3. Create link and call to function>
>
client url>>> This should work. The keepempty div is where jquery will "push" the > results> of the call to your server. It may not be needed.>> If it works, you can extend the pinger function to pass a variable > from the> link so you can use one generic webdna page for tracking all urls.>> Hope this helps.>> -----Original Message-----> From: Steve Craig [mailto:steve@asylumweb.com]> Sent: Monday, December 01, 2008 7:25 AM> To: talk@webdna.us> Subject: Re: [WebDNA] Record click-thrus>> 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/>> ---------------------------------------------------------> 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:
Nice. I would suggestfunction pinger() { $('#keepempty').get("http://www.yourserver.com/yourscript.tpl", function(data){ return true; });}onClick="return pinger();"On 1 Dec 2008, at 18:17, Olin Lagon wrote:> Makes sense. They want the direct link for their SEO. How about you > use> Jquery.com? I haven't tested this but this should work>> 1. Load jquery> >>> 2. Post function on page> >>> 3. Create link and call to function> > client url>>> This should work. The keepempty div is where jquery will "push" the > results> of the call to your server. It may not be needed.>> If it works, you can extend the pinger function to pass a variable > from the> link so you can use one generic webdna page for tracking all urls.>> Hope this helps.>> -----Original Message-----> From: Steve Craig [mailto:steve@asylumweb.com]> Sent: Monday, December 01, 2008 7:25 AM> To: talk@webdna.us> Subject: Re: [WebDNA] Record click-thrus>> 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/>> ---------------------------------------------------------> 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:
ErrorMessage.db and redirect URL (1998)
SHOWIF/HIDEIF empty fields (2005)
Help! WebCat2 bug (1997)
using showpage and showcart commands (1996)
Snake Bites (1997)
emailer (1997)
[ConvertChars] problem (1997)
Reversed words (1997)
FYI: virus alert (1996)
Num Sort Descending (2004)
How is it done? (1998)
WebCat2 - many [carts] on one template page? (1997)
Internet Explorer and caching (2000)
Mime Headers for Mail (1998)
More on the email templates (1997)
& in Lookups (1997)
Re[2]: Next X hits (1996)
redirecting as post (2001)
Day of the week (2006)
shownext in Another Users.db (2000)