Home › Forums › Quform WordPress › External Referrer Problem with Caching
- This topic has 6 replies, 2 voices, and was last updated 8 years, 6 months ago by Ally.
- AuthorPosts
- October 16, 2015 at 6:15 pm #17141archieParticipant
Hello
I needed to get external referrer in the forms, I implemented it per tutorial on this
URL: https://support.themecatcher.net/quform-wordpress/guides/integration/referrer-trackingAnd it works fine! But, problem comes when I enable cache on the website.
Is there any alternative to get the external_referrer parameter value in AJAX or JS?
Thank You
ArchieOctober 19, 2015 at 1:29 pm #17156AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This reply was modified 8 years, 6 months ago by Ally. Reason: Change no_priv to nopriv
October 19, 2015 at 5:43 pm #17177archieParticipantHi Ally
Thanks a million! It did work, now the referral hidden input field gives the value regardless of caching…
However, problem I saw is that, If I google my keywords, go to my website from google and fill out the form on homepage, it does show google as a referral.
But, If I move around on the website and fill out the form after that, it shows my own website as a referral, shows the previous URL where I was on my website, before I moved to form page and filled it out.
Is there any way to modify this code in a way so that it shows the original referral in value? Not my website, even If I or customer moves around the website pages before they fill the form out?
Again, Thanks a million. Really appreciate your help!
October 21, 2015 at 10:54 am #17191AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 22, 2015 at 3:59 pm #17219archieParticipantThanks, Im gonna try this code now and post results here 🙂
Thank you!
October 22, 2015 at 4:06 pm #17220archieParticipantHi Ally
I tried to the code, it leaves the referrer url field empty if the previous page (referrer) was on my website.
But, its different from what we need to achieve.
Example Scenario:
1) User finds website on google
2) On the website, user clicks around couple pages
3) He ends on landing page and fills out the form
in the form, on referrer field we need to show Google (the initial, primary referrer). Can you please tell me how can we achieve it?
Thanks a million
October 26, 2015 at 10:51 am #17240AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.