Home › Forums › Quform WordPress › External referrer
- This topic has 6 replies, 2 voices, and was last updated 11 years, 4 months ago by
Andi.
- AuthorPosts
- February 17, 2014 at 10:39 am #8749
Andi
ParticipantHi,
how can I submit the external referrer in the e-mail?
For example: When I came from Google directly to the page, where I’ve included the form, i get the referrer the way I want. But if I came from Google to the index and click then on the page, where I’ve included the form, then the referrer is the index of my page and not google.
Who can I fix it?
February 17, 2014 at 11:50 am #8754Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 17, 2014 at 1:58 pm #8760Andi
ParticipantOk, so I insert in my header.php:
<?php
session_start();
if (!$_SESSION[‘referer’]) {
$_SESSION[‘referer’]=$_SERVER[‘HTTP_REFERER’];
$referer = $_SESSION[‘referer’];
}
?>How should then look the code inside the functions.php? The ID of the hidden field is: iphorm_2_89
Thanks!
February 17, 2014 at 2:44 pm #8761Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 18, 2014 at 10:08 am #8776Andi
ParticipantHello Ally,
thank you so much for your fast response.
Unfortunately your solution again only shows me the last page before the enquiry form. So if i came from another page inside my homepage it only shows me this one in the mails, but I need the last external referer.
Do I have to use $_SERVER[‘HTTP_REFERER’]?
Regards
February 18, 2014 at 11:23 am #8777Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 18, 2014 at 1:44 pm #8779Andi
ParticipantHello Ally,
thank you so much, you’re awesome! 🙂
Regards
Andy - AuthorPosts
- You must be logged in to reply to this topic.