Skip to content
Advertisement

Tag: google-analytics

Angular – Google analytics not tracking page path changes

I have set up google analytics GA4 and added the snippets to my Angular application: index.html: then in app.component.ts: Google analytics dashboard detects the page views and changes and also the console also logs the urlAfterRedirects, but on the GA dashboard my application name increments without change in the actual path. I am wanting to tack the actual path/ page

What is the canonical way to manually fire page_view in Google Tag Manager and Google Analytics 4 (GA4)?

My website is a single page app (SPA) that never changes browser history or the page title. Therefore, it’s my understanding that I have two options if I want to capture page_view events: Add browser history and a unique title for every virtual page. Manually fire a page_view in SPA code. I’m going with option 2. I’ve read numerous articles

Include google analytics in external JS file

I would like to know how I can take the Google Analytics Code below and add it to an external JS file that all the pages are accessing. The code that is in all my html files now: How I want it to be: HTML: google.js: Any help would be appreciated, as I cannot find answers for this elsewhere on

Override landing pages tracking in Google Analytics

Landing Pages in Google Analytics is “The pages through which visitors entered your site.” How can I override it? For example, user go to mydomain.com then they go to mydomain.com/products/product-handle. The landing page in this case will be /. Is there anyway to update landing page to /products/product-handle in javascript? Answer I don’t know the reason, anyway you can to

Advertisement