WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics (11 posts)

  1. corinnek
    Member
    Posted 2 years ago #

    Can someone tell me how to set up Google Analytics where it tracks more than one site?
    When I started my website, I set it but I have NOOO idea how. I just set up an addon domain and would like to track it too but i haven't a clue how.
    Thank you

  2. itsonlybarney
    Member
    Posted 2 years ago #

    You will need to go back to your Google Analytics account, and get the updated Google Analytics code to track multiple domains for a site.

  3. corinnek
    Member
    Posted 2 years ago #

    I found that section, but I can't remember where to put the code

  4. itsonlybarney
    Member
    Posted 2 years ago #

    Is the existing code in the footer.php or header.php files of your theme?

  5. corinnek
    Member
    Posted 2 years ago #

    ok. I found that in my primary website. Will it track both sites if I put the code there?

  6. itsonlybarney
    Member
    Posted 2 years ago #

    Do both domains point to the same blog?

    It will only track visitors that arrive directly on a page from the addon domain. Most links within WordPress will point to the domain that is set on the General Settings page of WordPress, and thus any visitors arriving via the addon domain will eventually end up on the main domain.

  7. corinnek
    Member
    Posted 2 years ago #

    uhm, no. I'm confused. They look like separate websites but one is an addon. I'm not sure if I'm explaining it right.

  8. itsonlybarney
    Member
    Posted 2 years ago #

    So the domains are for two different WordPress blogs?

    If the two blogs are completely separate, then you can just create separate Google Analytics tracking codes, one for each domain, and insert the code into the correct blog.

  9. corinnek
    Member
    Posted 2 years ago #

    I suppose I can do that even though one is an addon domain. I will try that.
    My primary theme actually has a place to put in the code.
    The other site does not. Where am I supposed to copy it to?

  10. itsonlybarney
    Member
    Posted 2 years ago #

    Try adding this plugin so you don't have to edit theme files.

    http://wordpress.org/extend/plugins/google-analyticator/

  11. corinnek
    Member
    Posted 2 years ago #

    thank you!
    is it possible to create more than one code on the same account? or do I need to make an entirely new google account?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.