Tuesday, 31 March 2009

Register Google Analytic and Alexa Ranking

I come to Google Analytic and sign up an account



After I sign up an account with my profile, I am on the way to create my website profile in Google Analytics



Then another page coming up with JavaScript



There are 2 kinds of Javascript tracking code from Google, I just pick up one in New Tracking Code (ga.js) into my default.asp



A couple day later, I come back to my Google Analytic account, there are 21 visitors coming to my "longdressvn.com" website.



By analyst from Google, I know how many visitor coming to my site, how many times for page of views and Average of Page Views.



Moreover, I can track where my visitors coming from

At the moment, there are 3 regions that are Vietnam, USA and England.


On the map, it shows me 3 countries or regions where my customers came from, are United States of America, United Kingdom and Vietnam.

It also help me to track down in which city of the regions or countries my customers are living.

The purpose of tracking is to help me find the best market in the world for my business and in which cities in the world I will have more customers interested in my products.

For example:

In England, London and Leeds are cities that my clients are from, the statistic also show how many visits they have, how many pages per visit and Average Time they spent on my site.



In Vietnam, 16 people came from different cities such as Ho Chi Minh city, Ha Noi capital and Quang Ngai city.



in the USA, there are 2 visits, one is from California and another is from Washington.



Alexa Ranking



The Last updated Analysis on Google Analytics :





Different Countries that different visitors are coming from :





And ALEXA website ranking:

Create and make Register Page work

Firstly, I make a page called "register.asp" then create a form which is set up with action to "login.asp" and method to "post"

so the layout will be like:



secondly, I make a function which can help customer register an account in my website

To start with, of course, I have to create database path for the page by recordset in "Binding Panel", then switch to "Server Behaviour Panel". I drop down the server behaviour menu to choose " Insert Record"



After clicking, a box pop up with more details to fill in


"Connection" to coursework
"Insert to table" to customer
"After inserting, go to" to login.asp
"get values from" to myform

then I will get all form elements in text area of Dreamweaver automatically



Finally, I preview and test the function that I made

I fill all my information into the form then "submit"



I got a clear error message saying
"
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.

/vhp0003/coursework2/register.asp, line 27"



I switch back to Code View in Dreamweaver to the cause.



However, I could not pick up any cause relevant so I post my question on different
forum.

http://www.aspfree.com





A day later , there is a reply for my question.
The cause is a permission of server so to solve it out, I follow the given link



and this is a solution to setup my permission on local host to do INSERT query in my Register Page.



Besides aspfree.com forum, I also post my query on ecommerce forum



And this is a reply I have got so far for my query.



I test my register page function

I fill "hung" in "full name" textfield
"pvhung1885@yahoo.com" in Email textfield
and my password in password textfield



After clicking "submit" button, it drives me to login page. the error page does not appear so that means the problem is solved.



However,it seems the function is not working at all, I log in with email and password that I inputted in register page but it drives me back to the same page.

So I check the database, I assume the INSERT QUERY is working, my register information will be inserted to database but as picture shown.



No data is inputted, that means the INSERT QUERY has some thing wrong

Using email to send survey question and get feedback

I have an email sent to different emails of different clothing websites such as

http://aodaingonhathuy.com/





http://www.finechineseclothing.com/eng/index/index.aspx




http://thoitrangmy.com/




http://www.aodaiminhthu.com/




At the moment, I have got one feedback written by Vietnamese language from a local shop owner in Vietnam. However, the feedback is written by Vietnamese language

http://aodaingonhathuy.com/



Translation from Vietnamese to English :
"

Hello there,

I have seen your website. However, it seems that the site is a newly built one and lacks of pictures. Regarding Ao Dai Vinh, it is not possible to compare as they are a mere dressmaker’s shop. They often copy from other people’s designs so their price is very low. In my website, we create all the pictures and designs by ourselves.

Comparing your website to others, I think your should review the site because visitors don’t know what you are selling about. If you want visitors to stay, your design and pictures must be more attractive to make your visitors recommend your site to their friends. Only that can help your website become popular. I am afraid I can not rate your web! I would like to wish for your success! I hope you will ask for my permission before using my pictures. Ao Dai Vinh has stolen quite a bit of my picture designs; however, I did not have time to ask them to put down those pictures. Hope I can do it this year. Once again, I wish for your success in your job.

"
And another evaluation coming from a staff who is working on "Next", a clothing business in the UK. (http://www.next.co.uk/).

I send her an email regarding my survey question:



Later , she send me back an email for feedback:




From the feedbacks, I got an advise to make up my website as longdressvn.com

Monday, 30 March 2009

Making a Check Out Page

Firstly, I make page called "checkOut.asp"

In Code View,I type some pieces of code before ""
TAG.
<% ' THIS BIT DEFINES THE CONSTANTS USED IN OUR SCRIPT

CONST CARTPID = 0
CONST CARTPNAME = 1
CONST CARTPPRICE = 2
CONST CARTPQUANTITY = 3

' THIS BIT GETS THE SHOPPING CART SESSION VARIABLE

IF NOT isArray( Session( "cart" ) ) THEN
DIM localCart( 4, 20 )
ELSE
localCart = Session( "cart" )
END IF

%>



Then, I switch to Design View in order to make simple form containing
Delivery Detail and product details that Customer has added to cart.

Naming
the form as "myform". Set "Action" as "shop_ccard.asp" and the "Method" as "POST".



In the form, I create some textfields and give them their name respectively.

name's textfield as name
address's textfield as address
city's textfield as city
postcode 's textfield as postcode
country's textfield as country
phone's textfield as phone
email's textfield as email

Next step is to insert a button called "next", it will be replaced by image so all the form will be looked like



the form is OK for this moment. I move to next step which is to implement ASP code so that the check out page work nicely.

First of all, I insert 2 hidden textfield














Now, I am going to FORM VALIDATION by Dreamweaver

Firstly, I go to "
Tag Inspector", switch to "Behavior" tab and then drop down a menu list.



I am going to choose
validation form as above then a small window will pop up:



For each line in "
FIELD" box, I tick "required" with "Accept" option matching.

Then at testing stage. I have got:



A error in this page is, a error message does not pop up when I click on Next button, and all fields are left blank.

so I post my query on different Forums to get a solution:

My post is on
ASPFREE.COM



Ecommerce forum



After a day, I have got a reply from ASPFREE



From the solutions above, I switch back to my code view and fix it.



My result comes up successfully