---
title: "How to create a ROAS report using data blending"
slug: "how-to-create-a-roas-report-using-data-blending"
description: "Set up a data blend to analyze marketing results from Google Analytics 4, Google Ads, and Facebook Ads with this comprehensive guide."
updated: 2026-04-22T08:01:11Z
published: 2026-04-22T08:01:11Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supermetrics.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to create a ROAS report using data blending

This guide will help you set up a data blend to analyze the results of your marketing efforts in data analytics platforms.

![Comparison of advertising costs, revenues, and ROAS for various platforms.](https://cdn.document360.io/a13cead5-eaae-456f-9bd1-0941d590c0e3/Images/Documentation/data-blending-example-cost-revenue-roas.png)

In this example, we build a custom field and data blend to blend data from Google Analytics 4, Google Ads, and Facebook Ads to get the channel data from Google Analytics 4.

You can apply this setup also to Adobe Analytics and Piano Analytics or ecommerce and CRM platforms like Shopify or Salesforce.

## Before you begin

You need a Supermetrics subscription with access to the custom fields and data blending features.

Data blending and Custom fields are available only in the Enterprise package. To get the most out of your data with these data transformations, [contact us to upgrade your Supermetrics subscription to the Enterprise package](https://supermetrics.com/enterprise-contact?pid=HUB).

## Instructions

### Step 1: Create a custom field to transform Google Analytics 4 source/medium dimension to channel names

1. On the [Supermetrics Hub](https://hub.supermetrics.com/), go to **Custom fields** under **Manage**.
2. Click **New custom field**.
3. Select **Dimension** and click **Next**.
4. Select the Google Analytics 4 data source and click **Next**.
5. Select the Lookup type transformation.
6. Select the Source / medium field to transform.
7. In the **Lookup table**, insert the source/medium dimension into the Lookup value field, and the channel name into the Return value field. For example, set the lookup value "facebook / cpc" to return the value "Facebook Ads". Note that it's important to have the exact same wording as returned in the Data source field, or the Google Analytics 4 and ads data won't be joined.
  - For example, the lookup value is the value returned directly from the Google Analytics 4 platform. If the lookup value is "google / cpc" from the platform, enter "google / cpc" instead of "google CPC".
  - Similar to the return values, enter the same wording of the data source name returned by Supermetrics. For example, use "Facebook Ads", not "Facebook Advertising" or "Facebook".

Tip: To get the correct lookup value and return value, run queries for Google Analytics 4 and data analytics platforms separately to get the correct values.

![Google Analytics 4 setup for transforming source/medium data using lookup tables.](https://cdn.document360.io/a13cead5-eaae-456f-9bd1-0941d590c0e3/Images/Documentation/data-blending-lookup-table.png)
8. Once your lookup table is set up, click **Next**.
9. Give your custom field a name, such as "Lookup GA4 results to Channel".
10. Click **Create custom field**.

Note that you can create your own custom field logic by using the Google Analytics 4 reference field of your choice, for example, the "source", "first user medium", or "utm" field, as long as you transform the returned value to be the same as the value you want to link from the ads platforms.

### Step 2: Create a union blend with Ads data sources

1. On the [Supermetrics Hub](https://hub.supermetrics.com), go to **Data blending** under **Manage**.
2. Click **Create new blend**.
3. Select **Union blend**.
4. Select the Ads data sources and accounts to use.
5. Once you have the data sources and accounts set up, add the fields to include in the blend. Make sure the Impressions, Clicks, Cost, and any other metrics you want to include in the blend are matched in all ads data sources.
6. After your fields are mapped, click **Next step**.
7. Give your blend a name and an optional description.
8. Click **Create blend**.

### Step 3: Create a join blend with your union blend and Google Analytics 4

1. On the [Supermetrics Hub](https://hub.supermetrics.com), go to **Data blending** under **Manage**.
2. Click **Create new blend**.
3. Select **Join blend**.
4. Select the Data Blending data source, and your newly created Ads union blend, and add Google Analytics 4. ![Setup for blending Google Analytics and paid channels metrics and dimensions.](https://cdn.document360.io/a13cead5-eaae-456f-9bd1-0941d590c0e3/Images/Documentation/data-blending-blend-setup-for-ROAS.png)
5. Add all the relevant metrics and dimensions in both your union blend and Google Analytics 4.
  1. Make sure the **Data source** dimension is present in the union blend.
  2. Make sure the custom field you created in Step 1 is added to the Google Analytics 4 table.
  3. Add the conversion metric you want to track to Google Analytics 4, for example, the Revenue metric. You can also add any custom conversion value.
6. Click **Next step**.
7. Select your join key.
8. For the union blend, that’s the **Data source** dimension.
9. For Google Analytics 4, that’s the custom field created in Step 1.
10. Select the type of join (Left, Right…). If you don’t know what to choose, [learn the difference between different join types](/v1/docs/about-joins-in-data-blending).
11. Name your blend.
12. Click **Create blend**.

### Step 4: Create a custom field for the whole blend

1. On the [Supermetrics Hub](https://hub.supermetrics.com/), go to **Custom fields** under **Manage**.
2. Click **New custom field**.
3. Select **Metric** and click **Next**.
4. Select the Data blending data source and the data blend you created in step 3.
5. Use the Function transformation type.
6. Select the Divide function.
7. For the **Divide** field, select Revenue, and for the **by** field, select Cost.
8. Click **Next**.
9. Give your custom field a name, such as "ROAS (custom field)", and click **Create custom field**.

This new custom field won't be visible in the blend mapping as it's not a field to be mapped, but it will be available in the Data blending data source.

### Step 5: Set up your query in your destination

To build a report using the data blend, take a look at [these instructions](/v1/docs/how-to-use-data-blending-in-your-data-destination) on using the data blend in your destination.

1. In your destination, select the Data blending connector and the data blend you created in step 3.
2. Select the **Clicks**, **Impressions**, **Cost**, **Revenue**, and **ROAS (custom field)** metrics and the **Channel** dimension.
3. Filter out channels that are not equal to "Facebook Ads" or "Google Ads" to filter out all the Google Analytics 4 traffic sources not coming from Ads data sources.
4. Run your query.

This example was for paid channels and Google Analytics 4, but you can do similar reports for any social platform with analytics tools, or ecommerce platforms, as long as you can link the result to the source channel.
