Search code examples
rubygoogle-analyticsgoogle-analytics-api

Create New View for Google Analytics with Ruby


I was wondering how to create a new view for google analytics with ruby using the current 0.8.6 version of the library or otherwise? This would be after I have gotten the appropriate access token.

The specific call is here: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/profiles/insert

Any tips would be very much appreciated!


Solution

  • Write operations in the Management API (e.g. create, update, delete, patch) for Web Property, View (Profile), and Goal resources is currently available as a developer preview in limited beta. If you're interested in using these features, request access to the beta

    It can take a while to get access it took me over a month you might want to start there first. While you are waiting I suggest you look at the normal ruby google analytics core reporting API examples once you are familiar with those you should be able to get the insert views working.