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 8102043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:08:07+00:00 2026-06-05T23:08:07+00:00

I must be doing something wrong here. I’m trying to use Google Analytics to

  • 0

I must be doing something wrong here. I’m trying to use Google Analytics to track hits on a form hosted by InfusionSoft (our CRM/etc provider) on their domain. We want to track hits under a separate domain in GA.

here is the form in question: our order form

I have tried several forms for the GA code — first the async snippet, then the ‘traditional’ snippet, now back to the async. Here is the async code I’m trying to use (inside the <body> tags):

Near the top of the page

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-1']);
_gaq.push(['_setDomainName', 'oursite.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview', '/saleform/67']);
</script>

Further down the page

<script src='https://ssl.google-analytics.com/ga.js' type='text/javascript'></script>

Relevant information

  • Using Firebug or Chrome’s dev tools, I don’t see any errors coming from GA when using this code.
  • Tracking is already working on oursite.com, but does not receive data from this page.
  • In Firebug’s console, _gaq and _gat seem to be working fine (no errors, they appear as objects with a lot inside)
  • __utm.gif is NOT being requested. I know this is a Bad Thing but am unsure what to do about it.
  • Using a Firefox extension to view cookies, I do NOT see any cookies being set for the domain specified in the above code (or the site hosting the form). edit: after including _setAllowLinker on our site, cookies DO seem to be working (showing up on the page)

Additionally, I have tried manually firing the _gaq.push(['_trackPageview', '/saleform/67']); method from the JS console (with no luck–the page does not show up in GA).

Please let me know if there’s any pertinent information missing from this post and I’ll be happy to update it. Thanks in advance for any insight you can offer.

  • 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-05T23:08:08+00:00Added an answer on June 5, 2026 at 11:08 pm

    After much fiddling with the code on the various pages, I’ve found a solution that works to my satisfaction. I’ll detail the three things that seemed to make the difference in this case.

    Hope this helps someone out there, and don’t forget to vote up if it helped you!

    1. Set up the normal GA code on our own website, including _gaq.push(['_setAllowLinker', true]);

    2. On the order forms (hosted by InfusionSoft in our case) set up the GA code as instructed by their website, but include _gaq.push(['_setDomainName','none']);

    3. Important: add onClick handlers in javascript which call _gaq.push(['_link', 'http://your.link.tld/etc']);

    For point 3, I used a snippet of jQuery to identify links to order forms on the webpage and bind the GA function call with click() — code for that is below.

    <script>
    jQuery(document).ready(function() {
      jQuery("a[href*='/sale-form'], 
        a[href*='/another-order-form-link'],
        a[href*='your_site.infusionsoft.com/saleform/']").click(function() {
          _gaq.push(['_link', this.href]);
          return false;
        });
    });
    </script>
    

    Explanation of code:

    • wait for the page to be ready
    • search for any links with href containing your search terms (more on that here
    • bind the _gaq.push(['_link', this.href]); function call to the onClick event handler for any links that were found in the previous step

    Additional note: if you include this jQuery code, you’ll have to have the jQuery library loaded. Also, obviously remove the <script></script> tags if you’re including this in a .js file.

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

Sidebar

Related Questions

I must be doing something wrong here (because really, what are the chances of
I must be doing something wrong here, any ideas? >>> (datetime.datetime(2008,11,7,10,5,14)-datetime.datetime(2008,11,6,9,30,16)).seconds 2098 It should
I must be doing something obviously wrong here. But what is it, and how
I think I must be doing something wrong here because my code only sent
So I must be doing something wrong here, just not sure what it is
I must be doing something wrong here but I can't find an easy way
I must be doing something wrong here. I want to a function to run
I'm facing a apparently very strange problem (I must be doing something wrong, just
I am fairly new to .Net, and I am clearly doing something wrong here.
I know i'm doing something very wrong here, but I'll be frank here my

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.