How do I use Jotform with ActiveCampaign for Site Tracking on the user's first form submission?

  • Profile Image
    Asked on March 19, 2020 at 09:00 AM

    The answers posted here:



    actually do not answer the burning question of how to integrate Site Tracking on Active Campaign on the website visitor's first form submission using JotForm.

    Here's the issue:

    When a website visitor submits a form on the website, in my case,
    The form is integrated directly to active campaign, however it does not activate the site tracking for active campaign simply because the email has not been passed to active campaign's tracking code which is as follows:

    vgo('setEmail', 'Email_Address_Goes_Here');

    So now the million dollar question is, what exactly should I replace "Email_Address_Goes_Here" with, in order to pass the Email into ActiveCampaign, so as to commence site tracking on the website visitor who have submitted a jotform?

  • Profile Image
    Answered on March 19, 2020 at 09:25 AM

    Hi @Jimng.wd,

    Thank you for contacting Support.

    Upon checking, it seems that this should be done on the Active campaign itself.

    Integration with the form probably will not automatically enable site tracking.

    Can you confirm if you have followed the instruction on the Active campaign?

    Integration with Active Campaign on Jotform will send the email.


  • Profile Image
    Answered on March 19, 2020 at 11:09 AM

    Hi Jim,
    After reading the active campaign documentation, on my understanding, you will need to use a JavaScript or PHP code on your site that looks for the email field in the Jotform and saves it's value into a cookie (or the cookies set by the site tracking code) when the form is submitted.
    Whether you will use JavaScript or PHP code depends on what language is used to build your website.
    You might consider embedding your form to your website using the form downloaded source code and add the site tracking code inside the form's source code. I dare to believe you are a Developer.
    I hope this was helpful. If not feel free to contact us at any time.

  • Profile Image
    Answered on March 19, 2020 at 11:39 AM

    Hi Jimmy

    Thanks for getting back to me on this.

    Unfortunately, I'm not a developer. I'm merely trying to get the site tracking to integrate well with ActiveCampaign and Jotform. 

    May I have your recommendations on how do I get that to work? 

    My website is being built using Wordpress, which I think in the backend is PHP, and on the front end there is Javascript.

  • Profile Image
    Answered on March 19, 2020 at 12:28 PM

    Yes you are correct, Wordpress uses PHP and Javascript.

    Please note that you cannot add any script within JotForm. And if I'm not mistaken, you cannot embed your Jotform using the source code within Wordpress as well thru the admin panel since it will create conflicts.

    If however you know how to dissect Wordpress's code, I mean the actual Wordpress files underneath what you see in the website, then you can copy your form's source code and add the Active Campaign Site Tracking script that will read the value on your form's email field.

    You may want to reach out to Wordpress support team for this since it entails disrupting Wordpress's core codes. Or you can also hire a developer.

  • Profile Image
    Answered on March 19, 2020 at 10:57 PM

    Hi Vanessa

    I'm currently using the Card Form, instead of the Classic Form, and it seems like I am unable to extract the Source Code of the form.

    Is there any workaround for this or is there simply no way?
    1584673036No Source Code Available.png

  • Profile Image
    Answered on March 19, 2020 at 11:46 PM


    If that's the case, please try embedding your form using Wordpress method instead. 

    Kindly refer to the guide below for other embed options available: 



    Moreover, as suggested by my colleague, you may want to reach out to WordPress support team as what you're trying to achieve would disrupt Wordpress' core codes.

  • Profile Image
    Answered on March 20, 2020 at 12:37 AM

    Hi Sonny

    I can embed the code perfectly fine, that would not be an issue.

    However, the issue is with accessing the full source code.

    Using the methods that you just listed which is the Wordpress method or at , it seems like I still can't get the full source code in order to pass the User's Entered Email into ActiveCampaign, which is what I'm really trying to do here.

    So if you refer back to my very initial post, which is trying to post the Email Address into ActiveCampaign upon the form submission, how do I do that?

    Also, I'm using, the Open Source Content Management System, so I can't approach for Support.


  • Profile Image
    Answered on March 20, 2020 at 02:58 AM

    Unfortunately, we do not provide full source code for card forms. However, you can open your standalone form and view the page source to get its full source code. Example:

    I also checked your form and it is already integrated with ActiveCampaign and both the full name and email fields are mapped into your ActiveCampaign fields. So when the form is submitted, the name and email should be sent to your ActiveCampaign. I assume this is already set?

    If you also want to capture the page URL from where the form is embedded, you can use the Get Form Page URL widget and map it to a field on your ActiveCampaign.

    If you want to capture the referrer, use this widget.

    If I've missed something here, let us know.

  • Profile Image
    Answered on March 20, 2020 at 03:03 AM

    Hi Elton

    Yes it is integrated with ActiveCampaign, it automatically creates a new contact with the name and email for me..

    But let's circle back to the very first post of the thread...

    It's the site tracking that is not working the moment a form submission occurs.

    In the ActiveCampaign site tracking code, it requires the site tracking to insert the piece of code that requires the email field, in order for site tracking to commence the moment a form is being submitted on JotForm.

    I hope that clarifies what I'm trying to achieve.

    Otherwise, let me know.

    Thank you.

  • Profile Image
    Answered on March 20, 2020 at 06:21 AM

    Could you please ask the ActiveCampaign support on this as from our end the integration is already creating a contact with the name and the email.

    Another workaround would be, you can pass the email address from the form to your website along with the URL parameters via the Thankyou redirect.

    For example.{email}

    {email} is passed from the form to your website. So you can insert the ActiveCampaign tracking code in this mediator page and set the email data to the email variable in your page and then set this email variable in the PHP code which you have configured.

    Related Help Articles:



    To get a field's Unique Name, you can refer to the guide that I'm linking below.