fix failure on click tracking or anything else passing an element (JSON.stringify was throwing circular reference errors)