Forum Moderators: martinibuster
function TrackIt0() {TrackIt(0); }
function TrackIt1() {TrackIt(1); }
function TrackIt2() {TrackIt(2); }var elements = document.getElementsByTagName("iframe");
for (var i = 0; i < elements.length; i++)
{
if(elements[i].src.indexOf('googlesyndication.com') > -1)
{
//elements[i].onfocus = TrackIt;
if (i==0) elements[i].onfocus = TrackIt0;
if (i==1) elements[i].onfocus = TrackIt1;
if (i==2) elements[i].onfocus = TrackIt2;
}
}
Hope this helps,
Aaron
could you not just use channels to do this?
Yes, you can do that. But if you are already using ari11210's tracking script to create a database of information on your AdSense activity, it would make sense to have this information in that same database. Why take the extra step to import the information from Google?