Gclid Adwords parameter

Home Forums Quform WordPress Gclid Adwords parameter

This topic is: resolved

This topic contains 11 replies, has 4 voices, and was last updated by  zlodei 3 months, 2 weeks ago.

Viewing 12 posts - 1 through 12 (of 12 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.

    #27572

    zlodei
    Participant

    Hi @ally,

    Could you please explain what the variables should be?

    quform_pre_display_9?
    quform_9_5?

    I only have one form [quform id="1" name="Application"] and added hidden field Unique ID: 1_32.

    Thanks.

    #27574

    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.

    #27575

    zlodei
    Participant

    Thank you. That worked fine. I can see gclid in submitted form.

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

You must be logged in to reply to this topic.

Be inspired. © 2018 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy