Goal: To use contact form 7, when the person fills out the form they are redirected to a new page and execute the piwik javascript goal code (google analytics alternative) which I added to the "Additional Settings" part of Contact 7. I can get the redirect to work, but for some reason not the piwik code. Here are my seperate codes, do I need to combine them somehow like the google analytics code example you gave on contact7's website?
Redirect code in "Additional Settings"
on_sent_ok: "location.replace('http://mysite.com/thank-you-page');"
Piwik code in "Additional Settings" - Cant get to work :(
<script type="text/javascript">
piwikTracker.trackGoal(2);
</script>
Please help!?!