There are lots of different ways to do this... it depends on what data you need to provide to the tracking script. There is a good post on custom tracking code implementation here: ...