Title: First Referer
Last modified: August 20, 2016

---

# First Referer

 *  [alemao85](https://wordpress.org/support/users/alemao85/)
 * (@alemao85)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/first-referer/)
 * Hello,
    I want to know where my user comes from (Google, Direct, …) I can use
   the <?php wp_get_referer() ?> which works, but I want to save this information
   during the whole stay of the user in my page. Right now the information is lost,
   once the user goes to a subpage.
 * I have 2 ideas:
 * – WP has a function that saves the first referer
    – I save the info in a session.
   Does WP have some array or variable as a session already where I can save the
   info or how do sessions in WP work?
 * Thanks 🙂

The topic ‘First Referer’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [alemao85](https://wordpress.org/support/users/alemao85/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/first-referer/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
