You can't buy data strength. You build it.
Google made data strength central at GML 2026 and now measures it in Google Ads. But it is not a setting you switch on. Here is what actually builds it.
Mark Rochefort21 Jun 2026
Blog
Adam Englebright29 January 20154 min read

In Part 1 of this series, I discussed R briefly and explained why it might be useful for people doing analytics work. I also introduced the libraries that allow you to interface R with Google Analytics. At this point, you should have R and RStudio installed on your computer, along with the RGA package. If you have not done this yet, please return to Part 1 and complete these steps first.
Next, we need to authorise the package to access our GA data. You have to go to the Google Developers Console and set up a new project – it doesn’t really matter what it’s called – then select the ‘APIs’ option from the “APIs & auth” menu on the left-hand-site, enable the Analytics API (click on it, turn it “on”), then go to “Credentials” (below “APIs” on the left-hand menu) and click “Create new Client ID”, and select “Installed application”, and click “Create ID”. This is a bit of a bother, and the Developer Console interface can be a bit sluggish and weird, but it’s preferable to all the messing around with temporary tokens that expire after an hour and that kind of nonsense that you have to do with some of the other libraries.
Now you’ve got the client ID and client “secret”, you can authorise… sorry, authorize* the application, so open RStudio, click on the "packages" tab in the bottom-right window if it's not already selected and tick the box next to "RGA". Then, give it access to your GA account by entering the following code into the R console:
authorize(client.id = "your client id", client.secret = "your client secret")
(quotes included). This will open an OAuth page in your browse asking if you want to allow the app to access your Google Analytics data (you do (obviously)).
Now you have access to the API with R, you can begin to pull in data.
We investigate and fix collection, tagging and consent problems, with a record of what was tested and what remains uncertain.
get_accounts: This is a pretty basic command – it lists all the accounts to which you have access.
get_accounts(start.index = NULL, max.results = NULL, verbose = getOption ("rga.verbose",FALSE))
You can also get profiles (views), segments and goals, using similar commands:
get_profiles(account.id = "~all", webproperty.id = "~all", start.index = NULL, max.results = NULL, verbose = getOption("rga.verbose", FALSE)) get_segments(start.index = NULL, max.results = NULL, token, verbose = getOption("rga.verbose", FALSE)) get_goals(account.id = "~all", webproperty.id = "~all", profile.id = "~all", start.index = NULL, max.results = NULL, verbose = getOption("rga.verbose", FALSE))
For these, the things you can tweak are pretty similar – account.id, webproperty.id and profile.id for some of them – which just mean that you can get only the results for the accounts, properties and views (profiles) that you’re interested in. Only want the views for, e.g. the Universal Analytics property for an account? Enter the account.id and web property.id in the quotes in place of “all”. Pretty simple.
This isn’t, it should be emphasised, a comprehensive guide, and there are quite a few other things you can do in this vein – pulling lists of filters on views, for instance – but for that I would suggest you more fully investigate the library itself. As for the meat of the RGA library’s utility – getting analytics data, we’ll be looking at that next time.
We investigate and fix collection, tagging and consent problems, with a record of what was tested and what remains uncertain.
An automated first look at collection and consent signals visible on your public site. No account access needed.
Google made data strength central at GML 2026 and now measures it in Google Ads. But it is not a setting you switch on. Here is what actually builds it.
Mark Rochefort21 Jun 2026
AI expert Daniel Hulme, founder of Satalia, shares his journey from UCL PhD to entrepreneur, discussing AI, consciousness & deep tech.
Will Hayes28 Nov 2025
Yali Sassoon joins The Measure Pod to discuss Snowplow’s growth, AI innovation, data challenges, and the future of user experience.
Will Hayes30 Oct 2025