Google Analytics Data Upload2017-02-12T13:04:49-04:00

Google Analytics Cost Data Upload


It is now possible to upload cost data from external advertising sources into Google Analytics, permitting consolidated reporting of all you advertising costs and their effectiveness. This enables reporting of data not collected through traditional Google Analytics tracking or UTM tagging. For example, you can upload ad cost, ad clicks, and impressions for Bing and Yahoo! Ads, Facebook Ads, and LinkedIn advertising.

NEXT takes the hassle out of the process. Starting with the raw files downloaded from other systems, NEXT handles the pre-processing into the formats required, and then handles the upload of advertising costs into your Google Analytics account.

Unlike other services, NEXT has no limits to the number of accounts you can upload to from a single license. It is also possible to process a whole month at one time, even uploading historical cost data. NEXT puts you in control.

The process can be summarized into 4 easy steps:

  1. Set up a custom data source in Google Analytics
  2. Download the ad cost data from your alternate service (Bing, facebook, LinkedIn, etc)
  3. Pre-process the data to conform to Google’s required upload format
  4. Upload the data into your Google Analytics account

Generic Cost Data Upload Reference (PDF)

Setting Up The Custom Data Source

Google Analytics provides a user interface to create a custom data source. At the time of writing this (circa mid-October 2012), the steps were this:

  1. Visit Google Analytics and sign-in
  2. Navigate to the Admin
  3. Select the Account and then Web Property for which you want to create a custom data source.
  4. Select the Custom Definitions tab and then the Custom Data Source tab.
  5. Click New Custom Data Source
  6. Provide a Name and Description for the Custom Data Source
  7. The Type can only be set to ‘Cost’
  8. Select which Profiles to link to the Custom Data Source. The Cost Data for this source will appear in the selected Profiles reports.

Note: At least one profile should be linked to a custom data source so that uploaded data is available for reporting purposes..

Download Your Ad Cost Data

The data to be uploaded would be exported to a data file from any advertising services that provides spend, impressions, and/or clicks data for you to analyze. This includes but is not limited to:

  • Bing ads (formerly Microsoft adCenter); or
  • Facebook Ads; or
  • LinkedIn Ads; or
  • Anything that provides spend, impressions, and/or click information

The file should be in either tab delimited (with a .txt file extension) or CSV format (with a .csv file extension). CAUTION: if you edit these files with Microsoft Excel, be sure to save them as CSV (MS-DOS) format.

Pre-Process the Data

The data file will have been exported from a system that doesn’t conform to what Google Analytics allows to be uploaded. More than likely, there are several aspects to the file that will need to be modified. For example:

  • Often, the header and detail records do not start on the first record, so the leading lines need to be excluded.
  • Sometimes there are trailing text lines that are not valid data, and these need to be excluded.
  • Dates need to be parsed and converted to a format that’s accepted (2012-12-31).
  • It will likely have columns in it that need to be excluded from the upload.
  • Some required fields such as ga:medium and ga:source might be missing from the file and need to be provided.
  • The column names that are to be uploaded will need to be altered to match the terminology required by Google Analytics
  • Some data might benefit from being normalized, to make it more comparable to other data that’s already in Google Analytics.
  • Some data might benefit from being aggregated, to make it less detailed so it can be comparable to other data that’s in Google Analytics.

NEXT has features built-in that address these requirements. When you are working with an exported file, you can also use NEXT Analytics features prior to it being uploaded to fine tune the data in an automated way. For example, you can:

  • Use the “Fix” operation to change the data before uploading. If your Bing campaign names weren’t aligned with your adWords campaign names, this is your chance to correct them prior to upload.
  • Filter the data. For example, you could remove click or spend or impression events that were below a threshold or used with a test campaign.

All of your operations, performed once, are recorded. The same steps can be automatically re-executed each reporting period.

Perform the Upload

NEXT lets you step through the upload and record it in the same way, so the process can be repeated day after day, or week after week, or month after month, depending on how often you want to process the data. You specify the date column, and have the option of specifying a source and medium value for the entire file, or include them in the file for line-by-line control.

By default, NEXT will replace previous uploads, allowing you to repeat an upload that did not complete or contained erroneous data. NEXT allows you to override this setting, appending up to 19 more uploads to the original data set; useful if you have a lot of data to upload.

The Outcome

After performing the Upload, your data will be available for queries. The entire process is repeatable because it’s all been automatically recorded and a script created in two workbooks.

  1. At the end of the next reporting period, export the data for the new date range and replace the file you previously worked with, and
  2. Refresh the first workbook to perform the conversion actions on the new data.
  3. Refresh the second workbook to perform the data upload

Case Study

NEXT worked closely with Cardinal Path, a Google Analytics Certified Partner to prepare a case study involving Natural Wellbeing on how they could gain more insight into their online marketing efforts by importing PPC data sources such as Bing adCenter, Facebook, LinkedIn among others into Google Analytics using NEXT Analytics v5.

Read the whole customer success story at the Cardinal Path blog here

Link to Cardinal Path www site