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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:16:22+00:00 2026-05-23T08:16:22+00:00

What I basicly want to do is to be able to call _trackevent for

  • 0

What I basicly want to do is to be able to call _trackevent for 2 accounts.
One goes to the main brand domain, and the other to the dealer brand domain.
But for some reason, the “b” account wont send any beacon.

Not working:

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12345678-1']);
_gaq.push(['_setDomainName', 'brand.dealer1.domain.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
_gaq.push(['b._setAccount', 'UA-17225318-3']);
_gaq.push(['b._setDomainName', 'brand.domain.dk']);
_gaq.push(['b._setAllowLinker', true]);
_gaq.push(['b._trackPageview']);

But if I simplifie the trackingscript, without _setDomainName, it will work.
But I need the _setDomainName in my tracking.

Working

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12345678-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['b._setAccount', 'UA-23456789-3']);
_gaq.push(['b._trackPageview']);

So can anyone point me in the right direction?

  • 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-23T08:16:22+00:00Added an answer on May 23, 2026 at 8:16 am

    If the _setDomainName value doesn’t match the current hostname, the beacon isen’t sent. You can’t bind a cookie to a foreign hostname.

    Since you have two unique IDs, the data from the standard tracker and the b-tracker is separated, and sent to the different accounts. So the dual track-events (with different prefixes), will work fine.

    Why do you need the setdomainname? Are the sites cross-domained og subdomained? In either case, I’d just use:

    _gaq.push(['_setDomainName', 'none']);
    

    For both trackers. And throw in a:

    _gaq.push(['_setAllowHash', false]);
    

    Just to be sure that the cookies will work for both trackers.

    The segmentation can then be done with filters/profiles/advanced segments in the GA interface.

    Hope this helps

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

Sidebar

Related Questions

hoping some one can shed some light on my problem. Basicly I only want
basicly I've got an array and want to call the same function for each
For my current project I want to be able to load some classes from
I want my report to display results from two select statements. Basicly, one select
Basicly what I need is to be able to rename an XmlElement (which is
Its maybe not the best solution in most cases, but i want a table
The code below basicly animates a div back and forth. Then I want the
JQuery: .LOAD, how to get next call to happen AFTER the .LOAD completes? Basicly
I need to redirect an user, but I need to simulate some form processing,
I want to make a program that concatenates an exe and data into one

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.