• Resolved jpelchat

    (@jpelchat)


    Hello,
    I am reporting an urgent bug regarding impression tracking for dynamic groups. My ads are rotating successfully and clicks are tracking correctly, but the AJAX post call for impressions never fires due to a mathematical error in the plugin’s JavaScript file jquery.groups.js. Our impressions statistics have dropped dramatically, and we’ve spent hours trying to figure out why.

    The Issue: The PHP generating the ad HTML is outputting a base64 data-track string that decodes to only 3 comma-separated values (e.g., "NDYsMiwxMA==" decodes to "46,2,10").

    However, in your JS file (jquery.groups.js), the gslider function attempts to access a 4th value to calculate the impression timer:

    Line 65:

    var expired = now - admeta[3];

    Why it fails: Because admeta[3] is undefined (since the array only goes up to index 2), expired becomes NaN. On the next line, the condition if(session <= expired) { compares a number to NaN. In JavaScript, this always evaluates to false, causing the script to completely bypass the $.post AJAX call to track the impression.

    Could you please review the admeta array indexes and issue a patch to fix this mismatch?

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author Arnan

    (@adegans)

    Version 5.17.5 fixes the issue.
    Thanks for your report and testing!!

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.