Report group syntax

Now add a report group to the event. In Basic mode, adding the report group URL/Host/App/Server looks like the following:

  • You can see an example of the recorded data for this report group at the beginning of this section. See Referencing event values.

In Advanced mode, the event now looks like the following:


// Generated by Discover Event Manager
// NOTE: Do not change event name
function NS$E__ADVANCED_MODE_EVENT__634339708610416368()
{
if (!($S.IsBot))
    {
      // Set fact for Report Group: No Dimension Report Group
      $F.setFact
        ("NS.F_E__ADVANCED_MODE_EVENT__634339708610416368", "TLT$NULL");
      // Set fact for Report Group: URL/Host/App/Server
      $F.setFact
        ("NS.F_E__ADVANCED_MODE_EVENT__634339708610416368_FACT1", "TLT$NULL");
    }
}

The only change is the addition of the new setFact call. This call adds a report group to the event.

There is one major difference in how this fact is specified versus the "default' fact. That is the fact suffix at the end of the fact name (FACT1):

NS.F_E__ADVANCED_MODE_EVENT__634286306745774758_FACT1

Fact Suffix

The default fact does not have a suffix at all. Any report groups that are added to the event are assigned a fact suffix, including an index number.

The fact number suffix represents the order in which the report group was added to the event. It is not necessarily the order that the existing report groups are displayed in Basic mode of the event. For example, if you add Report Group A to Event X, it is assigned to Fact1. But if you remove Report Group A and add Report Group B, then Report Group B is assigned Fact2 even though there is only one explicitly added report group remaining on Event X. If you readd Report Group A, then that added fact is still Fact1, even though it is displayed as the second report group on Event X in Basic mode.

The other thing to notice is that the same value (in this case count in session) gets written into both facts by default. Through Advanced mode, it is theoretically possible for a different value to be written into each fact. However, writing a different value in each fact is not recommended and may produce anomalies in reporting. The best practice is to create a separate event for each recorded value.

Current Event Facts

In the Current Event Facts header in the left column of the Event Manager in Advanced mode, there are 2 facts. One is the name of the event, and the other is the name of the event and the name of the added report group.

To find out the fact number, move your mouse over the fact. The internal name of the fact, which is the value that is used in JavaScript, is displayed.