Block Library
Outline
What is Aggregate block?
Aggregate block is used for summarizing and consolidating data. It allows you to take a set of individual data points and apply an aggregation function to them, often grouping the results by a specific attribute
Follow this demo to get hands-on with Aggregate block: https://optimizely.navattic.com/oxlq07iy
What is Alias block?
Alias block is a simple yet useful tool that allows you to assign a local, more convenient name (an alias) to an existing input.
The demo will show you how easy it is to create and use Alias block: https://optimizely.navattic.com/o3li0u9l
What is And/Or block?
And/Or block is used to combine multiple individual conditions using AND or OR operators, ultimately yielding a single boolean (true or false) output.
This demo will show you exactly how to set up And/Or block: https://optimizely.navattic.com/wdll06ee
What is Behavioral cohort block?
Behavioral cohort block is used to define and select a subset of a dataset based on the observed behaviors and other properties of the records within that dataset. In simpler terms, it allows you to group users or entities together based on the actions they've taken (or haven't taken) within your product or service.
The Behavioral Cohort block extensively accommodates the following categories of criteria:
- Filter - narrow down your dataset based on the property values of the records
- Single Behavior - allows you to include records based on whether they performed a specific event or action
- Sequence - define cohort where users must perform actions in a specific order
- Group – combination of above
Use this demo to get familiar with behavioral cohort block: https://optimizely.navattic.com/z4la087d
What is Bin block?
Bin block is used to categorize numerical or other quantifiable properties into distinct groups or "bins" based on their value ranges. It allows you to transform continuous data into discrete categories, which can be very useful for analysis and segmentation.
To learn how to use property block, check the demo: https://optimizely.navattic.com/oc13b019t
What is Filter block ?
Filter block is used to select a specific subset of data from your input by applying defined conditions. The primary purpose of the Filter block is to narrow down your data to focus on relevant records.
See how to create and apply filter block in this quick walkthrough below: https://optimizely.navattic.com/wxle0uf6
What is Intervals engaged block?
Intervals engaged block calculates the number of time intervals, such as days or weeks, during which a user or other actor interacted with a product or service. This block is useful for measuring user engagement with a product, feature, new release, or experiment.
Look at this demo to know more on intervals engaged block: https://optimizely.navattic.com/msk01uz
What is Period vs. previous period block?
Period vs. previous period block is used to compare a metric between the current and preceding periods. The output is a metric that shows the comparison result or difference between the current periods.
Watch the demo to understand how period vs. previous period block is created: https://optimizely.navattic.com/5kkx0end
What is Formula block?
Formula Block allows you to perform custom computations and calculations using NetScript, Optimizely's formula language. Essentially, it lets you apply mathematical and logical operations to various data elements within your analytics.
For detailed documentation on syntax and functions, refer to the NetScript language reference.
What is If/Then/Else Block?
The if/then/else block allows you to create a new property or value based on a series of defined criteria. It works by evaluating conditions sequentially and assigning an output based on the first condition that is met.
How does it work?
- When a record (a row of data) enters the block, it's evaluated against the If conditions in the order they are defined.
- As soon as an If condition is met (i.e., it evaluates to true), the block executes the corresponding Then action and outputs that value. It then stops processing for that record.
- If none of the If conditions are met, and you have specified an Else value, that Else value will be the output.
- If no Else value is specified and no If condition is met, the output for that record will be null.
To get a better idea on how to use both these blocks, watch this demo: https://optimizely.navattic.com/t7lb046i
What is Moving Aggregation block ?
Moving aggregation block is used for calculating metrics over a sliding or cumulative time window. This means you can analyze trends and patterns in your data over a defined period that moves forward in time.
There are two main types of aggregation you can perform with this block:
Regular Aggregation
- This is similar to a window function in SQL. It applies a secondary aggregation on data that has already been pre-aggregated.
- It does not change the dimensionality of your input
For better guidance on how to apply this use, watch this demo: https://optimizely.navattic.com/zcki05e8
Hopping Aggregation
- This directly aggregates raw data and changes the dimensionality of your data. It computes metrics over a rolling time window without re-aggregating pre-aggregated data.
- This is particularly useful for operations like rolling averages or distinct counts over a moving window, which are harder to achieve with regular aggregation.
Use the interactive demo below to get familiar with how to use this block: https://optimizely.navattic.com/1mla0ic4
What is Previous /next value lookup?
Previous/next value lookup is designed to retrieve the value of a time-ordered property that occurred immediately before or immediately after a specific event or data point for a given actor.
This guided demo will make you better understanding on how to use it: https://optimizely.navattic.com/t6ok0si1
What is Property block?
Property block is used to select a specific property from a dataset or another block. This allows you to extract and utilize specific data points from your datasets or other blocks within your analytics explorations.
To learn how to use property block, check the demo: https://optimizely.navattic.com/bqla0m7m
What is Rank block?
Rank block is used to order properties within a dataset based on a specific measure. The result shows you the relative position or rank of the selected property value.
Watch this demo on how to use rank block: https://optimizely.navattic.com/czl4073c