I am trying to manually track a goal through a form using onsubmit to first validate the form and then track the goal.
onSubmit=“return valForm(this) && piwikTracker.trackGoal(1);”
This is working in IE and Chrome but not firefox or safari.
In safari and firefox normal tracking is working for the site and the validation is working but it won’t call the piwikTracker.trackGoal(1). If I put the tracker in front of the validation the tracker calls but the validation doesn’t and submits without checking.
Any help pls