该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

track-incoming-referrer

描述

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" />

安装

  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”

常见问题

No FAQ

评价

阅读所有1条评价

贡献者及开发者

“track-incoming-referrer” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0.0

  • First version