Removed Mixpanel JS script and added Mixpanel ruby gem and can now successfully track events.