Background:
I am tracking acquisition data to a mobile application. Certain links redirect to App Store or Google Play store through my website, where Google Analytics collects data on those redirects.
The mobile application also utilizes a new iOS feature called "App Clips", which basically an app fragment that just opens without user needing to go through store download. When the app clip launches, the "middleman" redirecting website is never opened.
In order to have coherent data on Android and iOS acquisition, I wanted to collect the page_view
event via Measurement Protocol, triggered directly from the "App Clip".
Problem:
The GA v4 Measurement Protocol API is in alpha. The page_view
event is actually missing from the docs, but it can be sent nonetheless.
I want to understand how to populate the event parameters in the request in order to send data required in "Tech" and "Acquisition" categories. This means at least user-agent data, exact device model, campaign, medium and source.
{
"client_id": "<what_goes_here?>",
"timestamp_micros": "1627192577008000",
"non_personalized_ads": false,
"events": [
{
"name": "page_view",
"params": {
"page_title": "App Clip",
"language": "en-us",
"page_location": "https://example.com/x?utm_campaign=my_campaign",
"screen_resolution": "1170x2532",
//"page_referrer": ""
"page_path": "/x?utm_campaign=my_campaign"
}
}
]
}
I do not want to use Firebase SDK inside the App Clip for two reasons:
- I want the App Clip to be lightweight and Apple discourages usage of 3rd party libraries
- I could not be assured that sending
screen_view
will render the same analytical depth (the same parameters) aspage_view
.
user_properties
for app name, os name, os version, browser name, etc. Then we can analyse results in BigQuery using those customuser_properties
. At the end tech data, demographics, etc. is blank on analytics website. But who cares if we have custom counterparts for those data. – Pashalik