Home > Other Systems (CPVLab, iMobiTrax, P202, Track Revenue, Click, Google Analytics, etc.) > The STM Mobile Tracker

Small STM Mobile Tracker bug (18)


07-03-2013 02:18 PM #1 rafael (Member)
Small STM Mobile Tracker bug

I just noticed a small bug and I'm wondering if anyone else has come across it:

When you setup a campaign to rotate offers, for some reason the STM Mobile tracker will get confused and assign conversions to the wrong offer.

So , say for example I have

Example Campaign 1 : 10 conversions
---Offer1 :7 conversions
---Offer2 :3 conversions

From my network stats, I know that Offer 2 got zero conversions but for some reason the tracker is showing 3 conversions that where actually from Offer1.

Has anyone else seen this?


07-03-2013 05:16 PM #2 bbrock32 (Administrator)

Hmm this is really weird , are you using the latest version?


07-03-2013 06:12 PM #3 impride (Member)

Yeah, i see the same issue.
Using latest version.


07-03-2013 08:36 PM #4 rafael (Member)

Yes, latest version here too.
I was thinking that maybe the bug is in the way that it's rotating the offers and the income of visitors.

1) visitor1 comes in and offer1 comes up in the rotation.
2)Right away visitor2 comes in and clicks faster than visitor1 on the offer link.
3)Since offer1 was already lined up in the rotation, visitor2 is taken to offer1 but his subid was associated to offer2.

I'm not really sure how offer rotation works but that's one possible explanation I came up with , without looking at the code.


07-04-2013 11:00 AM #5 caurmen (Administrator)

Huh, that is wierd.

What software is your affiliate network using? (Just trying to narrow down all variables)

Also, what sort of click volume are you running, and how powerful a server are you using?

I'll try and duplicate this bug next week and see what's up.


07-04-2013 02:43 PM #6 rafael (Member)

This is happening with Cake and the software Adsimilis uses.
I'm not really running that much traffic, around 2-3k clicks per day on a 768Mb RAM VPS on Beyondhosting.


07-04-2013 05:37 PM #7 The Angry Russian (Moderator)

Adsimillis is Has Offers


07-04-2013 06:12 PM #8 bbrock32 (Administrator)

Hmm will ask coder to check if there is anything wrong with the rotation code.


07-12-2013 08:45 AM #9 bbrock32 (Administrator)

Ok , finally found out the issue.

Some clicks on certain browsers that were sending requests twice were being cached.

The solution is very simple.


Only one change is required. Put the following 3 lines of code at the very beginning of tracking202/redirect/tracker.php:

Before the top looked like :

[PHP]
<?

include_once($_SERVER['DOCUMENT_ROOT'] . '/202-config.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php');

[/PHP]

now it should look like :

[PHP]
<?
header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
header('Expires: Sun, 03 Feb 2013 02:29:00 GMT'); // Date in the past
header("Pragma: no-cache");

include_once($_SERVER['DOCUMENT_ROOT'] . '/202-config.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php');

[/PHP]

Let me know if that solves it for you.


07-30-2013 03:49 AM #10 rafael (Member)

Hello bbrock, sorry I took so long but I've been testing this for about a couple of weeks now and I'm still seeing the same error unfortunately.
Did you manage to replicate this on your setup?


07-30-2013 11:32 AM #11 caurmen (Administrator)

@rafael - did you try the code change that bbrock suggested?


07-30-2013 03:34 PM #12 rafael (Member)

@caurmen - yes, I modified it a couple of weeks ago and I'm still seeing the error.


07-30-2013 07:26 PM #13 impride (Member)

The same situation here. Modified code a couple weeks ago, but still see the issue.


07-31-2013 12:00 PM #14 caurmen (Administrator)

Gotcha, we're on it.


07-31-2013 03:16 PM #15 rafael (Member)

@caurmen - thanks man! I'm kinda worried now that this issue might affect other parts of tracking like LP conversion tracking or the C# variables tracking :/


07-31-2013 07:36 PM #16 bbrock32 (Administrator)

Found the issue, will post the patch tomorrow when home.


07-31-2013 08:22 PM #17 impride (Member)

Quote Originally Posted by bbrock32 View Post
Found the issue, will post the patch tomorrow when home.
Awesome!!! This bug is really freaking me out lol


08-01-2013 10:39 AM #18 bbrock32 (Administrator)

Here you go , just replace these files and all should be good.

p202_20130726_tracking202_redirect_Lp-PATCHES.zip


Home > Other Systems (CPVLab, iMobiTrax, P202, Track Revenue, Click, Google Analytics, etc.) > The STM Mobile Tracker