Posts Tagged GA

Google Analytics custom segment based on referring site

Jump to answer

I’m a lover of Google Analytics – once you get the hang of the thing it’s a very powerful tool and enables quick reporting on visitor metrics with quite some granularity. [Did I really just say that? Oh dear.]

Especially useful are custom Advanced Segments. I’ve used UTM codes to track responses from email campaigns – very handy but requires you to craft your URLs. If you want to track incoming links for a particular website – or referrer, without control of URLs that actually link to you – it’s very easy – just not well documented – or easy to find with a Google search.

Advanced Segment based on referrer:

  1. set up a new advanced segment
  2. add “Source” from the Dimensions/Traffic Sources/
  3. add the domain that need tracking into the value field.

It’s that easy!

, ,

No Comments

Google analytics

Discover Google Analytics

  • Interpret your Data: Learn how to interpret your data into meaningful insights with our video tutorial.

Tag your links [esp for tracking non www links in email campaigns etc] with the URL Builder

Go to the Conversion University

Track non page events like PDF downloads, video views, clicks etc with the pageTracker

<a  href="/brochure.pdf" onClick="javascript: pageTracker._trackPageview('/virtual/path/you/want/to/use/brochure.pdf'); ">Link juice</a>

[Cannot get this to work]If, for example, it’s in embedded in a PHP echo statement don’t be a pendejo and forget to escape the quote marks:

<script type="text/javascript">
<!--
pageTracker._trackPageview(\'/a/different/and/riddiculously/long/virtual/path/\')
//-->
</script>'

WordPress note with the above block of <code> an apostrophe after a backslash needs to be added as an HTML entity: &#39;. Strange? I think so.

, , , , ,

No Comments