0

I am using Google analytics in my angular project. Initially I simply added the google analytics reference in my index.html and was collecting the default event data like page_view. Recently I started sending some custom data like the type of user that logged in and the event name I am using is user_type. When I check the network tab, now I can see two types of google analytics calls. One is the calls where the event type is user_type and I can see the custom data in the payload. The second type of calls are the default GA4 events call. My question is how can I send my custom data also in the default calls. Is that possible? Or this is the expected behaviour?

1 Answer 1

1

The default event can not be modified.

What we will do is cancel the default page_view event.

Then send the page_view with the custom event parameters on our own.

Sign up to request clarification or add additional context in comments.

2 Comments

Ok got it. So we cancel all the default events and send custom events
yes but event name can be the same as page_view. Just make sure there is no duplicate.

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.