document.querySelector("input[name='convertingterm']").value = term;
This will work in conjunction with UTM parameters to enter values for Pardot prospects however at this point it will only view users interactions and will not track conversions in Google Analytics. If you're not using Pardot, the first 2 steps are all you needed to diagnose your GA problem. This site uses cookies. By continuing to browse this site you are agreeing to the use of cookies. Send them to me via email, send me a tweet @jennamolby, or leave a comment. document.querySelector("input[name='convertingsource']").value = source; var regex = new RegExp("[\?&]" + name + "=([^]*)"), Hi Jenna, thanks for all your content. // Put the variable names into the hidden fields in the form.