Skip to main content

Import budget data from Google Sheets

Import marketing budgets and targets from Google Sheets into Funnel.

Import your marketing budgets and targets from Google Sheets into Funnel. You can then compare your budget with your actual results.

Before you begin

  • Choose the budget case that matches your data.

  • Make a copy of the relevant Google Sheets template.

  • Prepare the budget values and any dimensions that you want to compare in Funnel.

Choose a budget template

Companies organize budgets in different ways. The following cases cover common budget structures.

Case A: Compare a total monthly budget with monthly cost

Use this case to compare monthly spending with the total budget for that month.

Case B: Compare a monthly budget by dimension with monthly cost

Use this case when you have a separate monthly budget for each dimension value, such as Traffic Source.

Case C: Split a monthly budget into daily targets

Use this case to compare a monthly budget or target with daily actual results. The custom function distributes each monthly value equally across the days in that month.

Choose the template from Case A or Case B.

Case D: Compare a campaign budget with cost for a custom date range

Use this case for campaigns that have different start dates and end dates. The custom function splits each campaign budget into daily values.

Prepare the budget sheet

Case A: Compare a total monthly budget with monthly cost

A budget sheet can represent a month in several ways, such as January 2020, Jan 2020 or 202001. To make the date consistent, enter the full monthly budget on the first day of the month. Funnel maps this date to the correct month.

Change the template values to match your budget. Then follow the steps in Import your budget into Funnel.

Case B: Compare a monthly budget by dimension with monthly cost

Enter the full monthly budget on the first day of the month. Add a field for the dimension that divides the budget. This example uses Traffic Source. Make sure that each dimension value exactly matches the corresponding value in Funnel.

Change the field values to match your budget or target. Then follow the steps in Import your budget into Funnel.

Case C: Split a monthly budget into daily targets

  1. Make a copy of the Case A or Case B budget template.

  2. Change the field values to match your budget.

  3. Make sure that the month column uses the date type and contains the first day of each month.

  4. Click + in the lower-left corner to add a sheet.

  5. Copy the relevant formula into cell A1 of the new sheet.

The SplitMonthToDaily function converts monthly values to daily values. The function requires the budget sheet name, data range, month column name and budget column name. If your sheet or columns use different names, update these arguments in the formula.

Split one metric into daily targets

To split one metric, such as Budget, use =SplitMonthToDaily('[Template] Case A - Monthly Budget'!A:D,"First day of the month","Budget").

Split multiple metrics into daily targets

To split multiple metrics, such as Budget and Revenue, use =SplitMonthToDaily('[Template] Case B - Monthly-Traffic Source Budget'!A:D,"First day of the month",{"Budget","Revenue"}). Keep the curly braces around the metric names.

After the function finishes, the new sheet contains daily budget values. Then follow the steps in Import your budget into Funnel.

Case D: Compare a campaign budget with cost for a custom date range

Store each campaign budget with a campaign identifier and a date range. For example, use Campaign name or Campaign ID as the identifier. Use Start date and End date for the date range.

The custom function distributes the budget equally across all campaign days. For example, a campaign with a budget of 100 USD that runs for 10 days gets a daily budget of 10 USD.

  1. Add a sheet.

  2. To split only the Budget metric, paste =SplitToDaily('[Template] Case D - Campaign Budget'!A:F,"Start date","End date","Budget") into the first cell.

  3. To split multiple metrics, such as Budget and Revenue, paste =SplitToDaily('[Template] Case D - Campaign Budget'!A:F,"Start date","End date",{"Budget","Revenue"}) into the first cell.

  4. If your columns use different names, update the column names in the formula.

After the function finishes, the new sheet contains daily budget values. Then follow the steps in Import your budget into Funnel.

Note: A custom function can fail when it processes many rows.

Import your budget into Funnel

Use the Google Sheet that you prepared to upload your budget to Funnel. Configure the fields as follows:

  1. Set the date field to the DATE type and use the YYYY-MM-DD format.

  1. Set the Budget Value unit type to MONETARY and the aggregation to SUM.

  1. Set the date attribution to Data by daily date.

  1. If your budget contains extra fields, such as Traffic Source, edit the matching custom dimension. Add a rule that uses the dimension from the sheet. The following example adds sheet data to the existing Traffic Source dimension.

What to expect

Your budget data is available in Funnel with the date, monetary value and dimension settings that you configured. You can compare the budget with your actual results.

You can also use the budget comparison demo dashboard as an example.

Did this answer your question?