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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:18:22+00:00 2026-05-25T02:18:22+00:00

I am trying to implement a tracking event for when my user scrolls to

  • 0

I am trying to implement a tracking event for when my user scrolls to the bottom of an article page on my website using JQuery waypoints plugin (http://imakewebthings.github.com/jquery-waypoints/), but am having trouble firing the event when I bring the URL of the page into the event. It works fine without the URL, but the URL of the page is needed so I can see which article is being read.

It is also a requirement that the event is only fired once per visit (which is what the event.stopPropagation();}, {triggerOnce: true,offset: ‘bottom-in-view’}); is for.

The JQuery code is below:

<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js"></script>
<script src="http://www.simonholmes.co.uk/js/waypoints.min.js"></script>

<script type="text/javascript">
$(document).ready(function(event) {
$('#lcol2').waypoint(function() {
    var PageURL = window.location.pathname;
       _gaq.push(['_trackEvent', 'Article Test Event', 'Scrolled to end of article', PageURL ,'DATA HERE']);
          event.stopPropagation();
            }, {
                triggerOnce: true,
                offset: 'bottom-in-view'
            });
 });
</script>

Thanks for any ideas and help,

Simon

  • 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-25T02:18:23+00:00Added an answer on May 25, 2026 at 2:18 am

    I found the problem, it was in the

    _gaq.push(['_trackEvent', 'Article Test Event', 'Scrolled to end of article', PageURL ,'DATA HERE']);
    

    part of the code. The final variable ‘DATA HERE’ had to be either be an integer, or left blank as stated in http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html, and not a string, which was causing the event to not work.

    Thanks for your help anyway Diodeus.

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

Sidebar

Related Questions

I'm trying to implement a view tracking web service on my website. I'm using
I'm trying to tracking valid user Ids in my Java servlet, can I implement
trying to implement a dialog-box style behaviour using a separate div section with all
I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,
I'm trying to implement some pixel tracking where I will save certain values in
Im trying to implement a single aspx page with several externals dll's. Following Zimmergren's
Im trying to implement fade in effect to my mp3 player. I´m using FloatControl
I'm trying to implement a bookmarklet where the user will click one <img/> and
I am trying to research and implement some computer vision techniques e.g. motion tracking
I am doing HCI (Human Computer Interaction) using face tracking. I am trying to

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.