Tutorial - Track Online or Offline Link Clicks
- SEO |
Steps:
1) Add this code snippet (below) to the GA code that's on your webpage <head> HTML source code.
_gaq.push(['_trackPageview', location.pathname + location.search + location.hash]);
_gaq.push(['_trackPageview');
Example, you can track one individual webpage with multiple external or internal links:
- hxxp://domain.com/favorite-ice-cream/#vanilla
- hxxp://domain.com/favorite-ice-cream/#chocolate
- hxxp://domain.com/favorite-ice-cream/#strawberry
3) The way to view the GA data inside GA is to go to the Content Drilldown page:
- Behavior > Content Drilldown > click whatever page your looking for
You have to click the page links inside Content Drilldown, that's where all the hashtag data will be (ex: #vanilla, #chocolate, #strawberry, etc...).
Notes:
The hashtag link doesn't even have to exist on the internet. If I type the hashtag/keyword link in my browser & hit enter, GA will still track the hashtag/keyword because I searched with a hashtag URL & landed on my webpage that includes the GA tracking code that's looking for hashtags.
You should be able to track anything you want as long as traffic lands on a webpage that includes the GA code.
Example:
- Track link clicks inside pdf files on an offline PC desktop.
- Track internet shortcut icon clicks from a file that's been downloaded to an offline PC desktop.
- Track multiple links inside a single email newsletter with all the links pointing to a single sales page (ex: header link, image link, content link, footer link, Buy Now link, etc...).
Here's a tutorial on the subject, he has some extra steps in there compared to what I do, still it's a good reference.
There's other ways to track clicks with GA (ex: Events) but they usually force you to wrap the hyperlink with custom GA code. This way it's simply one line of code in the <head> of the landing pages HTML source code & you can track any link that exist, online or offline.
-
yukon Banned-
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[9213867].message }}-
nest28 -
[ 1 ] Thanks
{{ DiscussionBoard.errors[9214149].message }} -
-