adding correct tracking data to links