To create an exploration using NetScript syntax,
- Let us consider a simple example to understand the flow of creating an exploration. Say you want to count the number of product events done by users and then categorize them based on the number of interactions made.
- In the Catalog, navigate to Datasets > Product Events. Double-clicking anything in the catalog will copy the syntax in the builder. Double-click Product Events and type count. This will display the total number of product events.
- Now, let us consider that we want to count the number of product events by user - enter count by and double-click the Users dataset. This will give you the desired result.
- As the next step, let us create bins. Let's save the previous result as a variable called eventsByUser and use the if..then..else syntax to create the bins. Save this as a variable called eventsByUserBinned.
- Finally, to count users by the bin they belong to, double-click Users on the catalog and and type count by eventsByUserBinned. This will categorize users by the number of events, which is our desired result.
- Once done, click Save.
Please sign in to leave a comment.