WordPress.org

Ready to get started?Download WordPress

Forums

Caching + Dynamic Content (Geo-Targeting) (3 posts)

  1. myrko
    Member
    Posted 2 years ago #

    I want to talk about Caching and Dynamic Content.

    I have a special part of dynamic content: geotargeting. Is there any way to successfully cache a page (in parts) and use geotargeting to determine different output (like a text or link) for different countries? I.e. for US output "This offer is for US users: LINK" and for UK output "This offer is for UK users: LINK2"?

  2. myrko
    Member
    Posted 2 years ago #

    So there seem to be 2 options:

    1) Use Supercache Plugin + Use a geo plugin such as GT-Geo and try to execute that within the cached page:

    Welcome Dude! You are from:
    <!--dynamic-cached-content-->[geo-in country="de" note=""]GERMANY[/geo-in] [geo-in country="us" note=""]USA[/geo-in] [geo-in country="uk" note=""]UK[/geo-in]<!--/dynamic-cached-content-->

    That doesnt work somehow. You can see the cached output here: http://www.top3buys.com/uncategorized/hello-world/ - it usually says Germany, since that is what I cached.

    2) Use Javascript Geotargeting, which would be executed client-side. But I havent found anything working so far. That didnt work somehow for me: http://www.ppc-coach.info/personalize-your-landing-pages-using-geotargeting

    What can I do?

  3. myrko
    Member
    Posted 2 years ago #

    Ok I solved it.

    Javascript Geo-Targeting is provided by MaxMind:
    - http://www.maxmind.com/app/javascript_city
    - http://www.maxmind.com/app/javascript

    ... which works perfectly with all Caching Plugins (since it's client-side).

    Just in case somebody needs this!

Topic Closed

This topic has been closed to new replies.

About this Topic