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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:28:45+00:00 2026-06-01T09:28:45+00:00

This is a question best illustrated by example: User goes to Site A ,

  • 0

This is a question best illustrated by example:

User goes to Site A, and clicks through to Site B. The referring site is now Site A. The same user clicks through to Site C from Site B. The referring site is now Site B.

I’m wondering if it’s possible to have the referring site for Site C show up as Site A (the initial referrer if you will).

Why I’d like this (a bit more context)?

I’m using a targeting software (Site B) that’ll redirect to the true destination (Site C). Because I’ll be linking to this targeting software instead of the final destination, Google Analytics will register all referrals as the targeting software which will completely defeat the purpose of tracking referring sites.

I’d like to be able to pass the in “actual” referrer (Site A) in order to see where visits to Site C actually coming from.

If possible I’d like to do this without “hacks” or “workarounds” which have the potential to break easily.

  • 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-01T09:28:46+00:00Added an answer on June 1, 2026 at 9:28 am

    See _setReferrerOveride:

    _setReferrerOverride()

    _setReferrerOverride(newReferrerUrl)
    Sets the referrer URL used to determine campaign tracking values. Use this method to allow gadgets within an iFrame to track referrals correctly. By default, campaign tracking uses the document.referrer property to determine the referrer URL, which is passed in the utmr parameter of the GIF request. However, you can over-ride this parameter with your own value. For example, if you set the new referrer to http://www.google.com/search?hl=en&q=hats, the campaign cookie stores a new campaign with source=google, medium=organic, and keyword=hats.

    _gaq.push(['_setReferrerOverride', 'URL-YOU-WANT-AS-REFERRER']);
    

    It may still work whether you are using an iframe or not. Worth a try and not a hack.

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

Sidebar

Related Questions

Best way to illustrate my question is with this example code: class Item {}
My question is best illustrated with an example. Suppose I have the enum: public
Ok I nabbed method C for preloading images from this question best way to
Yesterday, I asked this question regarding best practices for a simple information retrieval system
This question is about best use scenarios in projects with ORMs like NHibernate, Subsonic,
This question will expand on: Best way to open a socket in Python When
This question is not about 'best' barcode library recommendation, we use various products on
This question originally asked which is the best method for uploading files via SFTP
This question is not about which is the best, it is about which makes
This question is related to this one: Best way to store product colors in

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.