Retrieve the goMobi JavaScript snippet, which the customer embeds in the header for their source (desktop) site to power the reformatting for mobile devices.


Use this command to retrieve the goMobi JavaScript snippet. The customer embeds the snippet in the header for the desktop site associated with the source domain name. goMobi uses this header information to detect the visitor’s mobile device and reformat the desktop site for the specific mobile device.


All resellers have access to this command.

Implementation on

Log on to with Login ID resellid, password resellpw.

Click any subscription that displays a designated source domain.

In the Add Mobile Site Redirect row, the text box contains a JavaScript snippet supplied by the GM_GetRedirectScript command.


The query must meet the following requirements:

  • The login ID and password must be valid.
  • Redirect scripts require a designated source domain name.

Input parameters

Build the query string using this syntax:


Parameter Status Description Max Size
UID Required Account login ID 20
PW Required Account password 20
SourceDomainName Required Domain name of the desktop Web site to be mobilized 70
MobileDomainName Required Domain name that mobile device user types to access the mobile-formatted Web site 70
ResponseType Optional Format of response. Permitted values are Text (default), HTML, or XML. 4


Returned parameters and values

Parameter Description
RedirectScript Script, suitable for cutting and pasting into the header code for the Web site associated with the SourceDomainName value specified in the query string
Command Name of command executed
ErrCount The number of errors if any occurred. If greater than 0 check the Err(1 to ErrCount) values.
ErrX Error messages explaining the failure. These can be presented as is back to the client.
Done True indicates this entire response has reached you successfully.



  • The default response format is plain text. To receive the response in HTML or XML format, send ResponseType=HTML or ResponseType=XML in your request.
  • Check the return parameter ErrCount. If greater than 0 the transaction failed. The parameter Err(ErrCount) can be presented to the client. Otherwise process the returned parameters as defined above.