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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:02:29+00:00 2026-05-17T17:02:29+00:00

Could anyone clarify how the GA actions _gaq.push([‘_link’, <href>]); and _gaq.push([‘_linkByPost’, <form>]); work? I’m

  • 0

Could anyone clarify how the GA actions _gaq.push(['_link', <href>]); and _gaq.push(['_linkByPost', <form>]); work?

I’m not interested on how to use them as presented in the documentation. I understand those scenarios. I want to know more about what they do when called.

Edit:

I suspect how this works but I need some confirmation from someone that fiddled with this longer than me. I want to know what the process is in each of the cases in small steps. I know that it changes the sent data in order to overwrite to cookie on the target site, but I need to know exactly the actions that happen (in terms of JavaScript on the sending page) after you do the push.

I would also like to know if I could use _gaq.push(['_link', <href>]); from anywhere in my code to change the page.

Thank you,
Alin

  • 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-17T17:02:30+00:00Added an answer on May 17, 2026 at 5:02 pm

    We will assume _gaq.push(['_setAllowLinker', true]); used on any needed page.

    What _gaq.push(['_link', <href>]); does:

    1. Appends the __utm<x> cookies to <href>. You need to return false in the onclick of the anchor so that the original link does not follow through.
    2. Changes the browser location to the newly formed URL.

    What _gaq.push(['_linkByPost', <form>]); does:

    1. Changes the action attribute of <form> so that it includes the __utm<x> cookies.

    What happens on the target page:

    1. The GA script on the target page checks the received parameters and if the __utm<x>s are sent it overwrites its own cookies with these. This results in identifying the user as being the same on that left your original page.

    As a bonus _gaq.push(['_link', <href>]); can be used in (almost) any situation window.open(<href>); can be used.

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

Sidebar

Related Questions

could anyone please clarify the meaning of line generalizes the tag object's storage of
Could anyone please clarify for me the effect of Nginx caching image? Currently I
Could anyone please clarify the difference between continuous and discrete attributes? Thanks.
I've a small doubt in my mind; could anyone please clarify me is the
Could anyone please clarify the defination of attribute? for example, in the following code,
Could anyone clarify on the types of buffers used by a program? For eg:
I have the following code, could anyone please clarify my doubt below. public static
Here's a list of selectors I've seen before: $('.menu') $('menu') $('#menu') Could anyone clarify
Could anyone guide me in created a simple app in JS? What the app
Could anyone please let me know if there is a way to programatically determine

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.