Discuss regaining access to Analytics accounts, restoring accounts, changing user access levels, and navigating the homepage
 
Guide Me
star_border
Reply

Campaign data import

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I have question about Data Import, more specifically with Campaign Data import.

 

There are two options to choose from:

  1. manual import
  2. programmatically (using API)

 

I am looking for a way to get data with API and automatic syncing with Google Sheets. Basically, if you don't want to download and import data every time, it would be far better to have it sent using the API functionality. I know Google Sheets are very customizable, maybe some have already created some tutorial or script?

 

I've found something similar here, but working on Cost data import: http://www.ryanpraski.com/google-analytics-cost-data-import-google-sheets-automated/. I cannot find anything in code that tells which kind of import is about. Is it reusable for Campaign data import also? 

 

 

1 Expert replyverified_user

Campaign data import

Top Contributor
# 2
Top Contributor

Hi Marin,

 

Ryan's post is definitely re-usable for campaign data, with some light touches.

 

VP & Chief Evangelist at Hub'Scan | Contact me
Level 80 Digital Analytics Warrior, KPI Therapist and Keeper of the One True Tagging Plan

Campaign data import

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hi Julien,

 

Thank you for reply. 

 

Could you please point me where in code should I make some changes? I cannot see where is specified that this should be import for Data.

 

Is it based just on CSV headers?