Solved

Google Analytics and asp pages with sql database. Howto?

Posted on 2011-09-11
4
412 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 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Read this article and get to know some best tips for outsourcing client PPC work to a white label PPC agency.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

696 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