Posts Tagged GA
Google Analytics custom segment based on referring site
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:
- set up a new advanced segment
- add “Source” from the Dimensions/Traffic Sources/
- add the domain that need tracking into the value field.
It’s that easy!
Google analytics
Posted by admin in Web design & development on April 15th, 2009
- 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: '. Strange? I think so.