Solved

Google Analytics and asp pages with sql database. Howto?

Posted on 2011-09-11
4
407 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for your answers
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Read about why website design really matters in today's demanding market.
Read about the 3 stages of the buyer's journey: awareness, consideration, and decision.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now