Solved

Google Analytics and asp pages with sql database. Howto?

Posted on 2011-09-11
4
409 Views
Last Modified: 2013-11-19
I want to setup a Google Analytics Account on our website

http://www.cicd-volunteerinafrica.org/

I have made a file called analytics.asp
in the "default.asp" I have added <!--#include file="analytics.asp"-->

I have to questions:

1. Do I have to add this include file to all asp pages:
(like article.asp, textpage.asp etc) or is it ok to only do it on default.asp?

2. With and without www
    I have read that you can make a 301 redirect as a work around. Question is if I do not have this in place, do I have to temporary create 2 google analytics account to get around the problem? one with and one without?

Regards
0
Comment
Question by:morten444
  • 2
  • 2
4 Comments
 
LVL 29

Expert Comment

by:David H.H.Lee
ID: 36518963
Hi morten444,
Here are the comments on your asked:
1.Yes, you have to include this file in all the pages in order to let your google analytic able to capture your visitor landing statistic properly.
2.What you mean "with and without www"? Why you need to create 2 google analytics account? What you want to accomplish for this with or without www setting? Please clarify.
0
 

Author Comment

by:morten444
ID: 36520115
Hi Thanks

domain.com is a main domain
www.domain.com is seen as sub domain

If i on google analytics register the page www.domain.com i believe that maybe it will not register visitors entering using domain.com

Therefore my theory is that if you do not let google analytics know its the same page and if you are not using 301 redirection from www.domain.com to domain.com, I will have to create the 2 accounts in google analytics

Is that right?
0
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 500 total points
ID: 36520672
Hi morten444,
You can monitor all the sub domain using the same google profile, or track it separately as you wish.
Please refer google analytic help file under Tracking subdomains section:
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55524&from=55525&rd=1

Alternatively, this blog is clearly clarify how you can make it. Follow the instructions as mentioned below:
http://cutroni.com/blog/2007/11/19/tracking-sub-domains-with-google-analytics/
0
 

Author Closing Comment

by:morten444
ID: 36524838
Thanks for your answers
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question