Traffic Analytics Script Where Add The Same Code To All Domains?
Jan 29, 2010
With Google Analytics, you have to create a new profile for each domain, and post different code on each domain.
I'd like a traffic stats script (or website) where you can just add the same code for any domain, and that domain will be automatically tracked, even if it's a new domain. So if I have 100 domains and then add the same code to the 101st domain, it will track that domain fine.
Doesn't matter if the script needs to be hosted on your own server, or if it's 3rd party like Google Analytics. It can be commercial too if it's got an unlimited domain license. Anyone know of something like this?
The jQuery library is definitely very useful for those who have development background experiences but don't have the time to learn Javascript in it's true nature. I've played with it on and off, on a few smaller sites I manage, and the outcome was truly amazing. I don't know Javascript at all, aside from the basics and I was able to create a very fun and fast UI very quickly for my visitors. I wonder though; Does the jQuery library hold up efficiency for larger sites?
I currently manage a site with over 1.6 million post, averaging around 15,000 post per day this month. With me not having the time to really learn Javascript and I don't have much of a budget to hire someone to do the work I want yet, it would seem logical to use jQuery if I already know how to use it, right? I just worry, with the growth rate for the site at it's all time high, I'm afraid that jQuery will do more bad then good.
Are there any high traffic sites successfully using jQuery that you know about? has anyone experimented with jQuery on their high traffic sites? Would it seems more sensible to hire someone to do the Javascript work?
what i would like is to achieve what has been implemented here : [URL] the problem is that, although i have the numerical values (%) that indicate the traffic that passes through a link available as data, how to display them onto the google map?
I am looking for script that will allow traffic to visit links from my site, but will have to come back to me to exit. In other words I do not want to loose visitors to other web sites.
I'm trying to work with XML DOM for the first time as I need to grab a value from a SOAP request. I've been following this: [URL], which says modern browsers won't parse xml files from another server for security reasons. How would I got about doing this then? I've been using the price of crude oil as an example [URL] and want code portable enough to put on something like Tumblr, so I don't think I can actually save the file locally first.
Where I work there are certain dates where nothing can be done, certain times where work can be done with caution, and dates where work can be done. I want to put on the site a traffic light that would change colours based on the calendar dates where work can/can't be done.
For example, if April 11th there is stuff to do, the traffic light would be green. But April 12th, there isn't work to do, it would turn red. Do you know how I would go about doing this?
- two websites, one on domain1 and the other on domain2 - domain1 opens a new window which is a javascript app from domain2 - domain1 needs to communicate with the javascript app on domain2
The problem occurs in that last step. Browsers don't allow script access across domains for security reasons, rightly so. Nonetheless, I still need to communicate with the application. I can reload the window passing the necessary commands through the url, but this is slow because the whole javascript app must reload.
Anyone have any ideas about a way around this limitation that would be semi-efficient, at least more efficient than reloading the app? Signing the script isn't an option for cost reasons. I have control over both sites, so I can do anything that needs to be done.
I am wanting to make an ajax call across domains. Im attempting to call an external api with json data and (hopefully) receive a response. It's a mapquest api to obtain driving routes.Is there a mechanism in jQuery that will allow me to make a cross-domain ajax call?
I am working on this web site with some of the pages at a different domain name. It is actually one web site, but some of the pages are at a different domain name (different root, too) although the IP address is the same.
Basically, there is one main window, and a pop-up window. They need to "talk" to each other - mainly access properties to see what page they are on.
As, the web site is on two domain names, there is a security problem when the pop-up window tries to read properties in the main window, or vice versa.
Is there anyway to share information between the two? Or is it hopeless?
function validateEmail(strValue) { var objRegExp = /(^[a-z]([a-z_.]*)@([a-z_.]*)([.][a-z]{3})$)|(^[a-z]([a-z_.]*)@([a-z_.]*)(.[a-z]{3})(.[a-z]{2})*$)/i; return objRegExp.test(strValue); }
what should i add to reject email addresses from hotmail.com and yahoo.com?
I have a site that uses 2 domains to forward to the IP no. (a .org.uk and .co.uk). The site uses the Google Map API for a map on the site, however the API key is locked to the individual domain (I do have two keys for both the domains). I found the following Javascript which is supposed to switch the key depending on the domain that is accessing the page.
My company is in the search process for using web analytics on our company intranet application. Anyone have any recommendations for some 3rd party software to accomplish this?
We use Google analytics for the public site, but according to the documentation, we have to use a fully qualified domain name for the intranet it order for it to work with google.
i'm currently pitching some website development. The majority of this site is behind a paywall (meaning users must pay subscription to view the content). There is much talk about google analytics being used. I can't help but wonder a few things about this:
1) does google analytics function correctly behind a paywall -- i.e., when a session is required for viewing?
2) Does this present any kind of security problems?
I'm imagining that the google analytics script will most definitely load if embedded in a paywalled page. I'm also imagining that such a script could easily parse the content of that page and deliver it to google. Any thoughts on this matter are welcome.
I am trying to get my head around this AJAX/JS problem with IE where I am getting visitor info like cookie, ip, URL, referrer, user agent and sending it to an external domain where my database is storing all the stats for the client. In short something like Google Analytics does. My script is working fine in Firefox and chrome so far but getting "Access Denied" error on http.open() in IE. I did try derelict's method but I guess I am missing something and same thing happens in IE without error. It is not sending the data to external domain. I am sure many of you have tried and make it worked but I am not able to get it working. I have another option where I can add a php or asp file and use cURL to send the value but I want to make it simple like GA as there may be many clients with different servers and might not possible to add additional pages.
Code: //This is processJS.shtml page to use PHP within JS var guestID=getCookie('guestID'); if (guestID==null || guestID=="") { setCookie('guestID',"-1",365); } var guestID=getCookie('guestID'); var siteurl = '<!--#echo var="HTTP_HOST"-->'; var ip = '<!--#echo var="REMOTE_ADDR"-->'; var agent = '<!--#echo var="HTTP_USER_AGENT"-->'; var page = document.URL; var ref = document.referrer; var clientID = '123'; // clientID will be different for each client .....
This question pertains to Google Analytics (GA). GA provides a specific way you can assign a Goal to the event when a user clicks a link on your site that points to an external site.
Implementing this code isn't confusing, however, because it relies on the javascript onClick, I am worried it is conflicting with my links - as they, too, are configured using onClick. Here's an example of one of my links, with the GA onClick command added after it:
As you can see, I am using onClick twice in the same code. I don't think that that's correct syntax. I tried putting them together like this, but it didn't work:
I've noticed that my site has been loading slower lately, especially in google images. I'm thinking that this could be due to the google analytics javascript. I was told that page load slows down if its placed on top (which I have). Is this true? I'm not really warming up to GA but I also don't want to nix it completely. Bottom placement doesn't work for me as GA does not record then.
get some help setting up eCommerce on my Google Analytics account.How do I add a unique order ID to the javascript field? Do I just leave it blank? All of my customers are directed to the same thankyou page so I'm not sure how to track a bunch of unique order ID's on the one page.The code is on this site and the code I've altered below: I just need to alter the _addTrans and _addItem parts.http:[url]....This is my altered version:
HTML Code: <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");[code]....
I was reading the Google Analytics support docs and it says that webmasters must be careful not to have ANY javascript errors on their webpages, because if there is an error, GA will not log visits for that page.
Is this true? I often wrap add onclick functions to various links on my pages dynamically, eventhough I may not have declared the specific onclick function in the page (thus causing an error). Does this mean it won't track when I setup GA?
I've noticed that Google uses JavaScript to pass information to their servers for processing. I can only imagine they're passing back the HTTP request of the current request to pull the data from to track sessions, page views, time spent, etc. Does anyone have an idea of how they're actually doing this?
so I figured I can track one page of the private website (intranet) through Google Analytics. The way I do this is by creating a page on a public website with just GA code, then putting a 1px x 1px iframe on the private website.
I have a form that captures users email addresses when they sign up for a enewsletter. I want to add this form submission into my google analytics and from what I have read the best way to do this is by tracking an event? I have added some jquery that I mashed together and I just want to know will this work? I added it today and I can only find out if it has truely worked by waiting 24 hours. I downloaded a program called fiddler (recommended in dot net magazine) to see tracking requests in action instead of waiting 24 hours but I can't see any of the field names displaying like AMF signup?
I'm trying to serve static content from a cookieless subdomain s.mydomain.org.uk, so that image/css requests from pages at [URL] don't get sent with needless cookie data. The trouble is that Google Analytics insists on adding its cookies (_utma, _utmz) to those requests anyway!
My code is: <script src="[URL]" type="text/javascript"></script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("xxxx"); pageTracker._setDomainName("www.mydomain.org.uk"); pageTracker._trackPageview(); } catch (err) { } </script>