Jun 27, 20197:35 AM - edited Jun 27, 20198:16 AM
Member
Send event from hubspot to google analytics also set form field when google anlaytics cookie is set
SOLVE
Hi @IsaacTakushi dear i am facing another problem in hubspot.How to send Events from hubspot to Google Analytics.. I want to set Form field if google analytics cookie is set.I embeded js code on form and add that form on landing page but it do not set form field(google_client_id) when i fill the form on landing page..can you solve this problem.please review my code.
In all Hubspot forms add "GA Client id" as an optional hidden field Modify the script tag on all Hubspot forms to set ga_client_id if the GA cookie is set
To clarify, this approach to populating a Google Analytics client ID — which you discuss with @WendyGoh in this thread — will work for a Marketing Basic, Professional, or Enterprise form, but not for a Marketing Free or Starter form.
Marketing Free and Starter forms are rendered in an iframe through js.hsforms.net/forms/shell.js instead of js.hsforms.net/forms/v2.js, so they cannot be manipulated with jQuery or styled with on-page CSS.