If you want to set up an advanced landing page (a landing page with more than one offer available on it) with the STM mobile tracker, the process is very similar to setting up a regular landing page.
You should follow the Campaign Setup Guide for the STM Tracker. However, at Step #4 and Step #6, follow these steps instead:
#4 Landing Pages (LPs)
For Step #4, you need to choose "Advanced Landing Page":

Then all you need to do is enter the URL of your landing page and give it a name!
#6 Landing Page Code
In Step 6, choose "Advanced Landing Page".
You'll then get a drop-down menu from which you can choose offers. Click "Add Another Offer To This Page" to add a second offer - and then a third, and so on.
You can select as many offers as you like, but we'll use two for this example:

Then, click "Get Landing Page Code".
You'll be presented with one block of code for each offer you selected:

Take the lines starting "$ClickThruLink" (with the red line beside them in the image above) and combine them as a single block of PHP. In this case, we end up with:
<?php $clickThruLink438 = 'http://track.myserver.info/tracking202/redirect/off.php?acip=438&'.$_SERVER['QUERY_STRING']; $clickThruLink946 = 'http://track.myserver.info/tracking202/redirect/off.php?acip=946&'.$_SERVER['QUERY_STRING']; ?>
<?php $WildBuddies = 'http://track.myserver.info/tracking202/redirect/off.php?acip=438&'.$_SERVER['QUERY_STRING']; $AnotherOffer = 'http://track.myserver.info/tracking202/redirect/off.php?acip=946&'.$_SERVER['QUERY_STRING']; ?>
<a href="<?php echo $WildBuddies ?>">Offer 1</a> <a href="<?php echo $AnotherOffer ?>">Offer 2</a>
Great post as usual Caurmen.
I've seen this question pop up quite often lately.
perfect timing!
I am trying to use this feature without success unfortunately. Although I'm trying a slightly more complex thing, namely tracking a click-to-call. Not actually if the call is placed (because a mobile user still needs to actually push the 'dial' button), but when the "tel" link is clicked on the lander.
One link goes to a webform, the other to a "tel' link, like so:
I start the page as outlined above:
<?php $clickThruLink341 = 'http://tracking.com/tracking202/redirect/off.php?acip=341&'.$_SERVER['QUERY_STRING']; $clickThruLink614 = 'http://tracking.com/tracking202/redirect/off.php?acip=614&'.$_SERVER['QUERY_STRING']; ?> <!DOCTYPE html>
<section> <a href="<?php echo $clickThruLink341 ?>" id="calllink"/>
<button class="bluebutton"> Call Now </button>
</a> </section>
<a href="<?php echo $clickThruLink614 ?>" class="css3button" align="center">WebForm</a>
<html lang="he" dir="rtl">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Call page</title>
</head>
<body>
<a href="tel:03-771-3015" id="calllink" style="display:none">one</a>
<img height="1" width="1" border="0" style="display:none;" src="http://tracking.com/tracking202/static/gpx.php?amount=&cid=2">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
setTimeout(function(){$('a[href="tel:03-771-3015"]').click(function(){location.href='tel:03-771-3015';console.log('clicked');});$('a[href="tel:03-771-3015"]').trigger('click');}, 15);
});
</script>
</body>
</html>
"http://tracking.com/tracking202/static/gpx.php?amount="
"http://tracking.com/tracking202/static/gpx.php?amount=&cid=2"
<?php $clickThruLink341 = 'http://tracking.com/tracking202/redirect/off.php?acip=341&'.$_SERVER['QUERY_STRING']; $clickThruLink614 = 'http://tracking.com/tracking202/redirect/off.php?acip=614&'.$_SERVER['QUERY_STRING']; ?>
On the last bit - were you creating them with the same offers, or different offers?
Hmm, complex one. I'm going to think about this overnight and get back to you in the morning.
I take it you've set tel.php up as an offer in the STM Tracker, rather than another landing page?
<html lang="he" dir="rtl">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Call page</title>
</head>
<body>
<a href="tel:03-771-3015" id="calllink" style="display:none">one</a>
<img height="1" width="1" border="0" style="display:none;" src="http://tracking.com/tracking202/static/gpx.php?amount=&cid=2">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
setTimeout(function(){$('a[href="tel:03-771-3015"]').click(function(){location.href='tel:03-771-3015';console.log('clicked');});$('a[href="tel:03-771-3015"]').trigger('click');}, 15);
});
</script>
</body>
</html>
One more important step that might be influencing this:
I am using macros to direct certain banners to certain pages. It may be that certain info is not getting passed on through the redirect script, called zeno.php:
<?php
$passed_adid = $_GET['passed_adid'];
$landers = array(
"378823" => "864", //corresponding t202id
"378830" => "864",
"380272" => "864",
"380279" => "864",
);
header('Location: http://tracking-domain.com/tracking202/redirect/tracker.php?t202id='.$landers[$passed_adid].'&'.$_SERVER['QUERY_STRING']);
?>
I cleared memcache as described by Caurmen here:
And suddenly, hey presto: I can see my Call conversions!
Unfortunately I don't see which page/banner they came from, just shows "[direct link]". How could I pass that data?
screenshot here
Go to Overview > Group Overview > segregate the data based on t202kw, c1-c8, etc. If I recall correctly you were passing {adId} as c3 as well? Should be plenty of data there for ya ;D
Sadly I get no c1-8 variables, nor t202kw for the call link:
Screenshot
But I DO receive it for the webform submit:
Screenshot
Indicating that my tel.php script is insufficient, and breaking the chain somehow?
Hmm - tel.php happens right at the end of the chain, correct? If so, that shouldn't be breaking the tracking for the c variables.
I'm slightly mystified by this, but shall keep looking into it!