Google Analytics - Page Loading Slows Down

Jun 22, 2009

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.

View 3 Replies


ADVERTISEMENT

Google Analytics Won't Track If There Are Any JS Errors On Page?

Dec 1, 2009

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?

View 5 Replies View Related

Google Analytics Behind A Paywall?

Feb 16, 2010

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.

View 2 Replies View Related

Google Analytics Code In Safari?

Oct 6, 2009

code messing up their page view-ability in Safari on a Mac?

View 3 Replies View Related

Ajax :: How To Complete Script Like Google Analytics

Jun 3, 2010

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 .....

View 3 Replies View Related

Combining Two OnClicks With One Link For Google Analytics?

Feb 5, 2009

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:

<a href="#" onclick="window.open('http://www.example.com', null, 'height=800, width=1000, toolbar=0, location=0, status=1, left=200, top=50, scrollbars=1'); return false" onClick="javascript: pageTracker._trackPageview("/G1/example");" title="Example">Click here to visit example</a>

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:

onclick="javascript: pageTracker._trackPageview("/G1/example"); window.open('http://www.example.com', null, 'height=800, width=1000, toolbar=0, location=0, status=1, left=200, top=50, scrollbars=1'); return false" title="Example"

how I can keep my onClick method of employing links with window.open, but also assign a trackPageview to the action for goal purposes.

View 4 Replies View Related

Make Google Analytics Valid Code?

Jun 13, 2011

I have the google analytics code but it is presenting itself as not valid.

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'[code]....

ALso is this script suitable to link to externally?

View 6 Replies View Related

Setting Up ECommerce On My Google Analytics Account?

Nov 16, 2009

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]....

View 1 Replies View Related

Creating A Product Like Google Analytics With JavaScript

Aug 7, 2007

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?

View 2 Replies View Related

Tracking Non-public Website Through Google Analytics?

Mar 26, 2010

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.

[Code]...

View 2 Replies View Related

Tracking Outbound Links Via Google Analytics?

Jul 26, 2010

how to track outbound links with Google Analytics. I had read a few posts online as to how it's done, and this is the coding I have set up for it:

<a href="http://www.mapsresearch.com" onClick="javascript: pageTracker._trackPageview('/outgoing/mapsresearch.com ');" target=�_blank�>

The "goal" setting in google analytics are:

Goal Name: mapsresearch.com
Active Goal: on
Goal Type: URL Destination

[code]....

View 1 Replies View Related

Jquery :: Google Analytics Track Form Submissions

Jun 9, 2009

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?

<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8736163-1");
pageTracker._trackPageview();
} catch(err) {}$(document).ready(function() {
$("#pre-book").attr("onSubmit", "pageTracker._trackEvent('Signup Forms','AMF Signup','Newsletter',2.0);");
});
</script>

View 8 Replies View Related

Stop Google Analytics Setting Cookies On Subdomain

Jul 7, 2009

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>

View 1 Replies View Related

Script Slows Page Render Performance - Fix?

Jan 23, 2010

I have a nice javascript slideshow but it kills the rendering speed of my home page. According to Yahoo performance guru(s), javascript gets run before other stuff is rendered, so you fix that by putting the js code "at the end" of the html file.

Putting it at the end puts the slideshow at the bottom which is not the desired result. And even abs positioning is slave to the <div> structure.

How do I nullify the flow just for this one thing (I don't want to make the whole page absolute).

View 3 Replies View Related

Effect Of Js On Onload() Event - Enabling Always Slows Down The Page

Feb 14, 2010

I've been doing some research on javascript's impact on the time it takes for a page to load, as defined by firebug's "Net" tab's "onload" demarcation (the red line). It seems that aside from dynamic data that's not part of the HTML, enabling javascript always slows down the page. I've checked wikipedia, yahoo, digg, even google; a javascript-enabled loading of each site shows a later onload() event compared to loading the same site without javascript enabled. My question: Can anyone think of a site that loads faster with javascript than it does without javascript?

View 11 Replies View Related

JQuery :: Cycle Plugin Slows Page Rendering Speed?

Jul 2, 2010

I am using the cycle plugin on the homepage of my website and it it taking 6.5s ish to fully load the page. All the elements are loaded in less than 1s but it takes 5s plus to render the final page. Is this a CSS issue or is there a better way of using the cycle plugin?

[URL]

View 1 Replies View Related

Google Maps Adding A Second Google Map To A Page

Apr 7, 2011

I'm not sure where I have translated this incorrectly. I have one google map embedded on my page which works fine. But I wanted to add a second one. I thought the easiest way to do this would be to have a second page which is called later on with all the details on it for the second map. However although I think (this I presume is where I went wrong) I have replicated the instructions correctly the place holder for the second map just remains blank.

This is the code for my called page with the instructions for the second map:

And this is the script of the main page, just in case I would be better off keeping them both in one place.

<head>

I've cut out the script that doesn't relate to this so I hope I haven't missed anything important.

View 1 Replies View Related

Google Map Tiles Not Loading Correctly?

Apr 8, 2011

I'm using the Google Maps API (v 2) to display my phones last known location on a map. On this 'bare bones' page, the Google Maps tiles load correctly, without any jerking:

[URL]

However, on my customised page, the tiles jerk and slide around (try dragging the map and zooming out). This is particularly evident on Safari and Chrome.

[URL]

I'm not entirely sure how to fix it. The Web Developer script analyser is not returning any errors and I'm really at a loss to understand where I'm going wrong!

View 1 Replies View Related

JQuery :: Loading Google Map Js On A Certain Point Of Action

May 26, 2009

on my contact page, I have some hidden divs. One is for a google map. This div is only shown when the user has clicked to open the div. As I am working with smarty my template looks like this: <span id="gmap"> literal}

[Code]....

View 3 Replies View Related

JQuery :: Webpage Redirects To GOOGLE After Loading?

Oct 11, 2011

i have just downloaded a web template from internet,i was facing some difficulties first, but i have downloaded it completely and then it started working fine, but unfortunately as my html page loads it redirects to [URL]. this template is simple static website with javascript and jquery support can someone give me solution for this awkward situation?

View 3 Replies View Related

Google Maps - Get The Same Effect Loading With Xml File

Jan 29, 2011

[URL]

the link above shows a google map with randomised markers. It's a great effect, the only thing being that the locations are randomised.

I want to load an xml file of exact locations so that they can be panned to when the text is clicked on the right hand side.

I have tried loading an xml file to achieve this without success.

View 6 Replies View Related

JQuery :: Point Of Loading The Google Maps Api File?

Apr 28, 2009

Point of loading the google maps api file?

[Code]...

View 1 Replies View Related

Stop Google Chrome Loading A Frame Before It's Ready?

Feb 23, 2010

I have a website which includes stories with multiple chapters. These chapters have a set of clickable arrows at top and bottom to take you forwards and back through the chapters, including a "last chapter" arrow.When a story is in progress, the URL of the last chapter changes with each chapter added. Rather than having to go back into every previous chapter and change the URL of the last chapter by hand, I set them up so that the "last chapter" arrow is actually in an inline frame. That way, I only have to change the URL once, in the file go_end.htm which is the source for the frame. So both the picture of the arrow and its hyperlink are being accessed from outside.

My web pages are also set up to run on all major browsers and to detect the window width and resize all the artwork to fit, regardless of the browser and whether or not it accepts percentage sizes. Go_end.htm is no exception - it contains Javascript code which resizes the arrow so it is the same size as the ones which are actually in the parent page, outside the frame.This setup works perfectly in IE and Netscape, but Google Chrome either fails to display the arrow or makes it huge so it doesn't fit the frame. This seems to be because their superfast new Javascript editor is *too* fast. If I bung an alert command into go_end.htm, asking it to say the value of picWidth (the variable which sets the width of the arrow) as it loadfs, what happens is this.

Google Chrome displays an alert saying that picWidth is zero, then loads the first instance of the inline frame with no got-to-end arrow. Then it displays an alert giving a proper value for picWidth and loads the second inline frame with the arrow correctly displayed and sized. If I take out the alerts, it doesn't load the arrow in *either* frame. It's obvious that inserting the alert command somehow forces it to recognise the value of the variable which it then retains for long enough to load the arrow on the second pass.Any ideas for some command other than alert which would trick it into not loading the image until it's recognised the variable? If I put a time delay on loading the frame I can't see that that would help - the problem is that from the point at which it starts actually loading the frame it needs to wait for the variable to be set.

View 2 Replies View Related

JQuery :: Script Slows Down With Repeated Use?

Oct 21, 2009

I wrote a simple jQuery script to take a HTML list (ul and li elements) and add collapsing functionality. The problem is that when you click one of the items open and closed repeatedly, the execution gets slower and slower and eventually stops responding.

[Code]...

The list starts out fully expanded with a "+" next to each item that can be folded, which changes to a "-" after the folding is done. If a "-" is clicked, that item and all its children are expanded.

View 3 Replies View Related

JQuery :: Basic Page Loading DIV - Full Window DIV That Sits Above All The Content With A Loading Icon

Oct 21, 2009

I have a site that is very jQuery and image heavy. The main sections of the site link to sections that are built with several Tabs, and as it loads, you briefly see all the content load and then it is hidden by the Tabs code.

The plan is to have a full window DIV that sits above all the content with a loading icon that plays until the entire page loads, and then it fades down.

After some hair pulling and research I have code in place that does exactly as I ask, however it does not seem to work in IE6+7. It works in all other browsers.

The current code is:

CSS for the loading DIV is:

A working link is [url]

View 1 Replies View Related

Iframe :: Each Browser Shows The Loading Icon, As If A Page Was Loading?

Mar 19, 2010

I have a lot of javascript functions that request information from an iframe hidden on the page. I see other sites do this, but their browser does not do the loading action (like the processing circle in Firefox). When I do it on my site, each browser shows the loading icon, as if a page was loading. Is it possible to not have this?

http://bit.ly/cv1YqN

That is a sample link. Go down right side of page where you see three buttons: Trailers Featurettes Clips.Those return iframe information to work.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved