Reputation: 672
I have some specific details about each page I want to pass to Analytics 4. Should I use push a standard page_view
event with my extra parameters or a custom event like page_details
or something (will that difference matter)? Since GA4 automatically records this event when the page loads, will passing another page_view
event apply to the current page view or will Analytics consider this an independent page view and make it inaccurately double the page views?
Upvotes: 2
Views: 3152
Reputation: 154
First, if you are sending page_view
events manually you should set off your gtag auto pageview sender:
gtag('config', GTAG_KEY, {
'send_page_view' : false
});
Having send_page_view
enabled (by default ON) and sending manually events can result in double page_view
events.
Then, about sending extra parameters, you could do something like this:
gtag('event', 'page_view', { 'page_details' : 'your value here' });
Upvotes: 2