Calculate CTR, OR, and CTOR based on unique event occurrences

Published February 24, 2023
Modules
Difficulty
Selected Clients
sharafdg logoempik logoerli logo

OR (Open rate), CTR (Click-through rate), and CTOR (Click-to-open rate) are indicators which marketers use to estimate the success of campaigns. One of the challenge in calculating these rates is that the customers may open the message and click the links multiple times. That is why it is so important to consider only the first (unique) occurrences of such activity.

By using the Synerise Analytics, you can create analyses which analyze only the unique occurrences of opening a message or clicking links included in them.

The use case describes a process of creating expressions that enrich events such as sending an email, opening of the email, clicking a link in the email with parameters like campaign and customer ID, as well as the journeyId parameter related to automation. Later on, the expressions are used in the metrics to calculate CTR, OR, and CTOR.

Prerequisites


Process


  1. Create expressions that enrich events.
  2. Create metrics that return the unique values of CTR, OR, CTOR

Create expressions


In this part of the process, create two event expressions of the newsletter.open, and newsletter.click events. Those expressions will enrich the events with an email address and customer ID, as well as the journeyId parameter related to automation, if the email was sent through the Automation module. You will use these expressions in the further part of the process.

Important: Depending on the integration with your email provider, you may collect different events or their names may be different in your workspace.

Open newsletter event

  1. Go to Analytics > Expressions > New expression.

  2. Enter a meaningful name of the expression.

  3. Set the Expression for option to Event.

  4. From the Choose event dropdown list, select newsletter.open event.

  5. Build the expression as shown on the screenshot below:

    The configuration of the expression with the newsletter.open event
    The configuration of the expression with the newsletter.open event
  6. Save the expression.

Click newsletter event

  1. Go to Analytics > Expressions > New expression.

  2. Enter a meaningful name of the expression.

  3. Set the Expression for option to Event.

  4. From the Choose event dropdown list, select newsletter.click event.

  5. Build the expression as shown on the screenshot below:

    The configuration of the expression with the newsletter.click event
    The configuration of the expression with the newsletter.click event
  6. Save the expression.

Create metrics


In this part of the process, use the expressions you created in the previous part of the process as factors in formula metrics which calculate CTR, OR, and CTOR as a percentage.

CTR

  1. Go to Analytics > Metrics > New metric.
  2. Enter the name of the metric.
  3. As the kind of the metric, select Formula metric.
  4. Click the Select node.
  5. From the dropdown list, select Event.
  6. As the aggreator, select Count distinct.
  7. From the Choose event dropdown list, select the newsletter.click event.
  8. In the Choose parameter dropdown, choose Expressions and from the dropdown list select the the expression for the unique occurrences of the newsletter.click event you have created in the previous step.
  9. Next to the node with the newsletter.click event, click the plus button.
  10. From the dropdown list, select Event.
  11. As the aggreator, select Count.
  12. From the Choose event dropdown list, select the message.send event.
  13. Change the mathematical operator between the nodes to division sign by clicking the plus sign between them.
  14. Next to the second aggregate, click the plus button.
  15. From the dropdown list, select Number.
  16. Click the added node and change the number to 100.
  17. Change the mathematical operator between the message.send node and 100 to multiplication sign by clicking the plus sign between them.
  18. Save the metric.
The formula of the metric
The formula of the CTR metric

OR

  1. Go to Analytics > Metrics > New metric.

  2. Enter the name of the metric.

  3. As the kind of the metric, select Formula metric.

  4. Click the Select node.

  5. From the dropdown list, select Event.

  6. As the aggreator, select Count distinct.

  7. From the Choose event dropdown list, select the newsletter.open event.

  8. In the Choose parameter dropdown, choose Expressions and from the dropdown list select the the expression for the unique occurrences of the newsletter.open event you have created in the previous step.

  9. Next to the node with the newsletter.open event, click the plus button.

  10. From the dropdown list, select Event.

  11. As the aggreator, select Count.

  12. From the Choose evente dropdown list, select the message.send event.

  13. Change the mathematical operator between the nodes to division sign by clicking the plus sign between them.

  14. Next to the second aggregate, click the plus button.

  15. From the dropdown list, select Number.

  16. Click the added node and change the number to 100.

  17. Change the mathematical operator between the message.send node and 100 to multiplication sign by clicking the plus sign between them.

  18. Save the metric.

    The formula of the metric
    The formula of the OR metric

CTOR

  1. Go to Analytics > Metrics > New metric.

  2. Enter the name of the metric.

  3. As the kind of the metric, select Formula metric.

  4. Click the Select node.

  5. From the dropdown list, select Event.

  6. As the aggreator, select Count distinct.

  7. From the Choose event dropdown list, select newsletter.click event.

  8. In the Choose parameter dropdown, choose Expressions and from the dropdown list select the the expression for the unique occurrences of the newsletter.click event you have created in the previous step.

  9. Next to the node with the newsletter.click event, click the plus button.

  10. From the dropdown list, select Event.

  11. As the aggreator, select Count distinct.

  12. From the Choose event dropdown list, select the newsletter.open event.

  13. From the Choose parameter dropdown list, select the expression for the unique occurrences of the newsletter.open event you have created in the previous step.

  14. Change the mathematical operator between the nodes to division sign by clicking the plus sign between them.

  15. Next to the second aggregate, click the plus button.

  16. From the dropdown list, select Number.

  17. Click the added node and change the number to 100.

  18. Change the mathematical operator between the newsletter.open node and 100 to multiplication sign by clicking the plus sign between them.

  19. Save the metric.

    The formula of the metric
    The formula of the CTOR metric

What’s next


You can display the metrics you created on a dashboard, which will help you present them in convenient and readable form as well as setting time periods from which you want the data to be presented.

Check the use case set up on the Synerise Demo workspace


You can check the configuration of each analysis from this use case in our Synerise Demo workspace.

You can find the following aggregates:

Also, you can find the following metrics:

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form and our representative will contact you shortly.

Read more


😕

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.

Close modal icon Placeholder alt for modal to satisfy link checker