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

The Archive Base Latest Questions

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

Google Chrome Extension documentation has some good information here: http://code.google.com/chrome/extensions/tut_analytics.html I put the analytics

  • 0

Google Chrome Extension documentation has some good information here:
http://code.google.com/chrome/extensions/tut_analytics.html

I put the analytics tracking code in my background.html file.

However I tried putting the _gaq.push call inside a script that runs on the page and got an error saying that the variable _gaq is not defined.

So I have to put onclick events in every element on the page I want to track and from there, call a function in background.html? Is there a better way to track events?

  • 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-23T05:26:22+00:00Added an answer on May 23, 2026 at 5:26 am

    You can do this with chrome.extension.sendRequest in the content script and chrome.extension.onRequest.addListener in the background.html page. See here for more details: http://code.google.com/chrome/extensions/messaging.html. Also be sure your manifest.json is correct; I ran into problems when I had a hyphen character instead of an underscore.

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

Sidebar

Related Questions

This is a very specific question for a Google Chrome extension. http://www.meebo.com/mobile/ This page
I am creating an google-chrome-extension which has html notifications. There will be a close
I included some adsense code in my google chrome extension popup file. Unfortunately this
When using Google Chrome, I want to debug some JavaScript code. How can I
I started reading Google Chrome's documentation, and liked it's approach of using HTML and
I am experiencing some problems with a google chrome extension I have made. I've
I would like to write a google chrome extension to intercept http traffic and
I'm trying to make a google chrome extension using javascript/html. Currently, I'm simply trying
I want to write a Google Chrome Extension that can take information from a
I am writing a Google Chrome extension. Thanks to everyone here for putting up

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.