function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AndreTheusAndreTheus 

Google AdWords App (sfga.js) breaks in Google Chrome

Hi everyone,

 

We are using "Salesforce for Google AdWords" to generate the lead source for users filling out a web-to-lead form on our website. The form submission and lead source tagging works fine for people using Firefox or IE, but it breaks in Google Chrome.

 

I created a test form at http://staging.rightscale.com/products/euge_test.php that clearly shows that the bug lies in https://lct.salesforce.com/sfga.js. __kSetupForm() within the sfga.js seems to cause the bug in Google Chrome:

 

function __kSetupForm(form, customForm) {
if( customForm ) {
var sfga = __kgetSfgaField(form);
sfga.value = __kpackInfo(form, customForm);
form.setAttribute('action', __kgetSFAction(form));

} else {
_kwtlForm = form;
if( form.onsubmit != undefined ) {
var expr = "_kwtlOnSubmit = " + form.onsubmit.toString().replace(/this\s*([\)\.])/, '_kwtlForm$1');
eval(expr);
}
form.onsubmit = __konSubmit;
}
}

 

I was unable to find a support contact on Google's or SalesForce's end. Anybody ran into the same bug using "Salesforce for Google AdWords"? Thoughts?

Message Edited by AndreTheus on 01-26-2009 02:44 PM
Message Edited by AndreTheus on 01-26-2009 02:47 PM
abstractjabstractj

I think you need to add the hidden input field <input type=hidden name="oid" value="some random generated number from SFDC"> in order to make it work.

 

Also, if you browse your page in IE 7, you will notice the cookie is being blocked by the browser, if the security setting is set to Medium or above. Not sure if SFDC has a fix for it. 

 

AndreTheusAndreTheus
Thanks for your response. Unfortunately adding the hidden field is not doing the trick.