The doc_tracking function raises a document tracking event for a document.
doc_tracking( document , eventName [, eventMetadata] [, reference] )
| Argument | Description | 
|---|---|
| document | (LuaDocument) The document to track. | 
| eventName | (string) The event name. You can type a description of the event. | 
| eventMetadata | (table) A table of key-value pairs that contain metadata for the document tracking event. | 
| reference | (string) The document reference. You can set this parameter to override the document reference used. | 
(Boolean). A Boolean that indicates whether the event was raised successfully.
local ref=document:getReference()
doc_tracking(document, "The document has been processed",
      {myfield="myvalue", anotherfield="anothervalue"}, ref )
        
        |  |