I’m having the same problem (Lead doesn’t get captured.) kgrondell, I added your code and got this on my page:
Array ( [headers] => Array ( [date] => Sun, 25 Sep 2016 23:06:53 GMT [strict-transport-security] => max-age=10886400; includeSubDomains; preload [content-security-policy-report-only] => default-src https:; script-src https: 'unsafe-inline' 'unsafe-eval'; style-src https: 'unsafe-inline'; img-src https: data:; font-src https: data:; report-uri /_/ContentDomainCSPNoAuth?type=login [set-cookie] => BrowserId=DpMPbhQiS6Kq4dLMBi3y8w;Path=/;Domain=.salesforce.com;Expires=Thu, 24-Nov-2016 23:06:53 GMT [expires] => Thu, 01 Jan 1970 00:00:00 GMT [cache-control] => private [content-type] => text/html;charset=UTF-8 [connection] => close ) [body] => [response] => Array ( [code] => 200 [message] => OK ) [cookies] => Array ( [0] => WP_Http_Cookie Object ( [name] => BrowserId [value] => DpMPbhQiS6Kq4dLMBi3y8w [expires] => 1480028813 [path] => / [domain] => .salesforce.com ) ) [filename] => )
Can you tell me what my problem is? Thanks!