Title: track-incoming-referrer
Author: averageradical
Published: <strong>10. januar, 2017</strong>
Last modified: 10. januar, 2017

---

Søg plugins

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

![](https://s.w.org/plugins/geopattern-icon/track-incoming-referrer.svg)

# track-incoming-referrer

 Af [averageradical](https://profiles.wordpress.org/averageradical/)

[Download](https://downloads.wordpress.org/plugin/track-incoming-referrer.1.0.0.zip)

 * [Detaljer](https://da.wordpress.org/plugins/track-incoming-referrer/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/track-incoming-referrer/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/track-incoming-referrer/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/track-incoming-referrer/#developers)

 [Support](https://wordpress.org/support/plugin/track-incoming-referrer/)

## Beskrivelse

Non-technical summary: Track incoming referrer and write it to any hidden form field
with the identifier “referrer” (this can be created in Contact Form 7, for example;
see below). Also if the WordPress site redirects from HTTP to HTTPS, this plugin
also overrides the redirect to add the referrer to the https URL.

Technical details: This plugin runs client-side JavaScript in every page in HEAD
and if there isn’t a session cookie with the name “referrer”, then it writes a session
cookie with the name “referrer” and the value of either document.referrer, or if
that’s empty, the URL-encoded value of window.location.href. There is another client-
side JavaScript in every page before which writes the value of the “referrer” cookie
to any INPUT with the ID “referrer”, if it exists.

When integrating with Contact Form 7, add a hidden input field such as the following:

    ```
    [hidden referrer id:referrer]
    ```

And then add to the Mail’s Message Body:

    ```
    Referrer: [referrer]
    ```

If you’re just integrating this with HTML, just add this to any form:

    ```
    <input type="hidden" id="referrer" name="referrer" />
    ```

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Add INPUT field to a FORM with id “referrer”

## FAQ

No FAQ

## Anmeldelser

![](https://secure.gravatar.com/avatar/a0d89d077fd3ff3b177950289e92c05e7d4f41bb8d8748881a77e0e2b2ab289f?
s=60&d=retro&r=g)

### 󠀁[Works perfectly with WPEngine’s aggressive caching](https://wordpress.org/support/topic/works-perfectly-with-wpengines-aggressive-caching/)󠁿

 [ainsworthstudio](https://profiles.wordpress.org/ainsworthstudio/) 28. oktober,
2017

After finding WPEngine's caching doesn't work with PHP SESSIONS I had to turn to
javascript. After trying for several days to figure out a way to get the referring
URL into our Gravity Forms, this plugin saved the day. Thank you.

 [ Læs 1 anmeldelse ](https://wordpress.org/support/plugin/track-incoming-referrer/reviews/)

## Bidragsydere & udviklere

“track-incoming-referrer” er open source-software. Følgende personer har bidraget
til dette plugin.

Bidragsydere

 *   [ averageradical ](https://profiles.wordpress.org/averageradical/)

[Oversæt “track-incoming-referrer” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/track-incoming-referrer)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/track-incoming-referrer/),
tjek [SVN repository](https://plugins.svn.wordpress.org/track-incoming-referrer/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/track-incoming-referrer/)
via [RSS](https://plugins.trac.wordpress.org/log/track-incoming-referrer/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.0.0

 * First version

## Meta

 *  Version **1.0.0**
 *  Senest opdateret **10 år siden**
 *  Aktive installationer **10+**
 *  WordPress-version ** 2.5 eller højere **
 *  Testet op til **4.7.39**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/track-incoming-referrer/)
 * Tag
 * [referrer](https://da.wordpress.org/plugins/tags/referrer/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/track-incoming-referrer/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  1 5-stjernet anmeldelse     ](https://wordpress.org/support/plugin/track-incoming-referrer/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/track-incoming-referrer/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/track-incoming-referrer/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/track-incoming-referrer/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/track-incoming-referrer/reviews/?filter=1)

[Din anmeldelse](https://wordpress.org/support/plugin/track-incoming-referrer/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/track-incoming-referrer/reviews/)

## Bidragsydere

 *   [ averageradical ](https://profiles.wordpress.org/averageradical/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/track-incoming-referrer/)