0

Few days ago I have added gTag manager to one of my project and added a code to track number of click that button received. So I have 4 categories button and each named as alpha, beta, gamma, theta.

function trackCategoryClick(category) {
        gtag('event', 'click', {
            'event_category': 'Book Button',
            'event_label': category,
        });
}

This is the code. So here the category variable holds the name alpha, beta, gamma and theta.

when I check in google Analytics 4

  1. Go to Reports
  2. Go to Business Objective
  3. Go to examine user behaviour
  4. Then go to Events

Under Events, I can see Number of list under Event Name column such as

  1. Page_view
  2. click
  3. Scroll
  4. User_engagement
  5. Session_start
  6. First_visit

I chose Click and I can see that how many times user has clicked on alpha, beta and other button in the right box. But it says that data is for last 30 mins. I need to see the same thing for a month. How many times alpha, beta and other button has been clicked in a month period of time.

1 Answer 1

0

You will need to create custom parameters in order to see the parameters in explorer reports (as well as Looker reports).

To do this, you will need to go in to Admin >> Custom Definitions. From here, you will need to create custom dimensions for each of the parameters you are passing (excluding the event name):

  1. Click the "Create custom definition" button
  2. Enter a unique dimension name as this is what it will appear as in your reports.
  3. Choose a scope. This will likely be event and not user since it is occurring when clicks happen.
  4. Enter a brief description in case someone else is looking at your property.
  5. Choose the appropriate event parameter from the dropdown. This will be based off of the scope previously selected. It will only show the appropriate parameters for each scope.
  6. Click "Save" button.

They say that parameters will take 48 hours until you can start using them in your reports. You will need to do this for all new parameters you want to use in your reports. This should be your process when you start logging new events and parameters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.