If you need to work with certain metrics which are not available in TheOptimizer, you can create your own custom metrics using a formula.
Step 1: Under Campaigns, click on the metrics icon.
Step 2: Scroll until you find Custom Metrics, and click on the pen icon to edit it.
![](https://theoptimizer.io/help/wp-content/uploads/2024/01/Custom-Metrics-Facebook-The-Optimizer-1024x844.png)
Step 3: Name your custom metric, define the format, and add your calculation using the formula bar. A custom metric calculation can include metrics from both your TikTok & external revenue stream reporting.
Click on Save. Now, you can use this custom metric while setting up your automation rules in the next step.
![](https://theoptimizer.io/help/wp-content/uploads/2024/01/Facebook-Create-Custom-Metrics-The-Optimizer-1024x475.png)
Next step: Automate your TikTok campaigns
Start automating your TikTok campaigns with our rule examples here.