onclick = GA代码给出服务器错误500

I am trying to edit the google analytics onclick track code for one of my buttons. Current code is:

<a href="contact.php" onclick="”_gaq.push([‘_trackEvent’," ‘contact’,="" ‘click’,="" ‘outsouring="" werfleider’]);="" style="background-color:#ed1f24; color:#FFFFFF; padding: 20px 25px; font-family: PT Sans, sans-serif; font-weight: 700; font-size:18px;"><i class="fa fa-angle-right"></i> 
                                Neem vandaag nog contact op met ons</a>

I am replacing the onclick="..." code with following code:

onclick="ga('send', 'event', 'link', 'Contact aanvraag');"

But as soon as I save the .php file and upload it to the ftp server, the page gives either an empty page (just white space, <body> tag is empty) or a server error 500.

Tried some different things now but I've got no clue why this is.

Page gave an error because the < a > tag was inside

echo '

replaced the onclick code with:

onclick="ga(\'send\', \'event\', \'link\', \'Contact aanvraag\');"

and now the page displays like it should.