Gclid Adwords parameter

Home Forums Quform WordPress Gclid Adwords parameter

This topic is: resolved

This topic contains 8 replies, has 3 voices, and was last updated by  Matthias-ngf 4 weeks, 1 day ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #11163

    eitayz
    Participant

    Hallo,

    I would like to get also the Gclid parameter so I can track off-line convertions.
    How can I do it with the quform?

    off line convertions with adwords:
    https://support.google.com/adwords/answer/2998031?hl=en

    Gclid parameter:
    http://www.wordstream.com/gclid

    Do you have any idea how can I do this?

    Thank you

    #11189

    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #11196

    eitayz
    Participant

    Hi Ally,

    Thank you for thae fast answer.
    I didn’t understanded how to “add a Hidden field to the form to store this parameter”.
    It would be great if you can help me with it.

    #11197

    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #11233

    eitayz
    Participant

    Hi Ally,

    When I add the code to the functions.php it brakes my site. attached screen image of it.
    Do you have any idea what can I do?

    Thank you

    Attachments:
    You must be logged in to view attached files.
    #11290

    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #26748

    Matthias-ngf
    Participant

    Hi, I tried your code snippet, and it does not work for me. The form ID is 9, and the hidden field has the name GLCID and the ID 9_5. So my code looks like this:


    if (isset($_GET['gclid'])) {
    $form->setValue('9_5', $_GET['gclid']);
    } elseif (isset($_COOKIE['gclid'])) {
    $form->setValue('9_5', $_COOKIE['gclid']);
    }
    }
    add_action('iphorm_pre_display_9', 'my_gclid_tracking');

    The notification mail however does not contain the hidden field. I used the script from Google to set the cookie, which works according to Firefox Dev Tools-

    What am I doing wrong? I’m not a developer btw. 😉

    #26784

    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #26786

    Matthias-ngf
    Participant

    Great, that works. Thank you very much.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.