geotargetting

How to geotarget website with multiple languages but one link only?

六眼飞鱼酱① 提交于 2019-12-25 18:46:21
问题 I have a website with two languages, which works in this format: example.com/changelanguage.xx?lang=de and redirects to German language and calling the same URL again like: example.com/changelanguage.xx?lang=​en redirects to English language. The URL remains the same example.com after redirection, just the language changes. How to add the hreflang attribute here (for Google indexing)? 回答1: It’s a bad practice to use the same URL for different (i.e., translated) content. Consumers, like search

Redirect depending on the Country?

夙愿已清 提交于 2019-12-22 09:25:23
问题 We basically have 2 sites ( Java /JSP / Apache Webserver) : something.ca & something.com The .ca is canadian content, and the .com is american content. We need users to be redirected based on the ip addreess. We want US users to get the .com site and Canadian users get the .ca site. What is the best way to do this (at a webserver level or otherwise ) ? Please elaborate. 回答1: In my web surfing experience, most websites - UPS.com for example - ask the user to select their country site rather

How can I geo target ads/banners with javascript?

二次信任 提交于 2019-12-21 05:48:08
问题 Do you know of any way to do it? real example...? I am looking for a free service like maxmind or others (I really don't care what) and I would like to have a different ad for US visitors. Thanks a lot! 2astalavista: Your example works fine. This is what I did and it's still not working. <html> <head> <title>Geo Test</title> <script type='text/javascript' src='http://www.101greatgoals.com/wp-includes/js/jquery/jquery.js?ver=1.7.1'></script> <script> $(document).ready( function() { $.getJSON(

Geotargeting Page Posts with the Facebook API

倖福魔咒の 提交于 2019-12-19 03:35:55
问题 I'm trying to geotarget wall posts to my fan page using the Facebook PHP SDK. The following snippet successfully posts a message to my wall, but the geotargeting isn't taking. I'm new to programming and I've done my best to follow the documentation here but it's pretty sparse -- I'm not confident that my syntax is correct. Any help would be very much appreciated. //compiling the geotargeting parameters $geoTarget = "{'cities':'Richmond,VA','regions':'Virginia','countries':'US'}"; //my

Internationalize target country for SEO using language url path

核能气质少年 提交于 2019-12-12 03:19:19
问题 I currently have a website running under a German domain .de ( www.mysite.de ) I'm adding now Internationalization support for English and French languages. The I18n will be handled by a different URL structure for SEO purpose www.mysite.de/en will handle english related content www.mysite.de/fr will handle french related content, and so on My first question is if from a SEO prospective I should move the German related content under its own path as well ( www.mysite.de/de )? If this is the

Redirect depending on the Country?

纵然是瞬间 提交于 2019-12-06 04:14:23
We basically have 2 sites ( Java /JSP / Apache Webserver) : something.ca & something.com The .ca is canadian content, and the .com is american content. We need users to be redirected based on the ip addreess. We want US users to get the .com site and Canadian users get the .ca site. What is the best way to do this (at a webserver level or otherwise ) ? Please elaborate. In my web surfing experience, most websites - UPS.com for example - ask the user to select their country site rather than trying to figure it out themselves. They remember the selection in a cookie. Much depends on how

How can I geo target ads/banners with javascript?

帅比萌擦擦* 提交于 2019-12-03 20:26:03
Do you know of any way to do it? real example...? I am looking for a free service like maxmind or others (I really don't care what) and I would like to have a different ad for US visitors. Thanks a lot! 2astalavista: Your example works fine. This is what I did and it's still not working. <html> <head> <title>Geo Test</title> <script type='text/javascript' src='http://www.101greatgoals.com/wp-includes/js/jquery/jquery.js?ver=1.7.1'></script> <script> $(document).ready( function() { $.getJSON( "http://smart-ip.net/geoip-json?callback=?", function(data){ console.log(data); var c = data

Geotargeting Page Posts with the Facebook API

时光毁灭记忆、已成空白 提交于 2019-11-30 22:57:30
I'm trying to geotarget wall posts to my fan page using the Facebook PHP SDK. The following snippet successfully posts a message to my wall, but the geotargeting isn't taking. I'm new to programming and I've done my best to follow the documentation here but it's pretty sparse -- I'm not confident that my syntax is correct. Any help would be very much appreciated. //compiling the geotargeting parameters $geoTarget = "{'cities':'Richmond,VA','regions':'Virginia','countries':'US'}"; //my arguments $args = array( 'access_token' => $page_access_token, 'message' => "this is my message", 'targeting'

how to redirect domain according to country IP address

社会主义新天地 提交于 2019-11-26 15:43:47
I made a site it with some subdomains; according to the country's IP address the user is supposed to be automatically redirected to corresponding subdomain. Example : Main site is abcd.com Suppose some one from India typed this url abcd.com, then the page redirects to ind.abcd.com Download the geoPlugin class from: http://www.geoplugin.com/_media/webservices/geoplugin.class.phps Put a index.php file in your root folder: <?php require_once('geoplugin.class.php'); $geoplugin = new geoPlugin(); $geoplugin->locate(); // create a variable for the country code $var_country_code = $geoplugin-

how to redirect domain according to country IP address

南楼画角 提交于 2019-11-26 04:36:19
问题 I made a site it with some subdomains; according to the country\'s IP address the user is supposed to be automatically redirected to corresponding subdomain. Example : Main site is abcd.com Suppose some one from India typed this url abcd.com, then the page redirects to ind.abcd.com 回答1: Download the geoPlugin class from: http://www.geoplugin.com/_media/webservices/geoplugin.class.phps Put a index.php file in your root folder: <?php require_once('geoplugin.class.php'); $geoplugin = new