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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:44:55+00:00 2026-06-03T05:44:55+00:00

i’m trying to implement Woopra custom event data on page load, and i’m using

  • 0

i’m trying to implement Woopra custom event data on page load, and i’m using their guidelines
i have tried to push events on page ready but it always gives me that woopratracker is not defined, but however when i try to use it onclick event it works fine, i think that there is a delay in loading woopra libraries, but however i’m calling it’s functions on page ready which means that my call should wait for page ready before it executes!
i have settimeout and called the same function after 1 second, it worked fine, but still not logical, any ideas?? Thank you 🙂

  • 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-03T05:44:56+00:00Added an answer on June 3, 2026 at 5:44 am

    You’re right – you’re calling woopraTracker before the page is loaded. The most recent snippet on their site is async which means if you call woopraTracker right after this code, it will likely fail since wsc.async=true tells the browser to continue without waiting for this script to initialize. If you know what you want to track in advance, put that code into woopraReady.

    In this example, that’s exactly what they do: http://www.woopra.com/docs/tracking/custom-event-data/. It looks like you already found this doc, but are you placing your code into woopraReady and using the local tracker variable instead of the global woopraTracker? woopraReady will be called once the script is loaded so you won’t run into the issue you’re experiencing.

    If you have other stuff that tracks events, it can’t hurt to wrap the woopraTracker.trackEvent() in case the script didn’t load either because the user was really fast or because woopra had an error loading.

    Instead of calling woopraTracker directly you could define your own wrapper:

    var pushWoopraEvent = function(e) {
      // Don't screw us over if Woopra failed to load or hasn't loaded yet
      if (typeof woopraTracker === 'object') {
        woopraTracker.pushEvent(e);
      }
    };
    pushWoopraEvent({name: 'Rate Song', stars: 5});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have thousands of HTML files to process using Groovy/Java and I need to
I am trying to loop through a bunch of documents I have to put
I'm making a simple page using Google Maps API 3. My first. One marker
I have some data like this: 1 2 3 4 5 9 2 6
I am trying to understand how to use SyndicationItem to display feed which is
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

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.