Add referer and source tracking