?
Solved

Google Analytics and asp pages with sql database. Howto?

Posted on 2011-09-11
4
Medium Priority
?
413 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to count occurrences of each item in an array.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Suggested Courses

762 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