Home ]

                                           

Up Plotting Server Log Files

GeoSelect Common How-To Resources

How To Use GeoSelect to

How-To: Use GeoSelect to target content to different locations.

For this example we will target a page to 2 different locations (US and Japan). The following steps will illustrate how to accomplish this:

1.    Within the body tags of the page, insert the opening and closing geoselect tags.

 <html>
  <body>
    <geoselect>
    </geoselect>
  </body>
</html>

2.    Within the geoselect tags, insert the geoif tags that you wish to target your content too.

<geoselect>
 <geoif default>
 </geoif>
 <geoif geodefault>
 </geoif>
 <geoif location="US">
 </geoif>
 <geoif location="JP">
 </geoif>

</geoselect>

3.    Copy the content you wish to display to each location. Typically you would start by copying all the content into each geoif, and then customize each section of content within each tag.

<geoselect>
  <geoif default>
    <p>Copy the default content here</p>
  </geoif>
  <geoif geodefault>
    <p>Copy the default geographic content here</p>
  </geoif>
  <geoif location="US">
    <p>Copy US content here</p>
  </geoif>
  <geoif location="JP">
    <p>Copy Japan content here</p>
  </geoif>
</geoselect>

Note: You may copy any amount of content you wish within each geoif tag.

 

How-To: Use Geobytes tags to dynamically customize content

This example will demonstrate how you can use the geobytes tags to dynamically customize content. There are over 20 different tags you can use to dynamically customize content to the visitors location. Click here to view the different tags.

1.    Content that we want to customize

Special welcome to visitor's from <Country>, <City>.

2.    Insert the following HTML code:

<p>Special welcome to visitor's from <geobytes country>, <geobytes city>.</p>

Note: Geobytes tags can appear on any part of the page, but are usually used in conjunction with geoif tags.

How-To: Use GeoSelect to perform dynamic re-directs

GeoSelect offers much more than simple page redirects, but dynamic redirects are probably the fastest way to start using GeoSelect on an existing web site where you already have a separate page for each geographic location.

Here is an example of using GeoSelect to perform localized page re-directions based on the viewer's country.

<html>
<head>
  <geoselect>
    <geoif location="CA">
      <META HTTP-EQUIV="Refresh" CONTENT="1;
      URL=http://www.yoururl.com/ca.html">
    </geoif>
    <geoif default>
      <META HTTP-EQUIV="Refresh" CONTENT="1;
      URL=http://www.yoururl.com/notca.html">
    </geoif>
  </geoselect>
</head>
<body> ...
</body>
</html>

In the above example, users from within Canada would be redirected to ca.html while everyone else would be redirected to notca.html. 

Geobytes Home Page

The Basics
Using GeoSelect
Find a Location Code 
Tag & Header Info
How To
GeoSelect How-To
Code Examples
Geo Tag Examples
Sponsored Projects

Coming Soon!

FAQ's
Technical FAQ's
General Product FAQ's
Support
Version Updates
Geobytes Support Page
Contact Support Team
 
Modified:09/19/05   
© 2000 - 2002   
geobytes, inc.  
ARBN 091 652 961
  Send mail to info@geobytes.com