Home › Forums › Community Forum › Hidden Field for capturing referral source
Tagged: CRM, hidden fields, referrer source, referrer string
This topic contains 5 replies, has 2 voices. Last updated by Bruce 3 years, 8 months ago.
Topic Author | Topic |
---|---|
Posted: Monday Apr 29th, 2013 at 11:38 am #48655 | |
|
|
I basically want to capture the http referrer string upon user registration; using either a hidden field, or whatever. So I can use the backend of my s2member as a sort of jimmy rigged crm. |
List Of Topic Replies
Author | Replies |
---|---|
Author | Replies |
Posted: Tuesday Apr 30th, 2013 at 3:24 am #48781 | |
![]() |
|
Thank you for your inquiry.I went over this in this post: http://www.s2member.com/forums/topic/hidden-custom-field-to-store-affiliate-id/#post-48777 |
|
Posted: Tuesday Apr 30th, 2013 at 12:23 pm #48801 | |
|
|
I’m not experienced enough to take all the logic that you’ve laid out, and apply it to my example. In theory, I understand that: Now for my specific situation, I’ve found a script that takes the utmz cookie in google analytics, and parses out all the different variables (like referring domain, keyword, medium, source) , listed here:
So I imagine that there is some way for me to somehow grab the variables from the code above, and display them in my user list in the admin dashboard as another column of information. But I have no idea how that would work. |
|
Posted: Tuesday Apr 30th, 2013 at 10:29 pm #48874 | |
![]() |
|
If you have to store this information, then this video will be of use to you: |
|
Posted: Wednesday May 1st, 2013 at 12:23 pm #48931 | |
|
|
Ok, this is my current assumption for what I need to do: 1. Create a custom hack to pull in dynamic information and store it in a custom registration field. I believe I have that one 90% figured out. I created an ‘s2hacks.php’ file, stored it under /mu-plugins/, and inserted the following code:
2. I created a custom registration field, with the id of ‘lead_source’ |
|
Posted: Thursday May 2nd, 2013 at 12:38 am #48989 | |
![]() |
|
You could try saving the data you take from that script, and save it into the global scope, then get it in this script if you have to. See: PHP Globals
That’s about as far as we can go with custom code. If you need further assistance, we recommend http://jobs.wordpress.net, or another freelance web site where WordPress® experts are offering their expertise through a bid on your project.
|
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.