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

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

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:

read all the way through the update.


Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn