I've got a goal setup on the CRM and got the Integration and Call Name from it. Then, using the PHP SDK, I've created a contact (this worked fine) and then tried to achieve the goal using this code:
$client->funnels()->achieveGoal($goalIntegration, $callName, $contactId);
But that doesn't work as I simply get this error:
string(54) "No Goals were configured to be achieved by this event."
I've checked all the input variables and they all have the right values and they match what's in the CRM.
Any idea what is causing this and how to get it to work?