Forums

[resolved] Goggle Analytics code placement? (7 posts)

  1. djrockwell
    Member
    Posted 6 years ago #

    Does anyone know where I should place Google Analytics code? It's supposed to be posted right before the </body> tag which I can't seem to find.

  2. pepsimax2k
    Member
    Posted 6 years ago #

    That should be in the footer (footer.php).

  3. Chris_K
    Member
    Posted 6 years ago #

    Just to add: The footer of your active theme, not any ol' random file. :-)

    So check under wp-content/themes/YourThemeName/ for footer.php.

  4. pepsimax2k
    Member
    Posted 6 years ago #

    Or just Presentation > Theme Editor > Footer. :o)

  5. djrockwell
    Member
    Posted 6 years ago #

    I gave the footer a try and it didn't work, then I found these instructions from Google for a PHP site and it didn't work either?

    Not sure what to do.

    BTW...is WP static or dynamic PHP?

  6. djrockwell
    Member
    Posted 6 years ago #

    I guess I'm impatient, I think the Google instructions worked. Basically you have to set up a separate analyticstracking.php file and link to it from the footer.

  7. TomHusband
    Member
    Posted 5 years ago #

    Did you ever determine if WP is static or dynamic? I would think it's dynamic. Did you choose the dynamic or static code from Google to make GA work? Or does it matter?

    Thanks a lot,

    Tom

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.