How to use JotForm with Active Campaign's site tracking?

  • Profile Image
    ImmerQi
    Asked on May 05, 2017 at 07:20 AM

    Hi,

    I'd like to use JotForm on my WordPress website and use site tracking provided by Active Campaign.

    Someone made that happening with cookie saving gravity form email field: https://community.activecampaign.com/t/pass-email-to-site-tracking/961/3

    I hope to modify this PHP code that looks for the JotForm field with a label of "Your Email" and saves it into a cookie.

    Can you help me with updating code below with relevant JotForm values? 

     *Save email in a cookie for ActiveCampaign
     */
    add_filter( 'gform_save_field_value', 'tlc_save_field_value', 10, 4);
    function tlc_save_field_value( $value, $lead, $field, $form ) {
        if ($field['label'] == 'Your Email') {
            setcookie( 'email', htmlspecialchars($value, ENT_QUOTES), time() + 99999999, '/', NULL );
        }
        return $value;
    }
     
    This should help to solve my challenge. I'm also open to other suggestions how to achieve Active Campaign integration, especially site tracking. 
     
    Thanks in advance.
  • Profile Image
    candy
    Answered on May 05, 2017 at 09:23 AM

    Hello,

    You can set up an integration between a JotForm form and Active Campaign through a third-party intermediate service, such as Zapier as you may find it at the following link: https://zapier.com/zapbook/jotform/activecampaign/

    Please try this in order to integrate your form and Active Campaign.

    Also, please find the following guide in order to see more about activating Site Tracking in Active Campaign: https://help.activecampaign.com/hc/en-us/articles/221493708-How-to-set-up-Site-Tracking

    I hope this information will help you.

    If you need further assistance, let us know.

    Thanks.