PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Analytics code with return value

  1. zuli
    Member

    Hi,
    I've added a function to get a registration code via a php function in the gform_pre_submission_1

    function key_generation($form)
    {
    require_once(ABSPATH.'/getkey.php');
    $_POST["input_3"] = $ResDesc;
    }
    add_action("gform_pre_submission_1", "key_generation");

    Now I want to execute this function:
    _kmq.push(['alias', 'bob', 'bob@bob.com']);
    where bob should be $ResDesc and bob@bob.com should be another input field.

    What's the best way to do this? In which event? can I use the confirmation message?
    Best
    R

    Posted 13 years ago on Monday January 9, 2012 | Permalink