SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jul 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to generate google analytic code for sub domain

    Hello,

    I want to generate Google analytic code for Sub Domain, can anyone guide me how to generate.

    Thanks
    Pritesh Bagwe

  2. #2
    SitePoint Member daoduytung's Avatar
    Join Date
    Aug 2013
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi, you must log in account google. After, access http://www.google.com/analytics/. click manage -> create acc

  3. #3
    SitePoint Member
    Join Date
    Aug 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by boptima View Post
    Hello,

    I want to generate Google analytic code for Sub Domain, can anyone guide me how to generate.

    Thanks
    Pritesh Bagwe
    I think Google Analytics generate same tracking code for a single domain or subdomain.but you need to configure and customize analytic properly.

  4. #4
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,623
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    No just make a new account for that domain. Or just add the domain to your existing account. Subs are considered separate sites

  5. #5
    SitePoint Member
    Join Date
    Aug 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Put one new line code in your google analytics code.
    _gaq.push(['_setDomainName', 'yoursite.com']);
    You can also get this code if, in Google Analytics, you go to Settings -> Tracking Code -> One domain with multiple subdomains.
    Add this code to all of your subdomains. There is no need to alter it for every subdomain.


Tags for this Thread

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
  •