Click to return to the Content     
LOGO Element     PURGETIME Element     CDF Reference for Active ...    
Web Workshop  |  Content & Component Delivery

LOGTARGET Element


Specifies where to send a CDF client page-hit log file.

Syntax

<LOGTARGET
    HREF="url"
    METHOD="POST"
    SCOPE="ALL" | "OFFLINE" | "ONLINE"
>

Attributes

HREF
Required. URL the log will be sent to.
METHOD
Required. String value that specifies the HTTP method to be used for sending the data.
SCOPE
String value that specifies which type of page hits should be logged. Page hits can be logged for offline (read from local cache) or online (read from URL) browsing. The default for this attribute is "ALL", which logs both types of hits.

Element Information

Number of occurrences None or one (top-level channel only)
Parent elements CHANNEL
Child elements HTTP-EQUIVPURGETIME
File formats supported CDF
Requires closing tag Yes

Remarks

This element must occur before any ITEM elements in the CDF file.

The LOGTARGET's domain must be the same as the CDF file's domain. The log file can only be sent to the domain that served the channel. This is to prevent providers from tracking the client's use of other provider's sites.

Example

This example shows how to specify where to send a CDF client page-hit log file.
<LOGTARGET
      HREF="http://www.joyware.tld/logging"
      METHOD="POST"
      SCOPE="OFFLINE">
   <PURGETIME HOUR="12"/>
   <HTTP-EQUIV NAME="ENCODING-TYPE" VALUE="gzip"/>
</LOGTARGET>


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.