create script to send beacon to an aggregation server.
inspired by Googgle Analytics Tracking code.
nf