It is NOT possible to create new Google Analytics accounts or profiles programmatically using the existing APIs.
There are two APIs available, the Data Export API and the Management API. However, they are bot read-only.
With the Google Analytics Data Export API, you can develop client applications to request data from an existing Analytics profile for an authorized user, and refine the results of the request using query parameters. Currently, the Data Export API supports read-only access to your Google Analytics data.
Answer from Ciaran on Stack OverflowCurrently, the Management API supports read-only access to five components of the Google Analytics Management system: Account data,Profile data, Web property data, Goal data, Advanced segments
Videos
How does the CampaignTrackly Excel Add-in help zero-learning users?
Why is CampaignTrackly one of the best GA4 UTM builders?
Can CampaignTrackly shorten and track links automatically?
It is NOT possible to create new Google Analytics accounts or profiles programmatically using the existing APIs.
There are two APIs available, the Data Export API and the Management API. However, they are bot read-only.
With the Google Analytics Data Export API, you can develop client applications to request data from an existing Analytics profile for an authorized user, and refine the results of the request using query parameters. Currently, the Data Export API supports read-only access to your Google Analytics data.
Currently, the Management API supports read-only access to five components of the Google Analytics Management system: Account data,Profile data, Web property data, Goal data, Advanced segments
Seems like it's finally possible in 2021 with alpha api.
https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/properties/create#authorization-scopes
I'm putting a QR code on a restaurant receipt that links directly to the Google review page for the restaurant's Google Business listing.
How do I track scans of this QR code in Google Analytics?
I tried a 301 redirect through my own website (point the QR code to my own website, and then doing a 301 redirect to the Google Review page, but that isn't being captured in GA4 -- server side redirect before GA4 can capture data).
I can use a third-party QR code generator to capture scan counts, but I'd rather have the data go through Google Analytics to make reporting easier, plus I don't like the idea of having a third-party in control of my URLs.
Any other thoughts?