• I am using the theme “Idyllic” and cannot place the GA code where it is picked up by GA. GA recommends placing it before the </body> tag, but there isn’t one! Can someone help, please?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You looked in the theme’s footer.php file? </body> is second from bottom.

    Thread Starter wol

    (@wol)

    Tried that – still not seeing it!!

    Every theme has a closing body-tag… Just look for it in your other theme-files, like index.php.
    Or you might have deleted it.. Can you show the source code of one of your pages?

    In this case, I had actually downloaded the theme. I opened the footer.php. I admired the closing body tag.

    I promise, it is there.

    Thread Starter wol

    (@wol)

    <!– begin footer –>

    <!– Do not deleting the credits,
    this theme is released for free under the GNU General Public License (GPL) requiring that the credits will stay intact.
    I’d appreciate the credit being left in unmodified, thanks in advance –>

    <div id=”footer”>

    Copyright © <?php bloginfo(‘name’); ?> | /wp-admin/” title=”login”>Powered by WordPress <br/> Idyllic by MandarinMusing + HSO |

    Sponsored by Air Miles Canada
    Managed Hosting
    </div><!– end footer –>

    </div><!– end content –>

    <script src=”https://www.google-analytics.com/urchin.js&#8221; type=”text/javascript”>
    </script>
    <script type=”text/javascript”>
    _uacct = “UA-“;
    urchinTracker();
    </script>
    </body>
    </html>

    You’re right that the body tag is here under the footer. The problem is that I have put in the code and Google is still not seeing it.

    I place my google analytic code into WP in the Footer section before (/body) tag.
    However, my UA-******-** code changes after I “update file.”
    What could be going on?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Placing Google Analytics code’ is closed to new replies.