1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #7449 invalid

Move the Google Analytics tracking code in the head element

Kaz Nishimura
created an issue

Google instructs to place the tracking code before </head> in their help page:

https://support.google.com/analytics/answer/1008080?hl=en

If not, I cannot use their Webmaster Tools with Google Analytics together:

http://support.google.com/webmasters/bin/answer.py?hl=en&answer=185871&topic=2370564&ctx=topic

Comments (2)

  1. Zachary Davis

    Hi Kaz,

    Unfortunately you won't be able to use Webmaster Tools for your Bitbucket repository pages (eg, bitbucket.org/user/projectname/*) for many reasons. If instead you're looking to use Webmaster Tools with a static website hosted on Bitbucket (eg, projectname.bitbucket.org), then you already have complete control over the source code and should be able to follow the instructions provided by Google.

  2. Log in to comment