Report on CPC & ROAS in GA4? Yes, you can. Are you looking to analyse metrics like ROAS in GA4? Want to gain deeper insights into the efficiency from your ad campaigns? Google Analytics 4 now allows for the import of cost data, making it easier than ever to track your advertising spend alongside your website traffic. Let’s have a look at how to do it.
EDIT: Google has recently expanded the import possibilities and soon I will update this article accordingly.
What can you import into Google Analytics 4?
Apart from implementing the GA4 tracking code on your website or app, or implementing the GA4 Measurement Protocol in your microwave (yes, you could do that), there are more ways to ingest data into the analytics tool.
You can simply create scheduled imports for all kinds of data namely, user-IDs, item data, offline event data, and yes, cost data. As you have already noticed, in this article we will look at the latter.
What are the benefits of importing cost data into GA4?
Firstly, it allows for more accurate ROI calculations. By knowing exactly how much you’re spending on advertising, you can calculate the return on investment more accurately, making it easier to make informed decisions about where to allocate your marketing budget.
Secondly, it enables a more in-depth analysis of your advertising campaigns. With cost data, you can track the performance of specific campaigns, ad sets, or even individual ads, allowing you to make more informed decisions about which campaigns are driving the most traffic and generating the highest revenue.
From which sources can you import your cost data?
Additional data sources are now supported for cost data import in open beta. With this enhancement, you are able to import cost data from multiple sources such as:
- Google Sheets
- Amazon Redshift
- Amazon S3
- BigQuery
- Google Cloud Storage
- HTTPS
- MySQL
- PostgreSQL
- Snowflake
How to import cost data into GA4?
Soon I will update this guide to also include some of the new data sources released on the 24th of June 2025.
Before, you could only import your (ad) cost data into GA4 in 2 ways: Manually or by SFTP with the help of a developer. Let’s have a look at the manual import.
- Go to Admin > middle column > data import
- Create data source > cost data
- Choose an import source (SFTP or manual CSV)
- Download the template from this Google help article
To import cost data you need to link the specific ad click to the session in GA4. You can do this with UTM parameters.
- Update all UTMs to make them match and add the UTM ID
- Export your data from Microsoft Ads or Meta Ads
- Check the help article to make sure the formatting is correct.
- Now you need to map the analytics fields to the import fields. As you can see in the screenshot below, once you have created the data source, you cannot edit the mappings.
That’s it. It takes a while to import, so be patient. Once it’s done, come back to it and check all the fields.
Import your data from many different sources. You can find useful links for different platforms like Microsoft, Linkedin, Facebook and Verizon, at the bottom of the help article.
Heads up: GA4 only allows for one import source so, if you want to import from multiple sources you need to combine them in one sheet.
You can update the data regularly for central cost reporting. This needs to be in the same file so save it well.
The takeaway
Importing cost data into Google Analytics 4 is really handy if you want more insights into advertising performance. It’s not a set and forget feature but with the new cost data import methods it has been made a lot easier. Try it out for yourself!