re-copy analytics code