The mgiInlineToken Tag

Tag Behavior

Use the mgiInlineToken tag to append a token to a URL. A token number can be used as a visitor's unique shopping basket identification. A token is composed of the visitor's IP number and time interval so that each token is absolutely unique.


Tag Syntax

The mgiInlineToken tag has one required parameter and three optional parameters. The tag form is:

<mgiInlineToken url="URL" mode="Mode" pathArgumentName="Name" 
pathArgumentValue="Value">

Required Parameters:

  • url - The url is the URL to tokenize.

Optional Parameters:

  • mode - The mode is the function that the mgiToken tag performs. In "addTokenOnly" mode, the mgiToken tag appends the mgiToken path argument and unique token value to URLs. In "addTokenWithPathArguments" mode, the mgiToken tag appends the token and all path arguments to URLs. In "addPathArgumentsOnly" mode, the mgiToken tag appends all path arguments to URLs. The default value is "addTokenOnly".
  • pathArgumentName - The pathArgumentName is the name of a path argument that is always appended to tokenized URLs. If this parameter is not followed by a pathArgumentValue parameter in the tag, it is ignored.
  • pathArgumentValue - The pathArgumentValue is the value of the specified path argument that is always appended to tokenized URLs. If this parameter is not preceded by a pathArgumentName parameter in the tag, it is ignored.


Example Usage and Output

<mgiInlineToken url={mgiRequest name="Referrer"}>

In this example, a token is appended to the page referrer address.


Suggested Usage

  • Shopping Baskets
  • Affiliate Systems


[Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]


[MGI Guides Main Menu] [User Guide Main Menu]