Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8707661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:55:33+00:00 2026-06-13T03:55:33+00:00

I made slight changes to the code described here in order to track outbound

  • 0

I made slight changes to the code described here in order to track outbound link clicks. This is my code:

function recordOutboundLink(link, label) {
  try {
    var myTracker=_gat._getTrackerByName();
    _gaq.push(['myTracker._trackEvent', 'Outbound Links', label, link.href ]);
    setTimeout('document.location = "' + link.href + '"', 100)
  }catch(err){}
}

Then I added it to my href tags like so:

<a href="http://example.com/user/5" onclick="recordOutboundLink(this, 'example.com');return false"></a>

I think it’s not working, though. It’s really hard to check if it works or not. How do I check if it’s working or not?

EDIT: Using google analytics debugger for chrome I was able to see what’s going on. It displays:

Account ID               : UA-XXXXX-X

It’s odd because normal page tracking is working as expected. This is how I set up google analytics code:

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'my-id']);
_gaq.push(['_trackPageview']);
(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:55:34+00:00Added an answer on June 13, 2026 at 3:55 am

    Look for the __utm.gif tracking pixel request. A few different ways of doing this are:

    • A web debugging proxy like Fiddler (my preference)
    • The Network tab in Firebug or Chrome Developer Tools.
    • The Google Analytics debugging script ga_debug.js will log tracking requests & errors.
    • Google Analytics Tracking Code Debugger is a Chrome extension that enables ga_debug.js.

    The analytics code on the page probably has a _trackPageview, so as the page loads you’ll see an initial __utm.gif.

    When _trackEvent fires, there should be a new __utm.gif request being made. Parameters to examine in __utm.gif URL are:

    • utme=5(Outbound Linkslabellink.href) — _trackEvent parameters
    • utmac=UA-1234567-8 — the analytics UID

    Also, (as pointed out by @Eduardo), take a look at Google Analytics Basic Debugging

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've used this exact code with a slight modification of the values in another
I just copied from oracle.com website and made a slight changes(altered console to System.out)
I have a slight problem... we made a change to our url structure the
Made this nice little loop for hiding and showing div's, works as a charm
I made a Web service in which I have a function to count some
I am aware this topic has been raised severals, however i have a slight
I just made a 100% height div on this page, but (at least in
Why can't you pass literal strings in here? I made it work with a
I just wrote some code. It has my own custom made class. In that
I'm have slight difficulty installing jCarousel onto my site. http://www.gmarwaha.com/jquery/jcarousellite/ I've made attempts to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.