I integrated this form with Mailchimp and I am trying to see how I can

  • Profile Image
    MichelleFait
    Asked on August 26, 2015 at 05:34 AM

    I integrated this form with Mailchimp and I am trying to see how I can add tracking on my Mailchimp side to show that the subscriber came from Jotform. I set up the integration and tested but when I go to see the subscriber It says it came from API Generic. I tested the above Todo and it didn't function properly.

    This is my IFRAME CODE: Where do I add this code? $_SERVER['HTTP_REFERER'] or maybe I am missing a step?

    window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;case "collapseErrorPage":if (iframe.clientHeight > window.innerHeight) {iframe.style.height = window.innerHeight + "px";}break;case "reloadPage":window.location.reload();break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}



    This is a re-post of a comment on How to Capture Referrer URL

  • Profile Image
    Sammy
    Answered on August 26, 2015 at 07:44 AM

    You actual iframe should be above the code snippet you provided, add the referrer portions within the src attribute<iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//support.jotform.com/form/52372374153958?referrer=<?php echo $_SERVER['HTTP_REFERER'];?> " frameborder="0" style="width:100%; height:517px; border:none;" scrolling="no"></iframe>