1. Open Marketo and find Google Analytics Client ID field that Marketo should have brought from Salesforce. If it didn’t, follow this instruction from Marketo.

2. Add this field as a hidden field to all your forms.

3. Open one of the forms and located this hidden field. It should look something like this:

4. Locate the name attribute of this field. In this example, it’s “gacid”. But in your case, it could be called differently.

5. Add this piece JavaScript code to the website (you may need to replace “gacid” with your GA CID input name on line #35):

That’s it – now GA Client IDs should be automatically populated to the hidden fields, which will be synced with Salesforce.