Build a NetScript exploration

  • Updated

The following example shows how to create an exploration to count the number of product events users perform and then categorize them based on the number of interactions they make:

  1. In the Catalog, go to Datasets > Product Events.
  2. Double-click Product Events and type count. This will display the total number of product events. (Double-clicking anything in the catalog copies the syntax in the builder. )

    opti-ns-1.png

  3. To count the number of product events by user, enter count by and double-click the Users dataset. 

    opti-ns-2.png

  4. Save the previous result as a variable called eventsByUser and use the if..then..else syntax to create bins. Save this as a variable called eventsByUserBinned.

    opti-ns-3.png

  5. Double-click Users on the catalog and type count by eventsByUserBinned to count users by the bin they belong to.
  6. Click Save.

    opti-ns-4.png