adjusted anayltics to work for new links