Home › Forums › Quform WordPress › Gclid Adwords parameter
- This topic has 11 replies, 4 voices, and was last updated 5 years, 4 months ago by zlodei.
- AuthorPosts
- June 8, 2014 at 12:58 pm #11163eitayzParticipant
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=enGclid parameter:
http://www.wordstream.com/gclidDo you have any idea how can I do this?
Thank you
June 9, 2014 at 11:17 am #11189AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
June 9, 2014 at 11:39 am #11196eitayzParticipantHi 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.June 9, 2014 at 11:40 am #11197AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
June 10, 2014 at 11:51 am #11233eitayzParticipantHi 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.June 12, 2014 at 3:57 pm #11290AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
August 20, 2018 at 4:09 pm #26748Matthias-ngfParticipantHi, 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. 😉
August 21, 2018 at 1:07 pm #26784AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
August 21, 2018 at 2:16 pm #26786Matthias-ngfParticipantGreat, that works. Thank you very much.
October 31, 2018 at 2:27 pm #27572zlodeiParticipantHi @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.
October 31, 2018 at 2:52 pm #27574AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 31, 2018 at 2:59 pm #27575zlodeiParticipantThank you. That worked fine. I can see gclid in submitted form.
- AuthorPosts
- You must be logged in to reply to this topic.