I am trying to build a web lead capture script using the example code (from the wiki). The Contact is created as advertised except
for trackingKey. It is never populated. Any guidance would be appreciated.
open-source version 8.5
<?php
require 'APIModel.php';
$attributes = $_POST;
$contact = new APIModel('admin','7uoHGRIBlb0lKym56ieiDf3c7idzCCP7','www.host.domain/path/to/x2');
$fieldMap = array( // This map should be of the format 'your_fieldname'=>'x2_fieldname',
'first_name'=>'firstName',
'last_name'=>'lastName',
'mobile'=>'phone2',
'information'=>'backg