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

Analytics
5.4K members online now
5.4K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Tracking after "#!"

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have lightbox gallery, and I have such adress: url/#!nameofphoto, how to track it on google analytics? Is it possible to have all the views?

1 Expert replyverified_user

Re: Tracking after "#!"

Rising Star
# 2
Rising Star
Hi Firma,

By default URI fragments are not captured. You have to customize the code and the most consistent way is to use GTM's history listener to check for changes and then pass the fragment into the pageview.

Simo Ahava is the man here so I'll defer to his post:

http://www.simoahava.com/gtm-tips/track-url-fragments-as-pageviews

read all the way through the update.

Best,

Theo Bennett



Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn