how to implement google anlytics in master page

Posted by Parthibansk under ASP.NET on 12/31/2012 | Points: 10 | Views : 3382 | Status : [Member] | Replies : 3
MY client made a request add google analytics feature to his site..

got a js script code for the above..
if i add to each page it is tedious.. i want to implement using master page..

let me know how to implement..

how long wd it take for track process come into effect..




Responses

Posted by: Baimey on: 12/31/2012 [Member] Starter | Points: 25

Up
0
Down

right before </body> tag.

please check the link
http://developer.yahoo.com/performance/rules.html#js_bottom

when you view your site in a browser and do a view-source, you see the tracking code.


Please Mark as Answer If this Helps

Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Geniusvishal on: 1/1/2013 [Member] Starter | Points: 25

Up
0
Down

Keep the tracking Code inside the Masterpage body tag
(<body> Your Tracking Code Here </body>)

Refer this link:
https://groups.google.com/forum/?fromgroups=#!topic/analytics-help-basics/7_qwUhfP_D8

Thanks and Regards,
Vishal Ranjan,Software Developer
http://www.dotnetvishal.com

Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 1/2/2013 [Member] [MVP] Gold | Points: 25

Up
0
Down
Step to Create New Account:
- Once you have the Gmail account, sign into it http://www.google.com/analytics/
- Simply click the "Sign Up" button. As soon as this is done, you will be taken to the page where you'll need to fill in the information about your website and region. It is convenient to name analytics accounts with your domain name, this way it will be easier to navigate around if you plan to have multiple accounts. After you are done, click the "Continue" button.
- The next page will require your personal and regional information. After you are done filling this in once again click "Continue"
- On the next page you should tick the box "Yes, I agree to the above terms and conditions" after you read the agreement and click "Create New Account":
- If your website is dynamically driven, then you should tick the "I want to track dynamic content. Once you tick these boxes, you will see additional instructions above the box with tracking code.
- Google Analytics account set up is finished. Now you need to paste the tracking code onto every web page or Master Page you want tracked

Please Mark As Answer if this helps you

.

Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response