Creating a main/global property
Go to analytics.google.com - sign in
If you have multiple analytics accounts, select the dropdown then select the proper account that you are looking to use/connect.
Select Admin (bottom of the side nav)
-
Select “+ Property” to create a property
- set the Property Name
- Don’t set as a Universal Property because it is being deprecated in 2023 Select “Next”
- Fill out Business Information if neededSelect “Create”
-
Select “Web” platform (You should automatically be brought to “Data Streams” on the side nav, if not select Data streams to see the screen below).
Set the “Website URL” to your app URL (without any “/home” or other portions of the URL ie. inspirehub.ihubapp.org NOT inspirehub.ihubapp.org/home)
- if you are setting up multiple apps, pick an app URL that you would like to use as the “main” property which will be “tricked” to still track analytics for every app the code is added to.Set the Stream Name to whatever you’d like
-Leave enhanced measurement onSelect “Create Stream”
Select “View tag instructions” (top or bottom of the window)
Select the “Install Manually” tab
Copy the code listed.
Open the builder and go to the Hub that you are wanting to add Google Analytics to
Go to “Configure > Tracking Code” and paste the code
- Save the code changes so they aren’t lost
Creating a app variable (only if you have multiple apps)
Repeat the steps above
-Set the URL and stream name to match the app that the new Property is being made forCopy the first script line that appears under “Install Manually” and paste it below the first script line in the builder code from the global variable.
-
Copy the gtag code at the end of the code block, and paste it below the other gtag code that is in the builder code from the global variable.
-the two scripts and gtag pieces of code should look like the example screenshot below (note: the blue and red boxes are to indicate the ids are unique/different) -
With each individual app property created, they will then all appear under “Pages and screens” in the main engagement dashboard under “Reports > Engagement >Pages and screens”.
Comments
0 comments
Please sign in to leave a comment.