You have anchors not closed and assuming your gtmIdFooter and menuName are defined somewhere, it should be:
{%
result = "<a href='" + GetDocumentUrl() + "' " + gtmIdFooter + ">" + menuName + "</a>"
if(menuName == GetResourceString("copyright")) { result = "<a href='/terms-conditions#copyright' " + gtmIdFooter+ ">" + menuName + "</a>" }
if(menuName == GetResourceString("affiliates")) { result = "<a href='different like' " + gtmIdFooter+ ">" + menuName + "</a>" }
return result;
|(identity)GlobalAdministrator%}