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
ADVERTISEMENT
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
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
Oct 6, 2009
code messing up their page view-ability in Safari on a Mac?
View 3 Replies
View Related
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
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
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
View Related
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
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
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
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
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
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
May 15, 2010
adding my Google Adwords conversion tracking code to my new site?I am using a template that uses Ajax to submit a form. I don't really know anything about ajax, so I am confused about how to add the tracking code.
View 1 Replies
View Related
Jul 30, 2010
I can tracking outgoing links now for html links. How can I track outgoing links in flash with jquery or something else?
<html>
<head>
<meta charset="utf-8">
<title>Tracking outgoing links with JavaScript and PHP</title>
[code]....
View 2 Replies
View Related
Oct 14, 2011
is it possible to track whether user is typing in the browser's address bar or aside google search box ( which appears in most of the browsers besides address bar)? if yes, I would like to know HOW? references are welcome.
View 4 Replies
View Related
Jan 11, 2011
Is it possible to submit multiple links all at the same time using Javascript? I check all over the web and can't find any examples anywhere.
I would like to click on a button and submit to google, yahoo, msn, etc all at the same time. Like someone physically click on [url], [url], [url], so on.
View 3 Replies
View Related
Jan 11, 2011
Is it possible to submit multiple links all at the same time using Javascript? I check all over the web and can't find any examples anywhere.
I would like to click on a button and submit to google, yahoo, msn, etc all at the same time. Like someone physically click on [url], [url], [url], so on.
View 3 Replies
View Related
May 27, 2011
I have a Google map (API v3) with one marker and infowindow which contains a link that I have placed in a modal dialog. The problem is that the link in the infowindow is not clickable, even though it reacts to mouse hover. If I remove 'modal: true' from my call to open the dialog, the link becomes clickable, and the new page is loaded. Is there a solution to this?
View 1 Replies
View Related
Dec 2, 2010
im doing a web page to order train tickets, and i have 2 text boxes where the user inputs a outbound date and a return date if applicable what i want is to check whether the second date either equals or is after the outbound date! im doing it in javascript
View 1 Replies
View Related
Sep 7, 2010
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.
View 3 Replies
View Related
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?
View 3 Replies
View Related
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
Feb 24, 2006
How would i make it so if a user visits
http://www.mysite.com/a.php
i would have a javascript set a cookie
then if the same user visits (within 30 days or so)
http://www.mysite.com/b.php
it'll write their ip address to ips.txt?
is this simple to do?
View 6 Replies
View Related
Aug 31, 2006
In Firefox, what's the best way of tracking the form submit?
The following are two ways I tried, but they won't work if the form is
submitted through JavaScript.
Method 1: using the window.onsubmit event handler
Code: window.onsubmit=handleEvent;
Method 2: I am attachin event listeners to all the forms for the event
submit.
for(var i=0;i<forms.length;i++)
{
var form=forms[i];
form.addEventListener("submit",handleEvent,false);
}
It seems submit event is not generated if the form doesn't have a
submit button. Why so?
What's the best way through which what ever way the form is submitted,
I should be able to track it.
View 3 Replies
View Related
Jan 2, 2007
I'm currently integrating the shinystat stats system with a flex
application. Unfortunately like all flash player apps you don't have
pages. To solve the problem I made a very simple javascript function
that is called from flex and loads the traking image from the shinystat
server.
The response from shinystat comes in two rounds. The first response (a
file moved 302 http code) make the browser calling a second server
where the image is stored. With the second response come the traking
cookies. Now if I test a dummy page on my local machine it works just
fine, cookies are set. But the problem come when I upload the page to a
www server. When the browser opens the page the image is fetched fine
but the cookies are not set.
View 1 Replies
View Related