[backport] Fix wrong title tracking on analytics using generic title.