Does anyone know how I could add some information to my page (whether in a meta tag or some other way) to indicate to Google Analytics that a page is targeted to a certain segment?

This is pretty straightforward on my main site where everything is set up in hierarchy by target user so I can just use the URL to filter the data.

However for my subdomains, its a flat structure that's just a bunch of landing and conversion pages so I can't use the URL.


There are several ways you can choose from, but i think the simplest way in your case is to create a "fake" URL for each page. This URL will show in analytics instead of the actual URL.

Add this line to each page (inside the main analytics code)

_gaq.push(['_trackPageview', '/my_segment/page']);

If you're using universal analytics you can also specify page title:

ga('send', 'pageview', {
  'page': '/my_segment/page',
  'title': 'Segment name'
| improve this answer | |

I think you need something like google affinity groups take a look to this two links http://www.google.com/think/products/affinity-segments.html



| improve this answer | |
  • Could you provide a bit more information about what this is and why it helps OP? – Andrew Lott Nov 11 '13 at 10:48
  • While these links may help answer the question, a high quality answer provides more than just links. It is better to include the relevant information here directly. Users shouldn't have to click to understand your answer. In addition, links may change or break over time. – Stephen Ostermiller Jul 9 '14 at 18:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.