We tried many things, but somehow we could not transfer the events to the retail. I followed these steps:
1: Get an API key from APIs & Services > Credentials > Create Credentials > API Key
2: Get project id: There are Project number (like 111112222333) and Project ID (like “kite-first-11111”). I don’t know which one to use. But i tried both.
Screenshots of tag manager sections are below. Also we create a trigger. And we use ga4 datalayer without any problem on site side like this:
You may try to perform this check to see the issue:
Verify that the API key you obtained has the required permissions to access the Google Analytics 4 API.
When defining the Google Analytics 4 settings in Google Tag Manager, use the Project ID (such as “kite-first-11111”) than the Project number (such as 111112222333).
The following are used to identify your project:
Project name: A human-readable name for your project.
The project name isn’t used by any Google APIs. You can edit the project name at any time during or after project creation. Project names do not need to be unique.
Project ID: A globally unique identifier for your project.
A project ID is a unique string used to differentiate your project from all others in Google Cloud. You can use the Google Cloud console to generate a project ID, or you can choose your own. You can only modify the project ID when you’re creating the project.
Project ID requirements:
Must be 6 to 30 characters in length.
Can only contain lowercase letters, numbers, and hyphens.
Must start with a letter.
Cannot end with a hyphen.
Cannot be in use or previously used; this includes deleted projects.
Cannot contain restricted strings, such as google and ssl.
Project number: An automatically generated unique identifier for your project.
Note: Don’t include sensitive information in your project name, project ID, or other resource names. The project ID is used in the name of many other Google Cloud resources, and any reference to the project or related resources exposes the project ID and resource name.
Verify that the trigger you created is firing appropriately when the website event that you want to track occurs.
Verify if you’re utilizing dataLayer variables to send information to Google Tag Manager, double check that they are formatted in accordingly with the Google Analytics 4 measurement standard.
Verify if you can view real-time events report in the Google Analytics 4 dashboard to confirm that the events are being transmitted to Google Analytics 4.