在哪里可以找到您的Google Analytics(分析)跟踪代码

Do you need to find your Google Analytics tracking code for your website?  Google doesn’t make it easy to find, but here’s how you can do it.

您是否需要查找网站的Google Analytics(分析)跟踪代码? Google并不容易找到它,但您可以按照以下方法进行操作。

When you sign up for Google Analytics, you’re given a script containing an unique tracking ID to integrate into your site.  You will typically add this code to the <head> portion of your HTML, though this may vary depending on your site.  Google gives you the code right when you signup, so if you immediately add it to your site, you may never think about it again.  However, if you later change your site’s theme or want to add Analytics to another part of your site, you’ll need the code again.  Strangely, there is no easy and obvious way to get your tracking script, but you can still find it.  Here’s what you’ll need to do.

当您注册Google Analytics(分析)时,会得到一个包含唯一跟踪ID的脚本,以集成到您的网站中。 您通常会将此代码添加到HTML的<head>部分,尽管该代码可能会因您的站点而异。 Google会在您注册时立即为您提供代码,因此,如果您立即将其添加到您的网站,则可能再也不会考虑它。 但是,如果您以后更改网站的主题或要将Analytics(分析)添加到网站的另一部分,则将再次需要代码。 奇怪的是,没有一种简单而明显的方式让您的跟踪脚本,但你仍然可以找到它。 这是您需要做的。

Find Your Analytics Tracking Script

查找您的Analytics(分析)跟踪脚本

To find your Google Analytics tracking script, head over to the Analytics page (link below), and click Access Analytics.

要查找您的Google Analytics(分析)跟踪脚本,请转到“ Analytics(分析)”页面( 下面的链接) ,然后单击“ Access Analytics(访问分析)”

image[32]

Click your site’s name in the Accounts list.

在“ 帐户”列表中单击您的站点名称。

image[33]

Now, click the Edit link on the right of your site’s name.

现在,单击站点名称右侧的“ 编辑”链接。

image[36]

Click the Check Status link in the top right corner.

点击右上角的检查状态链接。

image[39]

You’ll now see the complete Google Analytics code for your site near the bottom of the page.  Select it all and copy it, and now you can add the code to your site as usual.  Typically you can add this to the <head> portion of your site or blog theme, though this may differ depending on your website or CMS.

现在,您将在页面底部附近看到您网站的完整Google Analytics(分析)代码。 选择全部并复制,现在您可以照常将代码添加到您的站点。 通常,您可以将其添加到网站或博客主题的<head>部分,尽管根据网站或CMS可能有所不同。

image[42]

If you want to track with a more advanced setup, such as a domain with multiple subdomains or a mobile website, select the Advanced tab for specialized Analytics tracking codes.

如果您想使用更高级的设置(例如具有多个子域的域或移动网站)进行跟踪,请选择“ 高级”标签以选择专用的Google Analytics(分析)跟踪代码。

image

Find Your Site’s Tracking ID

查找您网站的跟踪ID

Many CMS and blog engines, including most Tumblr themes and pro WordPress themes or plugins, can let your add Google Analytics by simply pasting in your unique Analytics ID.  It’s much easier to find this.  Just login to your Analytics dashboard as before, and select your site in the Accounts list.

许多CMS和博客引擎,包括大多数Tumblr主题和专业WordPress主题或插件,都可以通过简单地粘贴唯一的Google Analytics(分析)ID来添加Google Analytics(分析)。 找到这个要容易得多。 只需像以前一样登录到Google Analytics(分析)信息中心,然后在“ 帐户”列表中选择您的网站。

image[33][3]

Now you’ll see your tracking code right beside your domain name.  It should be something like UA-12345678-9.

现在,您将在域名旁边看到跟踪代码。 它应该类似于UA-12345678-9

image

Copy this code, and then paste it in your CMS, blog engine, or wherever you’ll use the Analytics tracking code by itself.

复制此代码,然后将其粘贴到CMS,博客引擎中,或将其单独用于Google Analytics(分析)跟踪代码的任何位置。

image

Conclusion

结论

No matter what type of website you run, it’s always nice to know if people are visiting and what exactly they’re looking at.  Google Analytics makes this easy, and with this tip, you can always find your tracking code whenever you need to change something on your site.

无论您经营哪种类型的网站,总是很高兴知道人们是否正在访问以及他们到底在看什么。 Google Analytics(分析)使此操作变得容易,借助此技巧,您随时可以在需要更改网站内容时随时找到跟踪代码。

Link

链接

Access Your Google Analytics Account

访问您的Google Analytics(分析)帐户

翻译自: https://www.howtogeek.com/howto/22576/where-to-find-your-google-analytics-tracking-code/