Add ability to send dimensions with event tracking
Fix undefined error