Skip to content

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 do it ending the previous session, i.e. changing source and medium.