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

SiteScout & STM tracker mobile (32)


03-09-2014 12:49 PM #1 auditor (Member)
SiteScout & STM tracker mobile

I'm setting up a mobile campaign in Sitescout, and would appreciate any help on using STM tracker.

I want to create a unique destination for each banner that I uploaded (10), as per the SiteScout docs on macros I should have a redirect script on the server to handle this, which is in progress.

How do I track the following setup with STM tracker?

I don't intend to use the STM page rotator, but rather let SiteScout banner-optimiser do the deciding. Each link on the LP's point to go.php, which in turn sends to the sign-up-page.

Questions:
1. Do I just add the same Landing Page PHP code to each lander? I assume that will still allow me to see which banner is working the best? I'm not particularly interested in seeing which Page performs best at this point, as the page is essentially a (slightly) larger version of the initial banner the visitors sees.

2. How exactly do I alter this code, as each lander points to go.php already (which in turn sends to the sign-up-page.)?

Screenshot here

3. If I use a script to redirect based on the SiteScout Macro, from eg: "adId 999" to hxxp://domain.com/landerA.php, will I still get the Carrier, OS, Device, AppId, etc? Or have I broken the "chain" somewhere?

Note: This is not an affiliate offer, so there is no aff platform. It's an in-house product so I have complete control over the conversion page.

4. Since this is a mobile campaign, I've provided a click-to-call button on the converting page, as well as name & email submit. To track both types of conversion I've set this up as an Advanced Lander, as this is sort of a "multiple offer page". With this I should be able to track click-throughs, but is there any way to have 'clicks-to-call' show up as a straightforward conversion? (I know it's still possible for the visitor to not actually dial, but it is a step in the right direction)

Thanks for any help,

J


03-10-2014 12:06 AM #2 zeno (Administrator)

This is quite an time-consuming set-up your want to do... Are the landers identical apart from a background image or are they all unique?

If you really want to have separate landers for each banner then you should make a separate lander for each in p202, paste the unique tracking code for each on the pages, then generate links for each banner individually. You could use scripts to do things dynamically but it's more effort than it's worth if all you want is for banner A -> lander A, banner B -> lander B etc.

You want the user to go through the tracking links to pick up the carrier etc.

You should be able to track the clicks to offer A vs offer B on the analyze > landing page tab of p202, presumably it should be easy to distinguish between clicks to each offer. However I assume your issues with the click-to-call are that it pops up a call function rather than sending the user somewhere = they don't get tracked via a tracking link? You could probably do something with javascript to post to the tracking 202 URL without interfering with the users call but I can't say I know how to do this off the top of my head.


03-10-2014 10:59 AM #3 auditor (Member)

Thanks for your insights Zeno.
Yes, each page is identical apart from the image shown.

I'm not following the part about "generating links for each banner individually". Is this in p202?

For the phone tracking, I'm trying the 'Advanced landing page' feature, giving each page two "offers" One offer is the email submit, the other is click-to-call.
As there is neither a way to fire a pixel on a click-to-call (without getting into more js) or really determine if they actually pressed the dial button, I will settle for clicks on the call button. It's not 100% accurate, but it still gives some indication.


03-11-2014 08:34 AM #4 auditor (Member)

For whoever might have a similar scenario, below is the script we use to handle SitScout's multiple banners:

Code:
<?php    $url="";  
    $array = array(
        "377899"=> "http://www.yourdomain/landerA.php",
        "377830"=> "http://www.yourdomain/landerA.php",
        "377272"=> "http://www.yourdomain/landerB.php",
        "377899"=> "http://www.yourdomain/landerB.php",
    );
    if(isset($_GET['adid'])){
        if (array_key_exists($_GET['adid'], $array)) {
            $url=$array[$_GET['adid']]."?".$_SERVER['QUERY_STRING'];
        }else{
            if($_SERVER['QUERY_STRING']){
                $url="http://www.yourdomain/default.php/"."?".$_SERVER['QUERY_STRING'];
            }else{
                $url="http://www.yourdomain/default.php/";
            }
        }    
    }else{
        $url="http://www.yourdomain/default.php";    
    }
    header( 'Location:'.$url );
    die();
?>


03-13-2014 09:46 AM #5 auditor (Member)

I can't for the life of me figure out how to format the URL for p202/STM tracker so that it combines the sitescout macro and pulls all the mobile tracking data that I need to optimise.

This is what I got back from SiteScout support:

Hi Jen,

You're super close with your URL! Our example link may have been taken a bit too literally though

Rather than:
Code:
http://www.concept-academy.co.il/lnd/mob/cascript.php/?site={siteId}&adid={adId}&campaignId={campaignId}&carrier={carrier}&network={networkId}&uid={uid}&device={device}&appId={appId}&appType={appType}
Your link should probably be more along the lines of this:
Code:
http://www.concept-academy.co.il/lnd/mob/cascript.php/?c1={siteId}&c2={adId}&c3={campaignId}&c4={carrier}&c5={networkId}&c6={uid}&c7={device}&c8={appId}&c9={appType}
However, we're not certain what tracking202 uses for tracking macros. You may want to reach out to them directly to make sure that c1, c2, c3, etc is correct.

Best regards,

- SiteScout Support

The Support didn't add the square brackets, so I came up with:

Code:
http://www.concept-academy.co.il/lnd/mob/cascript.php/?[[c1]]={adId}&[[c2]]={campaignId}&[[c3]]={carrier}&[[c4]]={networkId}&[[c5]]={uid}&[[c6]]={device}&[[c7]]={appId}&[[c8]]={appType}
And that is what I added into step #3Campaigns inside STM/202.

Click image for larger version. 

Name:	screenshot015.jpg 
Views:	38 
Size:	83.5 KB 
ID:	2037

But when I create and test a sample URL, using one of the actual ID's of a banner ad, the SiteScout redirect script no longer works,
Code:
http://www.concept-academy.co.il/lnd/mob/cascript.php?site=1111&adId=378829&campaignid=7777
The problem being that it doesn't show the correct lander, rather only I only get to see the default page index.php. It should send to
Code:
http://www.concept-academy.co.il/lnd/mob/stylist-cig.php
In addition I see no stats inside STM at all, whatever URL I use. I'm sure it's pretty simple and that it's staring me in the face. I've just gone blind.


03-13-2014 09:52 AM #6 auditor (Member)

Regarding the conversion tracking: should I use pixel or postback URL? This is a mobile campaign, but the offer is not on an affiliate platform. It's an in-house lander, "own product". So will postback work? Doesn't that require special setup on the server?


03-13-2014 10:57 AM #7 zeno (Administrator)

You advert URL at SiteScout that is directing toward p202 should look something like this:

Code:
http://www.tracking202domain.com/tracking202/redirect/tracker.php?c1={siteId}&c2={adId}&c3={campaignId}&c4={carrier}&c5={networkId}&c6={uid}&c7={device}&c8={appId}&c9={appType}
That inserts SiteScouts macros and so the p202 link ends up being ?c1=12345&c2=something&c3=somethingelse... you get the picture.

P202 receives all these c1, c2, c3, etc. values and stores them. What we then want to do is pass them on to our affiliate URL. You do something similar to what you did for SiteScouts macros, but this time using p202's which are of the form [[c1]], [[c2]], etc. So, your affiliate URL in the campaign setup will look like this:
Code:
http://www.concept-academy.co.il/lnd/mob/cascript.php?c1=[[c1]]&c2=[[c2]]&c3=[[c3]]&subid=[[subid]]
This of course assumes that cascript.php is designed to receive these values and actually do something with them.

As for the pixel, you can use the image pixel by just placing it on the thank you or conversion page. Doing a postback is also reasonably easy provided you pass the subid value (the number passed by [[subid]]) all the way. I can show you how to do the postback if that's the way you want to go, but you need to first get comfortable with the general tracking and passing of querystrings.

Hope this helps!


03-13-2014 11:07 AM #8 auditor (Member)

Wonderful help Zeno!

Quote Originally Posted by zeno View Post
You advert URL at SiteScout that is directing toward p202 should look something like this:
Code:
http://www.tracking202domain.com/tracking202/redirect/tracker.php?c1={siteId}&c2={adId}&c3={campaignId}&c4={carrier}&c5={networkId}&c6={uid}&c7={device}&c8={appId}&c9={appType}
That inserts SiteScouts macros and so the p202 link ends up being ?c1=12345&c2=something&c3=somethingelse... you get the picture.
Can it go up to c9?


03-13-2014 11:17 AM #9 zeno (Administrator)

The STM-modded p202 supports c1 up to c8, with the addition of the keyword as well - t202kw, though I don't think you can pass this on in the campaign (affiliate) link.

So, do c1 up to c8 with SiteScout macros and use t202kw for one of them, giving 9 in total. Remember you can always pass macros together under one c-value to save space, e.g. ...c6={appType}_{appID}&c7=....


03-13-2014 11:59 AM #10 auditor (Member)

I noticed that the script therefore needs to change. Intsead of listening out for "adid", it needs to listen for "c2", like this:

Code:
<?php
	$url="";  
	$array = array(
		"377777"=> "http://www.example.com/landerA.php",
		"377778"=> "http://www.example.com/landerA.php",
	);
	if(isset($_GET['c2'])){
		if (array_key_exists($_GET['c2'], $array)) {
			$url=$array[$_GET['c2']]."?".$_SERVER['QUERY_STRING'];
		}else{
			if($_SERVER['QUERY_STRING']){
				$url="http://www.domain.com/landerA"."?".$_SERVER['QUERY_STRING'];
			}else{
				$url="http://www.domain.com/landerA";
			}
		}	
	}else{
		$url="http://www.domain.com/default-index.php";	
	}
	header( 'Location:'.$url );
	die();
?>

My SiteScout URL is:
Code:
http://www.concept-academy.co.il/lnd/mob/cascript.php/?c1={appType}&c2={adId}&c3={campaignId}&c4={carrier}&c5={networkId}&c6={uid}&c7={device}&c8={appId}
Which hopefully will give me something like this:
http://www.concept-academy.co.il/lnd/mob/cascript.php/?c1={Android}&c2={adNo99999}&c3={campaignXYZ}&c4={ Orange-carrier}&c5=...etc

Then the script above should direct to specific pages.


03-13-2014 07:43 PM #11 zeno (Administrator)

Great! Hope it works flawlessly. FYI the macros lose their curly brackets {} when they are replaced by real values, i.e. cascript.php/?c1=android&c2=adNo99999...

Btw, are you meant to have a / after php? It doesn't seem to break the link functionality but is unorthodox, i.e. one would normally use cascript.php?c1= rather than cascript.php/?c1=


03-13-2014 08:44 PM #12 auditor (Member)

I'm getting the most bizarre and peculiar errors:

At first I was getting an error while testing the tracker:

I used this link to test if I can see anything happening:

Code:
http://www.concept-academy.co.il/lnd/mob/cascript.php?site=1111&adId=378829&campaignid=7777
I arrived at the correct page:
Code:
http://www.concept-academy.co.il/lnd/mob/stylist-hairbob.php
I had earlier added the following php tracking code (from #6 LP Code):

Code:
<?php  global $clickThruLink; $clickThruLink = 'http://trk.conce.pt/tracking202/redirect/lp.php?lpip=6236&'.$_SERVER['QUERY_STRING']; ?>
but when I clicked through I arrived in a dis-related page:
http://www.concept-academy.co.il/lnd/maplander/?c1={siteId}&c2={adId}&c3={campaignId}&c4={carrier }&c5={networkId}&c6={uid}&c7={device}&c8={appId}&c 9={appType}

Now this page WAS at one point the campaign page in p202, but that has been corrected, and was only used for testing. I erased this two days ago, yet here it is again popping up.
And it is NOT the page listed under Campaign:
Click image for larger version. 

Name:	screenshot042.jpg 
Views:	40 
Size:	14.5 KB 
ID:	2041

I attempted to clear all data, and start fresh using the "Delete All Click Data " feature under Administration.

Doing that gave me this error:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/trk.conce.pt/htdocs/202-config/template.php:134) in /var/www/trk.conce.pt/htdocs/202-account/administration.php on line 34

​Then an even more peculiar error ocurred:

I wanted to double-check the php code that is on the lander, as something is interfering with the redirection. Lo and behold all the "Simple Landing pages" I had entered into #4 have disappeared. Recreating the LP code gives me a different php code to add to the Lander.

So the "erase " button partially works, or something else is interfering with the db. huh?

This is a brand new install of the tracker, as such it has no data, so if you want me to pm the login details, that would be no problem at all.

Is the tracker to be known for being slow to update these changes? This install is on a VPS, 4GB Ram, 2cpu. NewRelic monitoring is also available.


03-13-2014 09:03 PM #13 zeno (Administrator)

Erasing click data shouldn't wipe landers - not sure what happened here! The error is slightly concerning, can't say I know what caused it, possible permissions issues or PHP lacking some module. Do any other errors ever pop up on the platform?

In any case, if the $clickThruLink takes you to the wrong outgoing URL it would be wise to regenerate the LP code and replace it in the lander, then test again.


03-13-2014 09:13 PM #14 auditor (Member)

Yes, I'll regenerate the landers in p202 and re-test. I've just installed it so I've never noticed/encountered any other errors.


03-17-2014 04:38 PM #15 auditor (Member)

Quote Originally Posted by zeno View Post
You advert URL at SiteScout that is directing toward p202 should look something like this:
Code:
http://www.tracking202domain.com/tracking202/redirect/tracker.php?c1={siteId}&c2={adId}&c3={campaignId}&c4={carrier}&c5={networkId}&c6={uid}&c7={device}&c8={appId}&c9={appType}
That inserts SiteScouts macros and so the p202 link ends up being ?c1=12345&c2=something&c3=somethingelse... you get the picture.
Yes, this bit I get. But
P202 receives all these c1, c2, c3, etc. values and stores them. What we then want to do is pass them on to our affiliate URL. You do something similar to what you did for SiteScouts macros, but this time using p202's which are of the form [[c1]], [[c2]], etc. So, your affiliate URL in the campaign setup will look like this:
Code:
http://www.concept-academy.co.il/lnd/mob/cascript.php?c1=[[c1]]&c2=[[c2]]&c3=[[c3]]&subid=[[subid]]
This of course assumes that cascript.php is designed to receive these values and actually do something with them.
What is the [[subid]] for here? Does it matter if I am not running an actual Aff campaign, but rather my own lander. My URL will be:
Code:
http://www.concept-academy.co.il/lnd/mob/cascript.php/?c1=[[c1]]&c2=[[c2]]&c3=[[c3]]&c4=[[c4]]&c5=[[c5]]&c6=[[c6]]&c7=[[c7]]&c8=[[c8]]
If I just use the pixel, then can I drop the subid?
As for the pixel, you can use the image pixel by just placing it on the thank you or conversion page. Doing a postback is also reasonably easy provided you pass the subid value (the number passed by [[subid]]) all the way. I can show you how to do the postback if that's the way you want to go, but you need to first get comfortable with the general tracking and passing of querystrings.

Hope this helps!


03-17-2014 10:03 PM #16 zeno (Administrator)

Hey, every click that comes into p202 gets allocated a 'subid', which is just a number, e.g. 126. We can pass this forward by using [[subid]]. This value is necessary for the postback URL but is not needed if you are using an image pixel.

So, if you are using the image pixel, yes you can drop the [[subid]] :-)

In fact, if it is your own offer, you don't necessarily need to pass any values (e.g. c1, c2, c3) if you are going to do all the tracking and data crunching in p202.


03-18-2014 01:06 PM #17 auditor (Member)

I'm about to throw out p202, as I'm getting constant problems.

This is the issue right now:

I couldn't get any stats to show up even when clicking my own tracking link. It turns out I was using the wrong link:

Code:
http://www.concept-academy.co.il/lnd/mob/cascript.php/?c1=android&c2=378832&c3=stylist_m&c4=Orange&c5=OpenX&c6=uid1&c7=iphone5s&c8=88888
I was using the above sample link, but this bypassed p202 and so I got no data. DUH!

Then I used the "#7 Get Links" tab, and created a link for one specific LP:

Code:
http://trk.conce.pt/tracking202/redirect/tracker.php?t202id=133&c1={networkId}&c1=378832&c3={uid}&c4={carrier}&c5={device}&c6={appType}&c7={campaignId}&c8={appId}&t202kw=
That works, unfortunately that defeats the purpose of having 10 LP's.
The bit
Code:
?t202id=133
sends the traffic to the LP that I have to select in the drop-down in #7. Even though the redirect script is supposed to send
Code:
c2=378832
to a different LP.

As SiteScout only permits one URL. And that URL points to a SPECIFIC LP. I want to keep using one URL, so as to keep it all in one SiteScout Campaign, thereby consolidating my budget.

The redirect script I was using sits in the LP folder, and not inside p202, which is what I am guessing is where it should sit. But then I would be tampering with p202's own redirect script. And I don't see how they would work together.

Is p202 the right tool for this? Perhaps I'm having so much trouble because it's just not meant to do this. Or have I completely missed the mark here?

Is my basic premise wrong? Should I set it up differently? Do I need a different tool?

Or is there a fix that I am missing?

Surely I am not the first person that wants to split-test landing page/banner combinations using p202! I know the "Rotate LP's" feature is an option, but I have sets of banners that correspond to their respective LP's.If need be I will run it without, but it seems a pitty to be so well prepared, and to drop it all because p202 is being so awkward.


03-18-2014 09:07 PM #18 zeno (Administrator)

This should be relatively easy to sort out regardless of the tracking system but perhaps we should take a step back and outline exactly what it is that you want.

If I understand correctly, you want to use a single URL for your campaign in SiteScout that has multiple banners in it. Each banner has it's own identifying AdID that is dynamically added to the URL. You want clicks from each banner to land on a specific landing page, therefore cannot use the p202 landing page rotation tool as this will rotate all traffic between all LPs.

This is how I would do it:

1. Add a campaign to p202, add the offer/outgoing click link as you normally would.
2. Add each landing page to p202, within this campaign, name them appropriately.
3. Generate and place the unique landing page codes for each lander.
4. Go to get links and generate the tracking links for each landing page in that campaign. Copy/paste these somewhere with labels. What we really need to know is what the t202id is for lander A, lander B, etc.

Now we have links that head to each individual lander within a specific campaign. We can now direct SiteScout ads to an intermediate script, located anywhere (preferably on same domain as your tracking system), which looks at the banner AdId and chooses a lander (i.e. t202id!) accordingly, and passes along all other querystrings. I would use something like this, based on the SiteScout URL you have provided.

Code:
<?php
$passed_adid = $_GET['passed_adid'];
$landers = array(
    "AdID1" => "t202id", //corresponding t202id for that banner's lander
    "AdID2" => "t202id",
    "AdID3" => "t202id",
    "AdID4" => "t202id",
);

header('Location: http://trk.conce.pt/tracking202/redirect/tracker.php?t202id='.$landers[$passed_adid].'&'.$_SERVER['QUERY_STRING']);
?>

Note: I edited that slightly after posting to simplify it.


The $landers array is where we match up advert id's to t202ids. So, find your banner IDs and fill them in for each AdIDx and then put the corresponding t202id for that lander in, as taken from the links we generated in step 4.

Now, when we send traffic to this script it pulls all the data, and trys to redirect to your tracking202 URL but for the t202id it uses "$landers[$passed_adid]" as the t202id number - this of course comes from the array. Thus, we need to pass the adid number under passed_adid, or the script won't send traffic anywhere. I have used passed_adid here just to make things unambiguous.

So, the SiteScout URL would then look like this:

Code:
http://trk.conce.pt/myawesomescript.php?passed_adid={adId}&c1={networkId}&c2={siteId}&c3={uid}&c4={carrier}&c5={device}&c6={appType}&c7={campaignId}&c8={appId}&t202kw=whatever
The adID get's passed by the SiteScout macro, the script uses this to fill in t202id from the array, and all other values get passed along as is - which also means we MUST uses c1-c8 and t202kw. If we used s1-s8, keyword etc. then p202 wouldn't pick up these.

You should be able to test this script yourself by filling in your own passed_adid values to ensure it goes to the landers you want.

Hopefully this helps!


03-18-2014 09:43 PM #19 auditor (Member)

Zeno, that's genius. I'll implement it first thing in the morning.
I owe you beer. A large quantity of it.


03-18-2014 10:09 PM #20 auditor (Member)

1. When you say "intermediate script", are you referring to the p202's own redirect script, or the one I wrote to begin with?
2. What are s1-s8? Where would I get those, even if I'm not going to be using them? I don't recall reading anything about those in the setup steps by caurmen.


03-18-2014 11:55 PM #21 zeno (Administrator)

1. Intermediate script = the one in my post, i.e. the first code box.
2. c1-c8? They are c-variables. Prosper202 expects values to be passed by these and nothing else. If we add c1=something&c2=somethingelse to a prosper202 link it automatically picks them up and they appear in your stats.


03-19-2014 08:16 PM #22 auditor (Member)

Thanks again Zeno, this idea and script will do the trick. I'm finalising the setup and hopefully we should go live soon.

Question 1. Does the p202 generate new t202id's each time you click "Generate Tracking Link", under #7?

I was double-checking the id's I had added and they are different than what I got the first time. We've been having issues with this VPS, mostly because of something called "apparmor" which is supposed to secure the server. But it does a helluva job restricting one's work. It is a live server so reboots have had to be done at 3am each morning.

But, if this is normal for p202, then fine.

Also, half way through generating the id's I noticed they jumped from three digits, to four. Here is what I got:

<?php
$passed_adid = $_GET['passed_adid'];
$landers = array(
"378823" => "864", //corresponding t202id for cig
"378830" => "864",
"380272" => "864",
"380279" => "864",
"378824" => "774", //corresponding t202id for diamond
"378831" => "774",
"380273" => "774",
"380280" => "774",
"378825" => "983", //corresponding t202id for eye
"378832" => "983",
"380274" => "983",
"380281" => "983",
"378826" => "5104", //corresponding t202id for green
"378833" => "5104",
"380275" => "5104",
"380282" => "5104",
"378827" => "864", //corresponding t202id for hairbob
"378834" => "864",
"380276" => "864",
"380283" => "864",
"378828" => "3112", //corresponding t202id for hat
"378835" => "3112",
"380277" => "3112",
"380284" => "3112",
"378829" => "5124", //corresponding t202id for pilot
"378836" => "5124",
"380278" => "5124",
"380285" => "5124",
"380307" => "9135", //corresponding t202id for f,
"380310" => "9135",
"380308" => "6141", //corresponding t202id for f2,
"380311" => "6141",
"380309" => "7153",//corresponding t202id for m
"380913" => "7153",
);

header('Location: http://trk.conce.pt/tracking202/redirect/tracker.php?t202id='.$landers[$passed_adid].'&'.$_SERVER['QUERY_STRING']);
//header('Location: http://trk.conce.pt/tracking202/redirect/trackere.php?'.$landers[$passed_adid].'&'.$_SERVER['QUERY_STRING']);

?>
As you can see, halfway down the list it turns into four digits. Is this something to worry about?

2. Is there a difference between "s" and "c". I've looked through dozens of threads here on STM, and Googled. I can't find any basic text on what these are for and how they work. All the texts assume you know what they are, even the . Also, does it matter where you place "subid" in the url? Do you have to start teh query string with it, eg domain.com/?[[subid]], or can it appear at the end of all the c1, c2, etc? How is this subid different than c variables? And how do these differ from "s" variables?
I am sorry to lumber you with these obviously basic questions. But after watching endless YouTube vides, and re-reading all the Tuts here on STM, it just seems it is something "everyone knows", but doesn't explain. Even the STM tracker video assumes you know what they are and how they work. It just explains you need to be careful when using "s1".


03-19-2014 09:34 PM #23 zeno (Administrator)

1. I believe p202 generates new t202ids and it's a bit weird that it does - however both the old and the new ones should work.

2. Don't worry about the digits in the t202id - 3 or 4 is fine.

3-100.
The c1, s1, subid1, etc. that you put at the end of URLs all depend on what the page the URL is going to expects. In the case of p202, the tracking system is designed to harvest data from c1-c8, t202kw, t202id. It is not programmed to work with anything else, so nothing else will pass data to the tracking system.

Similarly, affiliate network platforms like Cake and HasOffers expect different things. Cake accepts data in the form of s1-s5, HasOffers I believe uses subid1, subid2, etc. It all depends on the platform. There is no fundamental difference in how these values are passed, it's all just a string of text, but the coding on the backend looks only for specific, defined values.

For p202, everything we do is c1-c8, t202kw.

When we get to the affiliate link, under campaign setup, the link may look different as we have to pass data on in the form that system expects.

Hence why we might have affnetwork.com?affid=1234&cid=5678&subid1=[[c1]]&subid2=[[c2]] and so on.

c1-c8 and t202kw are variables that contain data that we have passed to the tracking system, through our tracking link. On the other hand, the prosper202 subid value is the unique number of the click that came through. I.e. what # visitor is this? Each user is given a number and this lets you identify each conversion specifically. This is the one value that prosper202 generates, not us.

We can dynamically insert it into an affiliate link using [[subid]]. It can go wherever we want, as long as we comply with the affiliate networks or offers URL structure, e.g. we would use:

affnetwork.com?affid=1234&cid=5678&subid1=[[c1]]&subid2=[[c2]]&subid3=[[subid]]

not:

affnetwork.com?affid=1234&cid=5678&subid1=[[c1]]&subid2=[[c2]]&clickid=[[subid]]

as the affiliate network won't register the clickID, we then can't use it in our postback URL. The specific format you need to use is something you would find at the affiliate network end.

So, at the affiliate network you could then setup your postback URL to include the value of subid3, thus completing the tracking circuit. If using an image pixel, which is fired by the user rather than the affiliate networks server, we don't need to pass [[subid]] as it's not necessary due to the magic of cookies.

When it comes to being careful about using s1, what this means is you should NOT pass unique clickIDs such as [[subid]] as s1. Above we have it as the 3rd 'subid', so it's fine.

Note: people say 'subids' to mean things like s1-s5, subid1-subid5, c1-c8, etc., it's a bit of a misnomer as these are actually querystring parameters but the term is historic and easy to use. In this respect, prosper202's usage of [[subid]] for unique clickIDs is confusing!

We avoid passing things in the first subid, whether it be s1, subid1, c1, g1, derp1, etc. because of how many tracking systems are designed. Often, we can get to a 'subid summary' that displays all the click data for your campaigns but grouped by subid1. Cake does this for example under the subaffiliate summary. If you pass unique clickIDs under s1, then this report gets needlessly huge - and this puts computing stress on the platform that is better avoided! The affiliate network platform needs to log and redirect clicks quickly and track conversions - it is not built for crunching all your data, that's what p202 is for.

So, under s1, most people pass something generic and/or aggregate, like FB_US_M_13_Campaign1_ad1, so that data is grouped nicely but not too complex.


03-20-2014 01:59 PM #24 auditor (Member)

That's the most lucid, concise explanation I've ever come across. I suspected it was something along those lines, but without your explanation I could never fully figure it out.
Greatly appreciated.


03-20-2014 09:56 PM #25 zeno (Administrator)

Quote Originally Posted by auditor View Post
That's the most lucid, concise explanation I've ever come across. I suspected it was something along those lines, but without your explanation I could never fully figure it out.
Greatly appreciated.
Glad it helped. Also not I forgot a 'not' in one line up there - should have read:
"When it comes to being careful about using s1, what this means is you should NOT pass unique clickIDs such as [[subid]] as s1. Above we have it as the 3rd 'subid', so it's fine."


03-25-2014 11:04 PM #26 auditor (Member)

I'm having an issue with the redirect function of p202 when using this set-up. Here's what happens:

I set up the URL like this:

Code:
http://trk.conce.pt/zeno.php?passed_adid={adId}&c1={networkId}&c2={adId}&c3={uid}&c4={carrier}&c5={device}&c6={appType}&c7={campaignId}&c8={appId}&t202kw=banners
Replacing the macros with some real data works, like this one:

Then today I set my campaign to live and was charged for 1000 clicks but received ZERO traffic.

After speaking with SiteScout Support they helped me narrow it down to this:

1. use this test link:
Code:
http://rtb.sitescout.com/clicktest?ad=3699341ee2213517/cc396e76417a68c0&key=hjWgKAYG6V0aSGJXI215UMQPmsYSbn%2B2bjen7hwR5%2BoCzf0hhijG38bbrrBtXyoA3deQlmldZ20%3D
2. Clicking the ad sends to the redirect script zeno.php, but then just hangs there on a blank p202 page, namely:

Code:
http://trk.conce.pt/tracking202/redirect/tracker.php?t202id=&passed_adid=380298&c1=5&c2=380298&c3=&c4=&c5=&c6=&c7=106289&c8=&t202kw=banners
Support also pointed out that very few clients use this setup. So I;m left thinking I may be trying to reinvent the wheel. Perhaps I should just simplify and rotate the landers?


03-26-2014 12:25 AM #27 zeno (Administrator)

That final code looks off...

There is an extra '&passed_id=' there that shouldn't be there and it is not giving you the t202id from the array, which suggests something in zeno.php is incorrect.

It should read:
...tracker.php?t202id=1234&c1=...

Rather than

...tracker.php?t202id=&passed_adid=380298&c1=

Since you're not supplying a valid t202id it doesn't go anywhere. Everything up until this point looks to be working fine.

Post the exact content of zeno.php here and I'll troubleshoot it - i.e. test on my end. There could be some simple errors - the main one at the moment looks like it isn't pulling a t202id from the array properly.

P.S. You could always go to simple lander rotation. You will lose the continuity you have been going for (at least for a large % of the clicks) but on the other hand you will then get data that shows whether or not that even works - for all we know it may work less effectively than banner A > lander C.


03-26-2014 06:51 AM #28 auditor (Member)

I went through all the LP codes, just to be sure I am using the correct codes. I am not certain but I may have used a "simple page" when creating the codes in step #7, and I am actually using "Advanced pages", with two "offers" (webform & call link).

As I went through I got all new codes. zeno.php has now been updated to contain the new id's. I tested the same link from SiteScout, but still the same error unfortunately.

zeno.php

Code:
<?php
$passed_adid = $_GET['passed_adid'];
$landers = array(
    "378823" => "5192", //corresponding t202id for cig
    "378830" => "5192",
    "380272" => "5192",
    "380279" => "5192",
    "378824" => "7213", //corresponding t202id for diamond
    "378831" => "7213",
    "380273" => "7213",
    "380280" => "7213",
    "378825" => "9222", //corresponding t202id for eye
    "378832" => "9222",
    "380274" => "9222",
    "380281" => "9222",
    "378826" => "2236", //corresponding t202id for green
    "378833" => "2236",
    "380275" => "2236",
    "380282" => "2236",
    "378827" => "2245", //corresponding t202id for hairbob
    "378834" => "2245",
    "380276" => "2245",
    "380283" => "2245",
    "378828" => "1254", //corresponding t202id for hat
    "378835" => "1254",
    "380277" => "1254",
    "380284" => "1254",
    "378829" => "2263", //corresponding t202id for pilot
    "378836" => "2263",
    "380278" => "2263",
    "380285" => "2263",
    "380307" => "8273", //corresponding t202id for f, http://www.concept-academy.co.il/lnd/mob/stylist_f.php
    "380310" => "8273",
    "380308" => "2283", //corresponding t202id for f2, http://www.concept-academy.co.il/lnd/mob/stylist_f2.php
    "380311" => "2283",
    "380309" => "5294",//corresponding t202id for m , http://www.concept-academy.co.il/lnd/mob/stylist_m.php
    "380913" => "5294",
);

header('Location: http://trk.conce.pt/tracking202/redirect/tracker.php?t202id='.$landers[$passed_adid].'&'.$_SERVER['QUERY_STRING']);
//header('Location: http://trk.conce.pt/tracking202/redirect/trackere.php?'.$landers[$passed_adid].'&'.$_SERVER['QUERY_STRING']);

?>


03-26-2014 08:24 AM #29 zeno (Administrator)

The contents of zeno.php above seem to work fine for me.

The problem is that with the test link the {adId} is not getting replaced by a real number.

zeno.php?passed_adid=378823 works.

zeno.php?passed_adid={adID} does not.

In any case, if {adId} is not replaced with a real number that exists in the array, the link will go nowhere anyway as the p202 destination wont exist.

My conclusion is that the SiteScout link was not correctly replacing {adID} - either with no number or with number that did not exist in the above array.

We could modify the script to fall back to some default t202id if no adid's match in the array, but I think the first issue is figuring out why SiteScouts outgoing clicks weren't bringing the adId's expected.


03-26-2014 08:39 AM #30 auditor (Member)

Another oddity that I found is:

using only an adid works:

Code:
http://trk.conce.pt/zeno.php?passed_adid=380279
adding more macro data doesn't, eg:
Code:
http://trk.conce.pt/zeno.php?passed_adid=380279&c1=OpenX&c2=adId_test&c3=uid_test&c4=carrier_test&c5=device_test&c6=appType_test&c7=campaignId_test&c8=appId_test&t202kw=banner
Huh?

Although these are my created test links. And the problem seems to be getting the script to create a URL like that.


03-26-2014 09:19 AM #31 zeno (Administrator)

Both links evidently work fine for me from my end. There's no reason that adding &c1... and anything thereafter would have an effect on the passed_adid stuff.


03-26-2014 09:37 AM #32 auditor (Member)

Oh dear, my mistake: they both work. (It was a long and late night trying to see what was wrong.)


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