
前言介紹
- 這款 WordPress 外掛「WP Engine GeoTarget」是 2015-02-26 上架。
- 目前有 300 個安裝啟用數。
- 上一次更新是 2025-02-03,距離現在已有 387 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
- 有 15 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
wpengine | markkelnar | stephenlin | taylor4484 | ryanshoover | stevenkword | nateinaction |
外掛標籤
wpe | GeoIP | wpengine | geotarget | localization |
內容簡介
WP Engine GeoTarget allows websites to display geographically relevant content based on the visitor's location. It can be used for geo-marketing, localization, eCommerce, and legal requirements. Location variable shortcodes can be used to return the user's geographic location, and a content shortcode can be used to hide or show specific content based on visitor geographies. There is a limitation in the logic that does not allow adding back in a subset of an area after content has been hidden from it. Users on Premium and Enterprise plans can use the plugin at no additional cost.
原文外掛簡介
WP Engine GeoTarget integrates with the variables on your WP Engine site to display content catered to the visitor’s location. With the ability to access variables from as broad as country to as specific as latitude and longitude, your website can now display geographically relevant content.
Geo-Marketing
Create marketing campaigns targeted only at certain locations.
Localization
Redirect incoming traffic to content in the local language or currency.
Businesses with local branches can direct customers to a relevant physical location or local microsite.
Ecommerce
Filter out merchandise or services that are not available in a certain locale.
Display country-specific shipping, tax, or sales information.
Legal Requirements
Filter required legal notices from countries for whom those notices may not be relevant.
* Please Note *
Customers on Premium and Enterprise plans can use this plugin at no additional cost. If you are on another plan type and would like to use GeoTarget on one of your sites, you can add it to your plan here. This will not function outside of the WP Engine environment.
Location Variable Shortcodes
You can use any of the following location variable shortcodes to return the various geographic location the user is visiting your site from:
1) Continent: [geoip-continent]
2) Country: [geoip-country]
3) Region: [geoip-region]
In the US region will return States
In Canada region will return Provinces
Outside the US/CA this will return a Region number. Please note region numbers are not unique between countries
4) City: [geoip-city]
5) Postal Code: [geoip-postalcode]
This variable is only available in the US due to limitations with the location data GeoTarget uses
6) Latitude: [geoip-latitude]
7) Longitude: [geoip-longitude]
8) Location: [geoip-location]
Example
Hi, and welcome to [geoip-city]! The place to be in [geoip-region],[geoip-country].
A visitor from Austin, Texas would see the following:
Hi, and welcome to Austin! The place to be in TX, US.
Localized Content
[geoip-content country="US"]Your US specific content goes here[/geoip-content]
The content shortcode allows you to hide or show specific content based on visitor geographies:
Below are all the supported geography options, this allows to you SHOW content for only specific locations:
continent
country
areacode
region
city
postalcode
Below are all the supported negative geography options, this allows to you HIDE content for only specific locations:
not_continent
not_country
not_areacode
not_region
not_city
not_postalcode
Examples of the Content Shortcode
This will display “Content just for US visitors” strictly for visitors viewing from the United States.
[geoip-content country="US"] Content just for US visitors [/geoip-content]
This will display “Content just for everyone in Texas and California” strictly for visitors from Texas and California.
[geoip-content region="TX, CA."] Content just for everyone in Texas and California [/geoip-content]
You can mix and match geography and negative geography options to create verbose logic in a single shortcode:
[geoip-content country="US" not_city="Austin"]Content for US visitors but not for visitors in Austin[/geoip-content]
Limitations
There is a single limitation in the logic that lets you filter content for multiple geographic areas.
You can progressively limit the area that content is shown in. But once your content is hidden from an area, a subset of that area can’t be added back in.
For example,
If I limit my content to Europe, then limit my content from Great Britain, I can’t go back and show it to London.
Creative Work Arounds
Limit content to some regions of a country (or some cities of a state)
You want to show an offer for free shipping to every state in the US but Alaska and Hawaii. You may be inclined to write something like
BAD
[geoip-content country="US" not_state="AK, HI"]Lorem ipsum dolor sit amet[/geoip-content]
Instead, show it to all other 48 states
GOOD
[geoip-content state="AL, AZ, AR, CA, CO, CT, DE, FL, GA, ID, IL, IN, IA, KS, KY, LA, ME, MD, MA, MI, MN, MS, MO, MT, NE, NV, NH, NJ, NM, NY, NC, ND, OH, OK, OR, PA, RI, SC, SD, TN, TX, UT, VT, VA, WA, WV, WI, WY"]Free shipping on all orders over $50![/geoip-content]
Duplicate location names
You want to show discount airfare on a flight to Paris, France. The content should show to all of the US and France, but not Paris itself.
BAD
[geoip-content country="US, FR" not_city="Paris"]Fly to Paris for only $199![/geoip-content]
The problem here is that Paris, Texas will be hidden. The solution? Just have two geoip-content shortcodes.
GOOD
[geoip-content country="FR" not_city="Paris"]Fly to Paris for only $199![/geoip-content][geoip-content country="US"]Fly to Paris for only $199![/geoip-content]
Adding an area into an omitted region
You want to show an ad written in Spanish to all of South America except for Brazil. Brasilia, however, has enough Spanish speakers that you want to include Brasilia.
BAD
[geoip-content continent="SA" not_country="BR" city="Brasilia"]Lorem ipsum dolor sit amet[/geoip-content]
GOOD
[geoip-content continent="SA" not_country="BR"]Venta de la Navidad en los adaptadores USB[/geoip-content]
[geoip-content city="Brasilia"]Venta de la Navidad en los adaptadores USB[/geoip-content]
Calculate distance between points
You have a utility function that will calculate the distance from your provided lat/lng coordinate to the visitor’s location in either miles or kilometers. This can be useful for determining approximate distances, as results may be cached at the state or country level, depending on your configuration.
Example use:
$latitude = 30.268246;
$longitude = -97.745992;
$geo = WPEngine\GeoIp::instance();
if ( false !== $geo->distance_to( $latitude, $longitude ) ) {
$miles_to_wp_engine = $geo->distance_to( $latitude, $longitude );
}
Testing Parameters
You can use the following URL parameters to test how your localized content will appear to visitors from various geographic locations. You can add any of the parameters below to any URL of a page using the GeoTarget shortcodes or API calls:
Spoof visitor from the state of Texas:
yourdomain.com/?geoip®ion=TX
Spoof visitor from the United States:
yourdomain.com/?geoip&country=US
Spoof visitor from Austin, Texas
yourdomain.com/?geoip&city=Austin
Spoof visitor from the U.S. zip code 78701:
yourdomain.com/?geoip&zip=78701
Please note: full page redirects and TLD redirects still need to be implemented with the necessary API calls.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP Engine GeoTarget」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.0.2 | 1.1.0 | 1.1.2 | 1.1.3 | 1.2.0 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.2.5 | 1.2.7 | 1.2.8 | 1.2.9 | trunk |
延伸相關外掛(你可能也想知道)
Geolocation IP Detection 》P地址提供了地理信息,可以在主題或其他外掛中使用,作為 shortcode 或通過 CSS body classes。城市和國家名稱被翻譯成不同的語言(支持的語言)。, 特徵:, ...。AntiSpam for Contact Form 7 》您現在使用的防垃圾郵件插件效果不佳嗎?也許是因為它沒有使用正確的方法來阻止攻擊您的機器人,但我想我有一個解決方案!, 「Contact Form 7防垃圾郵件插件...。
If-So Geolocation 》- 使用此插件可以顯示用戶的國旗(圖像或表情符號),並記錄地理位置請求,以分析日誌來查找並排除機器人流量。- If-So 是一個簡單易用的 WordPress 插件,無...。
Geolocation Detector for Gravity Forms 》提供動態國家偵測功能,可應用於Gravity Forms表單,需安裝 GeoIP Detect Plugin。, 功能, , , 提供一個名為“地理位置”的進階欄位, , , 創建 5 個新過濾器:i...。Country Caching For WP Super Cache 》由於個人情況,我無法再開發或支援此外掛。如果您有興趣接手此外掛,請參閱 https://developer.wordpress.org/plugins/wordpress-org/take-over-an-existing-...。
Category Country Aware WordPress 》由於個人原因,我不能再繼續開發或支援此外掛。如果您有興趣接手此外掛,請參閱 https://developer.wordpress.org/plugins/wordpress-org/take-over-an-exist...。
WP Cloudflare GeoIP Redirect 》WP Cloudflare GeoIP Redirect 外掛讓您可以設定指定國家的使用者被導向至特定的網址。, 該外掛使用 Cloudflare 的 IP 地理位置資料取得地理位置資訊。, 利用...。
Preenchimento Automatico CEP Brasil 》透過郵遞區號自動填入地址欄位, 我們使用第三方 API https://viacep.com.br 提供的服務,其使用條款可在 https://viacep.com.br 的連結中查閱。。
Select Estados e Cidades Brasil 》WordPress外掛選擇巴西州市自動填充巴西的州和城市。, 我們使用https://www.mestresdowp.com.br/機構的API,其使用條款可在以下鏈接中找到:https://www.mest...。
CountryLock 》總結:CountryLock 提供了一個簡單輕量的方式,讓您可以允許或封鎖來自各個國家的訪問者進入您的 WordPress 站點,設計為“設定後忘記”,無附加銷售,廣告或複...。
ClarifyIP Geo Blocking 》<!DOCTYPE html>, <html>, <head>, <title>繁體中文WP外掛介紹</title>, </head>, <body>, , <h2>總結:...。Comment Location Tracker 》這個 WordPress 外掛能夠追蹤留言作者的 IP,在留言管理頁面上顯示該 IP 的國家、地區、以及城市。未來會提供更多功能。。
whats-my-ip 》這個外掛為 WordPress 新增了一個 [whatsmyip] shortcode,可以將目前使用者的 IP 位址嵌入文章中。這個 shortcode 支援三個參數,分別為 ip、country 和 coo...。
Country Specific Menu Items 》國家特定菜單項目* 允許您隱藏或顯示個別菜單項目給訪問您網站的不同國家的訪客。該外掛在「外觀 > 選單」下為每個菜單項目新增額外設置。只需選擇一個或多個...。
Geo IP Library 》Geo IP Library 可以啟用一些簡單但強大的功能,以在 WordPress 上提供地理 IP 國家功能。到目前為止,其主要功能包括:, , 用於插件和主題的靜態 PHP 函數。,...。
