內容簡介
這是一個針對 Contact Form 7 的外掛程式,它創建了一種新的輸入框,包含使用者在填寫聯絡頁面前所瀏覽的頁面 URL 資訊。由於此欄位是使用 JavaScript 在使用者電腦上填充,而非在伺服器上,因此此外掛程式與緩存外掛程式相容。
您可以像其他欄位一樣使用電子郵件標記,選擇在電子郵件中的哪個位置顯示此資訊。
如何使用?
當您安裝並啟用了外掛程式後,Contact Form 7 表單中會新增數個欄位類型,您可以點擊表單編輯器上方的「Referrer」按鈕,或者使用短代碼 [cf7rfr_referrer {your-referrer}]({your-referrer} 要替換為您想要給欄位命名的名稱)來加入它。
要在電子郵件中回復欄位資訊,請使用此標籤:[{your-referrer}]。它會印出一個 URL。
什麼是 referrer?
此外掛程式會查看 HTTP referrer,而非流量來源。因此,如果使用者從 Google 進入您的網站,點擊您網站中的一些鏈接,然後進入聯絡頁面,欄位將會包含使用者在您的網站中瀏覽的最後一個頁面。它不會告訴您客戶是從 Google 進入的。此功能的目的在於為使用者的留言提供一些上下文。有時,他們會說「我喜歡這個產品!」但是您不知道他們到底在說哪個產品。使用 referrer 欄位,至少您知道他們看了什麼。
外掛標籤
開發者團隊
② 後台搜尋「Referrer Input for Contact Form 7」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
Addon for Contact Form 7 that creates a new kind of input that contains the URL of the page the user visited before the contact form page. This plugin works well with cache plugins, because the field is filled using javascript on the user’s computer in stead of the server.
You can choose where in your email to introduce this info by using a mail-tag, like any other field.
How to use it?
Once you have installed and activated your plugin, a new type of field will be available in your Contact Form 7 forms. In order to add it to your form, you can either click on the “Referrer” button above your form editor, or add the shortcode like: [cf7rfr_referrer {your-referrer}] ({your-referrer} has to be replaced by the name you want to give the field)
To recover the field’s info on your email, use this tag: [{your-referrer}]. It will print a URL.
What referrer?
This plugin looks at the HTTP referrer. Not at the traffic source. So, if your user comes from google, clicks some links in your site and ends up in your contact form page, the field will contain the last page in your site your client visited. It will not tell you whether the client landed from Google. This is meant to give you some context to the user’s message. Sometimes, they say “I love this product!” but you have no idea which one they are talking about. With the referrer field, at least you know what they saw last.
