What's a good way to send tracking information to my server when a
FORM submission occurs? Right now I build a URL that goes to a server
side script that records the information. Then I set an IMG element's
SRC attribute to that URL. In Internet Explorer, I do this operation
in the form submit handler and in FireFox, in an event listener for
the form.
In either case when I test it, I see that I'm missing a lot of data.
I'm wondering if the browser isn't bothering to actually set the IMG
SRC attribute since it is exiting the document.
Is there a more reliable way to get the tracking data out to my
server? Preferably a Javascript method?
Would executing the operation from the OnClick handler be more
reliable than my current method?