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

  • Home
  • SEARCH
  • 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 3286940
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:26:14+00:00 2026-05-17T20:26:14+00:00

Already posted this in Google Analytics help forum, but noone could help. Hopefully I

  • 0

Already posted this in Google Analytics help forum, but noone could help. Hopefully I have more luck here… :

I use Google Anlaytics asynchronous tracking for my pages. Works like a chram.

THE PROBLEM:
Recently we added event tracking to monitor how often people click on download links on our pages. I encountered a problem with Firebug: it seems like the request for tracking is sent (i can see it in Firebug) but never ends as the “new” request for the file, which is in fact a link to a php-site with some params, seems to cancel it.

When clicking a second link to download a nother file on the SAME PAGE Firebug does not show the new request to Google but still the old request with a spinning wheel.

MY IDEA:
1. Use asynchronous tracking for pages
2. Use a JavaScript onClick-Function for the download links to track before file is downloaded
3. Track SYNCHRONOUSLY the events for the downloads in the onCLick Event-Handler
4. Return “true” in the JS function to trigger the actual HREF link to the PHP file resulting in the file download.

MY QUESTIONS:
1. Is it possible to mix asynchronous and synchronous tracking?
2. How can I do it? Is there a code sample somewhere? I couldn’t find any in the Google help…

Does anyone have an idea?

  • 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-05-17T20:26:14+00:00Added an answer on May 17, 2026 at 8:26 pm

    in case anyone ever runs into the same problem: the solution is to use and iframe for the file downloads. Like that, the download process starts in “a container” which does not interfere with the event tracking or other AJAX requests your might want to send.

    If this helps you, please vote for the answer 🙂

    THX

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

Sidebar

Related Questions

I have already posted a question about this, but the situation has changed sufficiently
I already posted this, but here is the exact code: x1 = input() x2
I already posted this for a help , but unfortunately none of them worked
I have already posted my this problem another time but i have not got
im sorry if this was posted already i have been looking to no avail..
I know this question was already posted in StackOverflow but I either didnt understand
I already posted this issue but had edited it so many times I thought
I've already posted this question on the authors website , but I thought I
I need help to rewrite my URL, already user posted this kind similar questions
Sorry, for double posting, already posted this question once, but I realized I weren't

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.