Landing Pages Tracking in SPA/angular website
We are using a single application website - http://medtour.tasmc.org.il/s#!/ - 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 (https://developers.google.com/analytics/devguides/collection/analyticsjs/single-page-applications) - as a SPA website, every time a user landed on a specific page, it was measured as the homepage (http://medtour.tasmc.org.il/s) 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,
Re: Landing Pages Tracking in SPA/angular website
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.