首页 > 编程语言 >Implementing Google Analytics on an ASP.NET website

Implementing Google Analytics on an ASP.NET website

时间:2022-09-29 10:46:25浏览次数:87  
标签:website Account Google page Analytics your

Implementing Google Analytics on an ASP.NET website

Google Analytics is a service offered by Google that generates detailed statistics about a website’s traffic and traffic sources, and can be configured to measure product conversion rate and sales. Google Analytics is used by many professionals, including marketers, webmasters and technologists. It is currently the most widely used website statistics service. Usage of the basic Google Analytic Services is currently free – making it an excellent tool to implement as part of your strategic plan.

From my perspective as an application development consultant at SCS, the ability to easily integrate Google Analytics with Microsoft ASP.NET websites is especially productive. In this blog, I’ll share a how-to guide for getting started with Google Analytics.

 

The process of integrating Google Analytics with your Microsoft ASP.NET website is fairly straightforward. The following sections detail the specific steps required:

1. Create a Google Account

In order to use Google Analytics, you’ll need to create a Google account (if you don’t already have one). Clicking this link will direct you to where you can create your Google Account.

You will be required to provide a name, email address and password. You will also need to verify your email address before the account is officially created.

2. Respond to the Google Account Verification Email and Log on to Google

Click on the link provided in your Google Account Verification Email to complete the signup process.

Log on to Google with the username and the password that you defined when creating your Google Account.

3. Sign up for Google Analytics

After successfully logging into your Google Account using the link from your Google Account Verification Email, you will be forwarded to a page to start the Google Analytics signup process. Click the “Signup” button.

You’ll land on a page with the option to select “Website” or “Mobile Application.” Choose “Website.” Then you’ll be presented with two choices: “Universal Analytics” or “Classic.” Universal Analytics is currently in Beta and is missing a few features, so the common recommendation is to choose “Classic.”

You will also be asked to provide the following information on this page:

• Account Name
• Website Name
• Website URL
• Industry Category
• Data Sharing

After the above information has been added, click the “Get Tracking ID” button at the bottom of the page.

You will be presented with the Google Terms of Service. Accepting the Terms of Service will launch you into your “Admin” page.

4. Google Analytics Site Configuration

From your site admin page, you’ll be given the opportunity to configure website tracking, including:

• Subdomains
• Top Level Domains
• Display Advertiser Support
• Custom Campaign Tags

TrackingCodeJavascript-e1397586394287

The website author cuts and pastes this information into the ASP.NET MVC’s shared View page, usually _Layout.cshtml.

Embedding Google Analytics Tracking code into an ASP.NET MVC Website

To track information about all website users, the above tracking code is placed into your top level _Layout.cshtml page as follows. The code must be placed in the “Head” section of the page in order to function correctly. To minimize the complexity of the _Layout.cshtml page, I recommend that you use a partial page to encapsulate the Google Analytics Tracking Code.

If configured correctly, the code will fire every time users browse the site, view a new webpage within the site or refresh their current page within the site.

Layout

Basic Measurements Provided by Google Analytics

The following is a listing of key measurements that are provided out of the box with Google Analytics:

• Visitor Demographics – Age, Sex
• Interests
• Geo – Language, Location
• Behavior – New vs. Returning, Frequency & Recency, Engagement
• Technology – Browser & OS, Network
• Mobile – Desktop/Tablet, Mobile Devices
• Custom Variables – Sky’s the Limit, User Defined
• Visitors Flow – Flow of Visitors through Site

The website author may also add Custom and User Defined variables to add more information regarding a user’s website experience and to track things like sales conversion rates.

The following figure shows information from Google Analytics, illustrating which browser the user was using when accessing the website.

 

 

Now that you’ve set up your Google Analytics account within your ASP.NET MVC Website, you’ll be armed with significant new data to help you with critical business decisions.

 

 

 

标签:website,Account,Google,page,Analytics,your
From: https://www.cnblogs.com/chucklu/p/16740599.html

相关文章

  • disable google chrome update
    https://stackoverflow.com/questions/18483087/how-to-disable-google-chrome-auto-update Easy solution :1-Goto"C:\ProgramFiles(x86)\Google\andfindthe......
  • google Flutter入门
     flutter口号:BuildappsforanyscreenFluttertransformstheappdevelopmentprocess.Build,test,anddeploybeautifulmobile,web,desktop,andembedded......
  • 我要去 Google 前端组工作了
    都这么晚了,我才给大家发文祝贺各位节日快乐!是的,今天就算加班也要把这篇文章发出去,因为:我要去Google前端组工作了Google一直是我接触计算机开始,我最敬仰的一个公司,没有之......
  • On the usage of Google Analytics: are you violating the GDPR?
    OntheusageofGoogleAnalytics:areyouviolatingtheGDPR?InFebruary2022,theFrenchdataprotectionauthority,theCNIL,incooperationwithitsEuropea......
  • 使用 Azure 数据资源管理器(Azure Synapse Analytics 的一部分)的 SecOps 分析平台架构
    使用Azure数据资源管理器(AzureSynapseAnalytics的一部分)的SecOps分析平台架构构建您自己的安全分析平台用例鉴于网络安全对所有组织来说都是一个大问题,我们需要......
  • Google:Andriod 系统前景不容乐观
    据国外媒体报道,相比于谷歌在谷歌网络开发年会GoogleI/O2015上对Andriod系统的乐观,目前Andriod系统在高端智能手机中的市场份额进一步降低,同时Andriod平板电脑也未对消......
  • Google开发者大会最全视频资源
    最全的视频资源在官网,但同时,leetcode整理的个人觉得更加的棒! 特别企划|力扣带你逛谷歌开发者大会  Google开发者大会更大力的断推跨平台技术这几年总有些跑偏的......
  • 使用 NVIDIA CloudXR 从 Google Cloud 流式传输 VR 和 AR 内容
    过去,与VR交互需要专用的高端工作站,以及(取决于头显)、壁挂式传感器和专用物理空间。VR中的复杂任务可能会突破传感器范围、电缆长度和空间边界的限制,使艺术家陷入困境并限......
  • 【C++】GoogleTest入门指南
    参考:GoogleTest官网基本概念要使用GoogleTest,需要包含headergtest/gtest.h断言Assertions断言是检查条件是否为真的语句,其结果可能是成功或失败,失败分为非致命失败和......
  • protobuf如何使用google内置的proto文件中的消息体
    下载依赖goget-ugoogle.golang.org/protobuf目录结构将google自带的timestamp.proto文件拷贝到我们的项目目录中文件地址编写hello.proto文件syntax="proto3";......