how to setup tracking tags on a website across all pages and links

Posted on 2012-09-12
Last Modified: 2013-11-18
I have been tasked to set up our website with tracking tags, fully across all pages, links, navigation, banners, etc. I m a bit confused what that means :s I know google analytics give you a java script which you can add to the landing page of your website. But I don't understand how can we add tracking tags to all pages, links, banners etc?
Question by:mmalik15
    LVL 82

    Expert Comment

    by:Dave Baldwin
    Google analytics needs to be added to every page that you want to track, not just the landing or root pages.  While it is possible to track every single thing, it is also probably pointless.  You'll spend more bandwidth tracking than serving up content.  

    You need to define your goals and track only the things that matter.  Note that server and web site logs contain a lot of information that can be mined without taking up real-time bandwidth on your site.  You should look at them first.
    LVL 58

    Expert Comment

    Lots of tracking software websites offer this ability i.e. you click a link they track the click, even on images.
    The js only needs to be added into your footer, which if you have a common footer file is easy, if not then you will need to add it to every page
    I'm not going to recommend anybody, they all have their advantages.

    Author Comment

    Thanks for the comment Dave.

    Its quite a high traffic  website with nearly 600-1000 visitors a day when we have script only available on the landing page. May be now our management is interested in areas of the website where we still need to improve.

    Which server logs are you referring ?
    LVL 82

    Expert Comment

    by:Dave Baldwin
    Every web server keeps access logs where they record every single access to any file on the server.  On shared hosting, these are usually parsed out to the individual sites.  If you are on your own server, ask the admins to give you access to the web server logs that apply to the web site.  There are a number of programs that will present you with a graphical display of what pages were accessed from which IP addresses.
    LVL 82

    Expert Comment

    by:Dave Baldwin
    areas of the website where we still need to improve.
    That is a really vague statement and not a goal.

    Author Comment

    Thanks for the comments again.

    Can I ask one more question, what else we can do with google analytics apart from adding there standard tracking code
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-xxxxxxxxx-1']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

    Open in new window

    on all the pages, I mean can we track usual clicks on the page or clicks on the image etc using google analytics?
    LVL 29

    Accepted Solution

    If you place this tracking code in the footer of each page, you'll have a pretty good vision of most paths.
    If you are currently tracking just the home page, analytics on every page will improve things lots more.
    Some of the common info you get with these types of analytics:
    - where did people come in (which page was the first in their visit), and where duid they come from (another site? direct link? search engine? in that last case, what was the serach and the keywor that led here?)
    - where did people left?
    - how long did they stay on site? how many pages did they look at?
    - what is the "bounce factor", ie which pages or vitors types are one-page only visits, implying they came here by mistake?
    So your first step is to provide them with these data... BUT be very careful it needs to be commented to be interpreted (ie: the same bounce rate does not have the same meaning on a blog or on an e-commerce site)

    This will help you pinpointing some evident and easy actions which will increase the success of your site.
    LVL 29

    Expert Comment

    B-) Glad to help, even if my typos assez some puzzling spice. Thx for the grade and points!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Do you have a website or an online business? Are you on the top of Google Search and other search engines? Would you like to be? Well this article is going to teach you what the Search engine bots look for when ranking your web pages. Now what is a …
    A/B testing is a simple and effective trick to get to know your audience, increase website conversions and make the most out of your online ad campaigns. It's widely available and doesn't need much tech knowledge to be executed, but the results it y…
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
    Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now