Mobile app version of vmapp.org
Login or Join
Pierce454

: See different actions in Google Analytics when the same page title is used for multiple pages I work for a company that has a self-service web portal. Most transactions on this portal are in

@Pierce454

Posted in: #Analytics #Google #GoogleAnalytics #Seo #WebApplications

I work for a company that has a self-service web portal. Most transactions on this portal are in wizard format and broken down by steps. In some cases, the same Page Title may be used for a Step and it's related sub-steps.

Examples:


Step 1 - Look up user's account


By username, by password, or both

Step 1 - Look up user's account


User's email address was found, but user needs to enter further information to identify the account



Is there a way to know the difference between #1 and #2 in GA? Unfortunately, in most cases they also have the same URL within the portal. Or does the portal need to be re-architected?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

1 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

One option would be to add a hash value to the URL to differentiate between the different screens such as example.com/wizard/lookup#username and example.com/wizard/lookup#more-info. Once you have this linking scheme in place you can push a new pageview event to Google Analytics using...

ga('send', 'pageview', {
'page': location.pathname + location.search + location.hash
});


And what that code will do is push the complete URL including the location hash as a new pageview to Google (you would do this instead of the default pageview code which does not include the location hash). That would then give you the listing as two separate URL's in GA without needing to do anything fancy.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme