Since shareasale doesn't do exact reporting of from where the clicks are coming from, is there any software that we can use before shareasale urls to keep track of all the clicks made to have a better idea of the source page?

Is it even allowed to use a tracking script before shareasale URLs?