I'm trying to get an event to be tracked (user registration) as a goal. I DON'T want it to be tracked by an onclick, I want it to be tracked once a PHP event is finished. Here is my code:
if(USER REGISTRATION SUCCESSFUL):
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_trackEvent', 'SignUp', 'Registered', 'User Registered']);
</script>
endif;
The regular Google Analytics Code is in the footer just before the / body. On the register page that code is being triggered in the middle of the page.
But the completed goals aren't showing up in Google Analytics, any idea why?
Note: PHP simplified since it doesn't really pertain to this question.