Create an account in Google Analytics 4
Create a google analytics account first from the link (https://analytics.google.com).
Enter all the details like Account name, country details etc.
Enter the container name for your account, which contains all the tracking details.
Select the target platform for which we are creating the account like web, iOS, Android etc
After entering all the details click on create to proceed.
Steps to Integrate with Artifi
Once the setup is done for a particular google analytics account a script or a tracking code is made available.
This tracking code is also available by clicking on the Google Analytics home screen.
Click on the ID and you will get the script in the pop window.
Then you need to add this tracking code(or script) into the Artifi’s admin section in the Analytics settings page of Artifi website (as shown in the following snippet):
Create a GA 4 Property & Data Stream
- To create a new Google Analytics 4 property go to the Admin section of your Google Analytics interface (by clicking the Admin at the bottom-left corner) and then (in the Property section) click Create Property.
- Then enter the name of your property. It might be the name of your website, of your company, a brand, etc. Choose your company’s country, reporting time zone, and the main currency that your business operates.
- The next step to complete is to configure your first data stream. It is a data source from which events will be sent to your Google Analytics 4 property.
- When you create a data stream (web), you will see a Measurement ID. Copy it. We’ll need to use it in Google Tag Manager.
Create a Google Analytics 4 Tag
- Crate GA configuration tag from WORKSPACE > TAG > New Tag.
- In Tag configuration select Google Analytics: GA4 Configuration in tag type and enter the Measurement ID which we have created.
- Give the proper name to the tag and save Tag details.
Create a Google Analytics 4 Trigger/Event
- To create the GA4 trigger go to WORKSPACE > TAG > New
- Select the trigger type from the list and enter the condition when you want to trigger.
- Also select the tag from the list from the window which you want to call on this particular trigger.
- Enter the proper name for the trigger and save.
Create a Google Analytics 4 Custom Event
- To create the GA4 trigger go to WORKSPACE > TAG > New
- Select the Custom Event trigger type from the list.
- Enter the proper event name and when to fire the trigger condition.
- Also, select the tag from the list which you want to call on this particular custom event.
Google Analytics in Debug Mode
- To Preview the details of the application we need to open the application URL in debug mode.
- To open debug mode from the home screen click on the preview button.
- Then the preview mode window will open in the new browser tab.
- Enter application URL in input box and click on connect to open link debug mode.
- Application will open with a Tag assist popup in the bottom right of the screen.
- After performing some action the triggered event and tag will appear in the debug window.
Google Analytics 4 Realtime Reports
- To check the real time report go to google analytics home > reports section > Realtime.
- You can also create custom report of triggered event from GA home > Explore > Free form.