Simplify attribute look up in tracking script