Buon martedì a tutti
Ho (ri)trovato, quasi per caso, questo script su Seobook, utile a chi ha un sito con entrambi google adsense + analytics installati, perchè permette di tracciare con google analytics, i click sulle unit adsense.
Un utente "dopo un po'", nei commenti, suggerisce questi miglioramenti:
Volevo realizzare la versione migliorata, ma non riesco a testarlo (non mi parte un alert() che ho messo al posto di urchintracker()... sono un po' bloccato.i seguenti paragrafi sono solo estratti incompleti tratti da qui
IE part: here the script just checks for onfocus. Better: trace onfocus (gets focus) and onblur (loses focus) and onmouseover, onmouseout as boolean flags and check for the link via onbeforeunload. This is way more accurate.
In Firefox the iFrame swallows the mouseevent. better: track for mouseover, mouseout event and look in the beforeunload event, if you were in the iframe.
in order to test, just create an own iframe on a page and a document with a link as the content. then replace the 'googlesyndication.com' string in the script
C'è tra voi un'anima pia, che sia disposta ad illustrarmi la via?![]()