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

The Archive Base Latest Questions

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

Somewhat confused by GA, I got to thinking .. surely I can track specific

  • 0

Somewhat confused by GA, I got to thinking .. surely I can track specific dynamic pages on our site.
However looking at the code, its not immediately apparent what can and cannot be tracked, and echoed back for stats and graphics rendition.

So heres the crunch, we have a classified ads site. Our advertisers, can create ads and deploy them. Each ad has an ad id. This is embedded within the page url. ( or can be in any format to give it a unique identity )

So I was looking at the analytics code: ( ours at least )

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12345678-1']);
_gaq.push(['_setDomainName', 'ourdomain.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);

(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

What intrigues me is ( _gaq.push([‘_trackPageview’]); )

Can we uniquely add the id of the page into the trackPageview “bit”
From what I have read across the web and across stack, no one actually has identified a specific page ( esp. dynamic pages ) so say we had a page called ad_12345.php ( for example )

Can that be appended dynamically into the GA scripting in the page ( now we server our GA using php includes )

So we would need to set up a var using php I guess, and append that var as a tracking ID into the trackPageview portion ..

Does anyone know how to do this.


What are we trying to achieve ?

We wish to give our advertisers the ability, to view stats for their ads. We use gapi to achieve this along with charting.
We want them to be able to goto their usercp, click one of their listings and goto a page that shows the stats for that particular ad, the only way I see of doing this is to be able to apend ad ids to the GA script itself.

There is nothing confidential given away within our stats graphs, they are purely for the user to see.

Anyhoo .. any ideas please ?

  • 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-29T09:02:51+00:00Added an answer on May 29, 2026 at 9:02 am

    You can track ‘bogus’ pageviews, pages that doesn’t really exist, like: "ad-12345-customerX"

    See: http://code.google.com/apis/analytics/docs/gaJS/gaJSApiBasicConfiguration.html for more info.

    Basically:

    _gaq.push(['_trackPageview', '/home/landingPage']);
    

    or

    _gaq.push(['_trackPageview', 'ad-12345-customerX']);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I work with code written by other people, occasionally I am left somewhat confused
I am currently working on localizing a Form. However I am somewhat confused as
I am somewhat confused about a paragraph in the code complete book. In the
I am learning about SOAP implementation and have become somewhat confused regarding the appropriate
Somewhat to my surprise, the following code prints out Close twice. Running through the
I'm trying to take advantage of Symfony's authentication and authorization capabilities however I'm somewhat
I somewhat confused because I've read that everything should be possible at IRQL_PASSIVE, but
I am somewhat confused right now with a obviously pretty simple regex but it
I'm somewhat confused about the lifecycle of ManagedBeans of type request. In this example
I am somewhat confused about memory allocation of static variable in objective C. should

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.