AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

4.3K members online now
4.3K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Landing Pages Tracking in SPA/angular website

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi Everyone,

We are using a single application website -!/ - which has URLs with hashbangs (#!) in order to create HTML snapshots.


Since we didn't get the relevant data regarding landing pages on Google Analytics,  in order to get information about the specific landing pages we've implemented Google's guidelines regarding tracking virtual pages ( - as a SPA website, every time a user landed on a specific page, it was measured as the homepage ( instead of a specific page.


The problem is - once I land on a specific Landing page  - for example, organic landing page which i've clicked on in google - I get the specific landing page to appear on the Real Time section, but when i go to the regular landing page data (Organic) - i still get the homepage as the only landing page available and no other landing pages are being displayed (and yes, i've checked it few hours after in the "regular data"  areas, so there's no chance of a delay in displaying the data).


Any ideas how to solve this issue?


Thanks in advance,

1 Expert replyverified_user

Re: Landing Pages Tracking in SPA/angular website

Rising Star
# 2
Rising Star
Hi Nitzan O,

Virtual Pageviews will work adn are pretty easy to deploy in GTM by using the history triggers; that said have you tried to simply allowAnchor as a code customization?

While I work for a GACP and we have been GTM certified from day one, Simo Ahava is the king of GTM scripts and if you're using it check out his post here on fragments:

And here is allow anchor: (control F, it's not anchored.. isn't that ironic?)
This should allow your fragments to be processed and passed into content reports.


Theo Bennett
Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn