简体   繁体   中英

Google Analytics code should be in master page or every page of asp.net?

我需要跟踪网站的每个页面,因此,如果有人可以告诉我,如果我需要将Analytics(分析)跟踪代码放置在从母版页继承的每个aspx页面中,或者是否需要放置在母版中并且可以跟踪每个页面,从母版继承?

Paste it in a file which is included throughtout the site maybe like header or footer files. Its a best practice to include in the footer. Reason for why you should include in all the pages so that you can checkout which pages are being visitor and etc information's.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM