'Why Google analytics tag give two triggers for one event
I am working with react app and google analytics global site tag (gtag.js). When I send an event for a page view, it triggers and displays two page views on the google analytics dashboard but it should be one page view.
This image shows two events named Login and Landing Page View have displayed twice for each one-page view and login event
This is my code:
{gtag("config", "G-MEASUREMENT_ID", {
send_page_view: false,
})}
{gtag("event", "Login", {
label: "Student",
})}
{gtag("event", "Landing Page View", {
page_location: window.location.href,
page_path: window.location.pathname,
})}
How can I solve this thing? Do you have faced this issue?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

