SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict yvv47's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Add Google Analytics code to a big website?

    Hello,

    Is there any trick or method for inserting the Google Analytics code into a Big Website so that manual insertion can be avoided.

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unless you're using a templating system or have a program with a mass find/replace feature like Dreamweaver, no.

  3. #3
    Error 404: Life not found silver trophybronze trophy
    Join Date
    Dec 2007
    Location
    UK Nr Manchester
    Posts
    3,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The way to do it with Dreamweaver or any other HTML editor that has find & replace is to find

    </body>

    and replace it with

    analytics code
    </body>

    That adds the code to the bottom of every page in one go.
    It's 530 people, but do you really get it?
    ImgWebDesign - Web design in Buxton, High Peak, Derbyshire UK.

  4. #4
    SitePoint Wizard jimbo_dk's Avatar
    Join Date
    May 2005
    Location
    Singapore
    Posts
    1,261
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There really is no way to avoid manually inserting it. It's your site, so you have to go in there and insert the code yourself.
    Winners Respond. Losers React.
    Singapore Web Designer

  5. #5
    SitePoint Wizard wheeler's Avatar
    Join Date
    Mar 2006
    Location
    Gold Coast, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Best bet is to have a global footer include file and just chuck it in there.
    Studiotime - Time Management for Web Developers
    to-do's, messages, invoicing, reporting - 30 day free trial!
    Thomas Multimedia Web Development

  6. #6
    SitePoint Addict yvv47's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks All!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •