Google Analytics only recognizes when navigating directly or refreshing page - google-analytics

Google Analytics only recognizes a page view when:
a) visitor navigates directly to the page or
b) they refresh a page that has been navigated to indirectly
GA does not recognize a page view if navigated to a page through clicking a link on the website. E.g. if someone navigates directly to Home then clicks on navigation link to get to Services page, GA only recognizes Home. GA recognizes Services only if Services page is then refreshed.
Edit
First thought was caching header html (where GA code is located), but that can't be right. Have downloaded two new browsers and it does the same thing. GA code is on each page's individual header, so it is loading GA code for first time when navigating through in-page links on new browsers.
Any ideas of what could be going on?

The problem is that on avocadoanalytics.com when you click a link on that page, it does not actually go to that page, but loads the page content in the background and then inserts it into the current page, hence why GA does not say that you went to a page. however when you refresh, the site does load the page, so GA says you get a visit.
You can learn more about this here https://developer.mozilla.org/en-US/docs/Web/API/History_API

Related

How can I reset a web page (not whole website) WordPress?

How can I reset a web page (not whole website) in WordPress?
For example, I want my "about" page back to default as I messed it up. Google only provide articles on how to reset the whole website.

GTM Tags & Triggers only working on Homepage

When viewing different pages of the site, GTM's preview mode "summary" column shows refreshes in its left panel (like here https://www.awesomescreenshot.com/image/16028728?key=5f8653a2f831cd9c7ea14a2f365112d6 ). Here it's not the case. All the tags and triggers will work on the homepage, but once I view other pages or come back to the home page after, all tracking stops and refreshes aren't recorded https://www.awesomescreenshot.com/image/16028578?key=b70d15c06419fc26cbd28dadfb8a6b55. I thought it was SPA issue but pages url do change. Any idea why?

Follow Company Button -- LinkedIn

Is it normal that LinkedIn's company follow button opens a blank page? The button comes from a javascript snippet provided by LinkedIn.
I tried on Chrome and Edge, and nothing happends (only a blank page). I think the problem comes from LinkedIn because they have the same problem at https://developer.linkedin.com/plugins/follow-company
Try to make a button and click on it.
Kind regards
The LinkedIn follow button widget works but it shows an odd behavior of directing you to a blank page. Notice the (not so obvious) +1 in the follow count in the widget. This happens for both logged in and not logged in LinkedIn users.
If you are not logged in to your account in LinkedIn and clicks on the follow button on a different tab/window, a popup will show up and prompts you to log in to LinkedIn. After logging in, it will open a new blank page.
But if you are already logged in to your account and clicks on the follow button, it will just open a new blank page.

Browser back button not forwarding to the previous page if posts have been made

The scenario is the following:
In an ASP.NET Webforms application,the main page loads (e.g. Home). Then i click on a link and get forwarded to another page of the solution (e.g. Customers). Now, if i do 2 searches on the page (there's a search button that queries the DB and updates a grid), and click brower's back button, instead of being forwarded back to the Home page, i stay on the Customers page. I have to click the back button 2 more times (as many as the posts made) in order to get forwarded properly to the Home page.
Anyone knows why this works like that or what can i do to make the browser's back button forward me to the previous page no matter how many posts i made on the current page?
Most likely there is an .aspx page between your home page and your about page. It probably serves a the purpose of checking for errors or validating information from the first page. When you click the back button from the about page, it navigates back to the inbetween page which contains the code to send it back to the about page. The inbetween page is usually processed so fast that you only see a brief flash of it in the address bar.
The best solution would be a link to navigate back to the home page, if you are not the author, I don't think there is much that you can do :P.

Is it possible to have a Google Analytics tracking event on Tumblr's Follow button?

Is there a way to hack a Tumblr theme to put a Google Analytics _trackEventI() function on the Tumblr Follow button? This would allow users to analyze where people are coming from when they click follow, what pages they clicked follow on, demographics of people who followed, etc.
If you control the code that displays it, or if the code is iframed onto your site but the iframe content is hosted on your domain then yes, it is possible. But if it is iframed onto your page and the iframed content is not on your domain then no, you cannot add tracking to it.

Resources