douhuang1973 2012-06-12 17:28
浏览 34
已采纳

如何将国际用户重定向到亚马逊本地商店?

Background: My websites have international users. I have written reviews for amazon and their products on these sites.

I've been looking for ways to redirect international users from my website links to their local Amazon store while correctly linking to the original product and keeping my affiliate ID intact. I've found a couple of ways which I will list below, but I was wondering if there were any good alternatives that I have missed.

This looks pretty good http://code.stephenmorley.org/php/mapping-visitor-ip-addresses-to-amazon-sites/ and http://petewilliams.info/blog/2009/07/javascript-amazon-associate-link-localiser/

QUESTION: Just to be clear, I'd like to know what methods/tutorials/scripts people are using to redirect international users to their local/relevant amazon store.

  • 写回答

1条回答 默认 最新

  • dpmir1988 2012-06-12 18:08
    关注

    You could use something like GeoLite (tutorial on how here) to find their country and then set up an array to cross check their country with wherever the header() function sends them. It would be some work, but you could do it.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?