Sorry, I was missing the concept all together. This is what it should look like and it works perfectly.
<!-- mfunc
$imatrix = new imatrix();
$imatrix->SetURL($_SERVER['HTTP_HOST']);
$imatrix->SetAPIACTION('SITEDATA');
$imatrix->SetDATATYPE('DELIMITED');
$imatrix->SetDELIMITER_1(',');
$imatrix->SetDELIMITER_2(';');
$imatrix->SetLIVE('Y');
$imatrix->sitedata();
-->
<!-- /mfunc -->