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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:46:35+00:00 2026-06-14T16:46:35+00:00

So we just relaunched our site as a Backbone powered single-paged app, but we’re

  • 0

So we just relaunched our site as a Backbone powered single-paged app, but we’re having a heck of a time tracking our conversions from our AdWords ads into the site with Google Analytics.

The problem is that in order for Google Analytics to track the fact that the user came in from AdWords, it looks for a URL query parameter called gclid in the URL:

http://test.com/?gclid=(Q#kjsdf0INKJSDJF9

But, when the Router from Backbone initializes, it removes all the query parameters from the URL, so when the tracking event fires, it doesn’t see that the user came from an AdWords ad.

We tried sending the user to an interstitial page that loads the analytics code and waits for the event to fire and then forwards them into the site, but

  1. Its ugly and shows users a blank page for a while
  2. Doesn’t work without a significant wait for IE8 users (who make up 50% of our user base sadly)

We contacted Google’s AdWords help to see if we can manually give the gclid to Analytics and their answer was

You should hire one of our consultants who will figure out how to keep the URL parameters on your site so it works correctly because we do not support manually setting the gclid ID

(Sadly only a very minor paraphrase.)

Google-fu leaves me blank in this respect — lots of people asking questions in the Google forums, but no answers.

  • 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-14T16:46:36+00:00Added an answer on June 14, 2026 at 4:46 pm

    I don’t know how everything is setup, but Backbone might not be seeing that URL with the parameters as a match, or a route that it knows about. In fact, you can test that by doing something like…

    unless Backbone.history.start(pushState: true)
      window.location = someDefaultURL;
    

    If you wanted just a simple way to match routes with params, here’s two ways that you could do it.

    class MyRouter extends Backbone.Router
      routes:
        'test?*params': 'test'
        'testTwo?gclid=:gclid': 'testTwo'
    
      test: (params) ->
        console.log 'test route', params
    
      testTwo: (gclid) ->
        console.log 'test route two', gclid
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just checking my JS and I have an error, but I cannot see where.
Just a simple question, but can't get an answer on my own. In memory
i have to implement flash streaming for the relaunch of our video-on-demand system but
just a brief QList intro, QList is similar to QVector and STL vector but
Just downloaded meteor for Windows created the app studyapp , started the server locally
Just want to ask how to initialize an ordered pair having the value of
Just upgraded to spring3.2 - but mail has disappeared AFAIK. It is not mentioned
Just recently I've installed the Qt libraries on my computer, and as a complete
just wanted to ask where I define initial class properties? From other languages I
Just learning the world of jquery, and all my googling gives examples like this:

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.