[WordPress] 外掛分享: DM Visitor Location Notification

首頁外掛目錄 › DM Visitor Location Notification
WordPress 外掛 DM Visitor Location Notification 的封面圖片
全新外掛
安裝啟用
尚無評分
2085 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.2+ v1.0.0 上架:2020-04-20

內容簡介

這個外掛使用ipstack.com來根據IP地址選擇性獲取訪客的詳細信息。
您需要擁有來自ipstack.com的API密鑰才能讓它正常工作。

啟用後,您可以在希望顯示通知的頁面上使用短碼[dm-vln-notification]。

潛在的用途包括:
- 播客網站
- 視頻庫
- 商店
- 出版物

在您的網站上使用此短碼將允許其他訪客了解到您的頁面的參與度。

短碼

有兩個可用於使用的短碼:
- [dm-vln-notification] - 這個短碼將檢查訪客詳細信息,創建 / 更新記錄並顯示通知消息。
- [dm-vln-top-countries] - 這個短碼將顯示訪問該頁面的前10個國家(僅計算唯一的IP地址)。

如果在某個時刻未向該頁面添加[dm-vln-notification],那麼[dm-vln-top-countries]無法提供正確的數據。
因為[dm-vln-notification]完成有關訪客數據的顯示、保存和更新的所有操作。

設置

儀表板頁面提供了多個選項:
- 添加API密鑰
- 選擇通知的位置
- 設置通知消息的顏色方案
- 添加單個和多個用戶自定義通知消息
- 調整通知顯示時間
- 調整Ajax調用的頻率
- 設置秒數以檢查數據庫(根據現在的秒數,我們決定哪些用戶是新的/在線的)
- 暫停API請求
- 選擇日期並刪除以前的DB記錄

自定義通知消息

可以使用動態變量來調整自定義通知消息。
對於單個訪客,您有:
- %dm_vln_country% - 顯示帶有國旗的國家
- %dm_vln_city% - 顯示城市(它不是100%準確的)

對於多個訪客,您有:
- %dm_vln_visitor_number% - 顯示訪客數
- %dm_vln_countries% - 顯示國家代碼列表
- %dm_vln_flags% - 顯示國旗列表而不是國家代碼
- %dm_vln_country_flags% - 顯示與國旗相關聯的國家代碼列表。

您應該只使用%dm_vln_countries%、%dm_vln_flags%、%dm_vln_country_flags%中的一個,否則它會顯示重複的數據。

在所有自定義消息中,您可以使用HTML標記。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「DM Visitor Location Notification」→ 直接安裝(推薦)

原文外掛簡介

The plugin uses ipstack.com to get visitors details based on IP.
You will need an API key from ipstack.com in order for it to work.
After activation you can use the shortcode [dm-vln-notification] on the page where you want to show the notifications.
Potential usage for:
– podcast sites
– video libraries
– shops
– publications
Using this shortcode on your site will allow other visitors to get a sense of the engagement your pages get.
Shortcodes
Two shortcodes are available for use:
– [dm-vln-notification] – this one will check the visitor details, create/update the records and show the notification message.
– [dm-vln-top-countries] – this one will show the top 10 countries that visited the page (only unique IPs will be counted).
The [dm-vln-top-countries] can’t provide correct data if [dm-vln-notification] was not added to that page at one point.
Since [dm-vln-notification] does the whole operation regarding visitor data display, save and update.
Settings
Dashboard page provides you with a number of options:
– Adding API Key
– Choose the position of the notification
– Style the color scheme for the notification
– Add Custom notification message for single and multiple users
– Adjust the Notification display time
– Adjust the Frequency of the Ajax call
– Set the seconds for with to check the DB (based on NOW – seconds we decide what users are new/online)
– Pause the API Request
– Select a date and delete DB records previous to that
Custom notification message
Custom notification messages can be adjusted using dynamic variables.
For Single visitor you have:
– %dm_vln_country% – displays the country with the flag
– %dm_vln_city% – displays the city (it is not 100% accurate).
For Multiple visitors you have:
– %dm_vln_visitor_number% – shows the number of visitors
– %dm_vln_countries% – displays list of country codes
– %dm_vln_flags% – displays list of flags instead of country codes
– %dm_vln_country_flags% – displays list of country codes associated with the flag.
You should only use one of the %dm_vln_countries%, %dm_vln_flags%, %dm_vln_country_flags% or it will show you duplicate data.
In all custom message you can use HTML tags.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon