Creating expressions

To create an expression based on mathematical formulas or calculations that becomes a customer attribute, follow the procedure.

Requirements


  • A tracking code implemented into the website.

Procedure


A blank expression
A blank expression
  1. Go to Analytics icon Analytics > Expressions > New expression.
  2. To let other users know about the purpose of the expression, you can add a short description to it.
  3. To select the type of expression you want to create, click the Blue arrow icon.
  4. From the dropdown list, select Attribute. In practice it means that you can use this expression in different types of analyses (for example, aggregates, funnels, and more).
  5. To start creating the formula of the expression, click the Select button.
  6. You can choose one of four elements: customer, constant, dynamic key, or a function.
  7. To define the settings of the chosen element, click that element.
  8. In case you choose a customer, from the Choose attribute dropdown, select the customer attribute you want to include in the formula.
  9. In case you choose a constant, type the number or text (users can write a number in words, nine instead of 9).
  10. In case you choose a dynamic key, type in the key name (the ID of the key, for example orderID) and its default value. The default value will be replaced with the target one indicated in, for example, the request for expression result (when you request the expression result through Synerise Analytics API).
  11. Define the dependencies between the elements in the expression by selecting the mathematical operators.
  12. To complete creating the expression, click Save.
😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.