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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:14:10+00:00 2026-06-08T13:14:10+00:00

I am setting up some custom variables with Google Analytics using _setCustomVar . I

  • 0

I am setting up some custom variables with Google Analytics using _setCustomVar. I have seen some documentation (not official) that uses the syntax P1:P2:P3 to populate the value of a custom variable. I cannot find conclusive evidence in the Google Developers documentation that suggests that the value of P1:P2:P3 will be a string concatenated copy of Golf:Player:Scottish – is this the case?

_gaq.push(['_setCustomVar',
3,                          
‘P1',                       
‘Golf’,       
3                        
]);

_gaq.push(['_setCustomVar',
4,                          
‘P2',                       
‘Player’,       
3                        
]);

_gaq.push(['_setCustomVar',
5,                          
‘P3',                       
‘Scottish’,       
3                        
]);

_gaq.push(
['_setAccount', 'UA-123456-1'],
['_setCustomVar', 1, 'Category', 'P1:P2:P3']
);
  • 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-08T13:14:12+00:00Added an answer on June 8, 2026 at 1:14 pm

    AFAIK custom variable names are arbitrary and can be anything (within the core syntax limits, eg: 128 char limit, etc..), GA does not offer this sort of feature. However, I have seen certain Content Management and Template Systems (or plugins of them) do this sort of thing, or similar in principle. But they have separate code to parse for the “placeholder” values and output real values (or js variables holding he values) so that the actual value is passed to GA’s _setCustomVar method, not the placeholder value.

    It would be nice if GA implemented something like this though. I have seen this sort of thing in other tracking scripts (for instance, Omniture’s SiteCatalyst has this sort of thing, they call it “dynamic variables”. SiteCatalyst also lets you dynamically pop variables within their interface with either a processing or vista rule).

    So it wouldn’t be terribly hard for GA to implement. So they could bake it into their on-page coding and/or do it within the interface (probably add onto their filters functionality…it already does this sort of thing in principle to other stuff…).

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

Sidebar

Related Questions

I have some custom user controls in my .net winforms program that do not
I have a application for android 2.3.3 where I am setting some custom titles
I'm using google chrome, is there some setting somewhere I can change?
I have custom control - using Win Forms, that contains four TextBoxes, all have
I have an existing ASP.NET website with some custom routing, within a Solution that
I moved some hardcoded settings to a custom Section (so I did not use
I'm setting some Microdata for products sold by 3rd parties. I have the location
I'm setting up some simple url rewriting rules using mod_rewrite and a .htacces file,
After setting db to some arbitrary value, i am not able to perform any
I have a TextBlock that contains some text in some Run elements, and which

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.