fix broken analytics tracking introduced in #1507