I am using asp.net 2.0. I have 5 web pages in my project. I want to calculate the
length of time for which visitor view the page.
Outline for a tracking system:
Server-side: When the visitor requests the page, generate a unique id and include it in the page. Save the unique id with the user, page, and any other information you wish to track.
Client-side using javascript: When window.onunload fires, send an ajax call to the server to say the user has finished with the page identified by the unique id. Looking up the id saved in step 1, update the length of time visited.
Alternatively, use something like Google Analytics, which does a stellar job of tracking visitors.
Related
I am trying to create a "Custom Report" in Google Analytics but cannot get the dimension/metric to work. My goal is to retrieve all pages of a user that triggered an event(also a goal) on which pages before they converted(purchased - ecommerce)?
Like this:
1) User enters the main page ("/")
2) User goes trough 3-4 article pages (20 seconds activity triggers an event that also is a goal in GA.
3) User fills out form and submits (Enhanced Ecommerce - transaction)
My Goal is to list out either:
1) How many times a user triggered this particular event before purchasing
2) List all pages on where user triggered this particular event before purchasing.
My Custom Report looks like this:
But gives 0 rows in return.
This is caused by the filter that you are using, where you are trying to combine Hit level data with session data. Events are gathered at hit level, where as the question you ask needs to be looked at from a sessionalization perspective.
Let me describe what I believe is happening. Since a user on your website is browsing the articles page, they trigger an event called "Content viewed". Not sure how many times or the exact coding here, but let's say it triggered four times. This is then tied to the Event as a Hit to the page that it triggered on.
On the following page, the order page, they trigger the event "Order Completed" after they register, which again, the event is registered Hit level on that page. This means that on pages ABCD, they trigger the event for "Content viewed".
What you need is a segment to do this kind of analysis. A segment ties together sessions and users from Hit level data, so you can answer questions like: "Which Users have triggered "Content viewed" and then completed registration?"
Sessionalization works by creating sessions tied to a User (client ID) and what happened during that Session. A Session carries different Hits, which are then aggregated as a Unique Visitor, or User, over a number of sessions.
Hope my explanation helped!
Say I have two pages on a site called “Page 1” and “Page 10”. I'd like to be able to see the paths visitors take to get from “Page 1” to “Page 10” with full URLs intact. Many of the URLs (including those for “Page 1” and “Page 10”) will include query strings that are important.
Is this possible? If so, how?
Try using behavior flow reports. The report basically shows you how visitors click through your website. There are a lot of ways to customize the report, with which you will need to play around to really answer your question. By default, the behavior flow focuses on entry and exit points of visitors, regardless how many times they hit the different subpages in between. However, I'm sure you can set appropriate filters and settings to answer your question.
I use two methods for tracking where people have been on my website:
Track and store the information in my own SQL database. (details below)
Lead Forensics (paid subscription, but you can do a trial).
For tracking and storing my own data, I record unique visitors based upon the IP Address they're connecting from and then have a separate table that records all page views that links back to the unique visitor table.
Lead Forensics data simply allows me to link up those unique visitors with actual companies that have viewed my website.
Doing it yourself means you don't have to rely on Google working for your records to work, and in my experience Google Analytics tends to round numbers so you don't get a true indication of numbers, and also you can remove bots and website trawlers from your data by tracking the user agent string.
As a somewhat ugly hack you could use transaction tracking. If you use the same transaction id multiple times subsequent products will be added to the existing data. So assign an ID at the start of the visits and on each page record a transaction with the current page url as product name (and the ID as transaction id). This will give you the complete path per user (I am frankly not to sure how this is useful - at some point you probably want aggregated data. Plus each transaction and product counts towards your quota for interaction counts, so on a large site you might run over the 10mio hits limit).
you can do it programatically
have a MAP in the backend which stores the userId (assuming u would have given a unique ID at the time of login to each user) with a list of Strings(each string being URL visited by that user)
whenever the user hits another URL from Page 1(and only from page1, check it using JS), send a POST request to backend with the new URL in its data section.
In the backend, check if the URL is of Page 10 and if not, add this URL as a string into the MAP for that corresponding user
Finally, when the user clicks on the Page 10 URL, you know the URLs in the way from Page 1 to Page 10 and so use them.
Though if I consider JS and I have not misunderstood your question, we can get the previous URL from request header information using document.referrer.
Are you trying to do it from 'Google Tag Manager'? I am not sure whether you are trying to trace the URLS in clientside or server side?
In our user sign-up process, conversion is being defined each time a user completes 4 steps and lands on their individual user home page (/publications\/.*). The RegEx is functioning properly, however I realized that GA is registering a "conversion" every time a user signs back in and visits that same page for the second time, third time, etc., since that page is just each user's "home" page on return sign-ins.
Is there a way to force GA to recognize the visits ONLY the first time a user hits that page?
Thanks for your help in advance!
No. You better create a new url for when the process completes, or maybe fire a virtual pageview once the user completes registration.
You can also mark the first step of the process as a required step. You create a URL Goal but add the sign-up form as a required step. The problem with this setp is that it only applies to the funnel view. The total conversions would still count all of them, but when you look at the funnel view you would only see the conversions that went through the required first step.
There are a couple of ways I could think of:
Eduardo's virtual pageview recorded on a successful sign-up would be
my number one recommendation. This pageview will become your Goal
Conversion URL and will take care of the repeat offenders.
Set a cookie for your registered users and have that determine the conversion tracking.
in my asp.net form i want to show country flag along with current visitor count. when user visit our site from USA then USA flag count will be increase by one and when the same user close his browser or go to another site then count will be decrease. please give me the best logic to show current visitor count country wise along with country flag. need help. thanks
The biggest problem here is this - you can't rely on the event of closing the browser.
http://www.codeproject.com/Articles/58835/Window-Close-Event-of-Browser
However, you can try to get at least approximate results. In the article above you see how to react on these events. I'd use ajax to communicate with the server to increment/decrement the values as needed, updating the relevant parts of the page in the process. For storage, you can use database to store these values for instance.
Look here for more info on ajax with jquery in asp.net: http://www.simple-talk.com/dotnet/asp.net/ajax-basics-with-jquery-in-asp.net/ If it isn't enough for you, use google, there are plenty resources out there waiting for you.
I have created a goal in Google Analytics that is met when the user completes the sign up process. The page that they end up at is
http://my_url.com/?just_signed_up=true
In order to calculate my conversation rate, I need to do this calculation:
goal (sign ups) / new visitors
I know that in order to use new visitor numbers, I can either set up a profile with a new visitor filter or just apply a new user advanced segment on my normal profile.
My problem is that the Google Analytics tracking code is on every page in my site, including my landing page. The sign up process goes like this:
Landing page -> Sign up form -> http://my_url.com/?just_signed_up=true
When the user ends up at the URL above, am I correct in thinking that Google Analytics will no longer consider them a new user, as they would have the cookie from when they landed on the landing page at the start of the sign up process? If so, then there will never be a new visitor that meets the goal. How would I calculate my conversion rate in this scenario?
A returning visitor is someone who starts an additional Google Analytics session while using your site. To start a new session they need to close their browser or stop using the site for a period of at least 30 minutes. Browsing around your site clicking links isn't considered stating a new session. This means that, in most cases, signups from new users will be from people (or at least browsers with a set of cookies) who have not visited your site before.