1
votes

I need to get following google campaign data for the user visiting our website from google analytics and pass the data to another application

  • Campaign Content
  • Campaign Medium
  • Campaign Name
  • Campaign Source
  • Campaign Term

Found this google analytics API for user activity. https://developers.google.com/analytics/devguides/reporting/core/v4/user-reporting

Does it provide real time data? Is there another API which we can use to get this information real time for the user based on the google analytics User_ID or Client_ID?

1

1 Answers

1
votes

Real-time traffic source information is unavailable via Analytics APIs. Also using APIs for this purpose would be hardly practical because of API limitations and quotas. You might get some very close results with alternatives like sourcebuster.js but note that this wouldn't provide you with Google Ads synced data