: Using Google Analytics how can I track different audience segments viewing the same page? I'm looking for some general advice. The site I'm currently working on is full of duplicate content that's
I'm looking for some general advice. The site I'm currently working on is full of duplicate content that's about to be deduplicated. But it was built that way to track different audiences visiting the pages by reporting on the URL hits.
Current Links
MySite.com/homeowner/painting www.MySite.com/professional/painting MySite.com/designer/painting
My concern is that at the end of the day, the person managing the analytics wants to be able to look at their report and say "We had X number of professionals visit the site." Simply deduping will elimate that.
I'm thinking Google Analytics might have a way to pass audience/tags in via the URL like this:
Example Links with Tracking
MySite.com/painting?tag=homeowner www.MySite.com/painting?tag=professional MySite.com/painting?tag=designer
Is this possible with Google Analytics? Does anyone have an example website using this?
I've looked into Custom Dimensions and Metrics but they seem to be overkill developers.google.com/analytics/devguides/collection/analyticsjs/custom-dims-mets
More posts by @Sherry384
1 Comments
Sorted by latest first Latest Oldest Best
Yes, of course. You can setup a custom dimension depending on tag parameter in URL.
How it could be coded? Getting value of tag param and sending to analytics
function visitor(key_str) {
if(window.location.search) {
var query = window.location.search.substr(1);
ga('send', 'pageview', {
'audience': query
});
}}
Remember that custom dimension need to be preconfigured (set before) in Google Analytics administration panel.
support.google.com/analytics/answer/2709829?hl=en https://developers.google.com/analytics/devguides/collection/analyticsjs/custom-dims-mets
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.