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

How To Set Up An Advanced Landing Page With The STM Mobile Tracker (11)


12-02-2013 05:02 PM #1 caurmen (Administrator)
How To Set Up An Advanced Landing Page With The STM Mobile Tracker

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:

Code:
<?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']; 

?>
It's also worth renaming the $clickThruLink variables to something easier to remember - for example:

Code:
<?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']; 

?>
Paste this PHP block at the top of your advanced landing page.

Now, whenever you add a link that's meant to link to each offer, simply use <?php echo CLICKTHROUGHLINK ?> to get the link URL for that offer, like so:

Code:
<a href="<?php echo $WildBuddies ?>">Offer 1</a>
<a href="<?php echo $AnotherOffer ?>">Offer 2</a>
Make sure to save your advanced landing page as a .php file, upload it to your server, and you can complete the campaign setup in the regular way!

I hope that was useful! If you've got any questions or comments, please do post 'em below!


12-02-2013 07:47 PM #2 bbrock32 (Administrator)

Great post as usual Caurmen.

I've seen this question pop up quite often lately.


12-03-2013 03:50 AM #3 centurion (Member)

perfect timing!


03-25-2014 08:06 AM #4 auditor (Member)

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:

Code:
<?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>
then the body of the page, with the tel link:

Code:
<section> <a href="<?php echo $clickThruLink341 ?>" id="calllink"/>
    <button class="bluebutton"> Call Now </button>
  </a> </section>
and the webform link
Code:
<a href="<?php echo $clickThruLink614 ?>" class="css3button" align="center">WebForm</a>
The tel link points in p202, step #4 to "landingpage_domain.com/tel.php?". Which is this:

Code:
<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=&amp;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>
However all clicks and conversions show up in p202 as being a webform submit. If there was an error, I would expect the error to be not tracking at all. But instead it just assigns all to the same conversion, ie: "Webform submission".

The programmer used jquery 1.11. Perhaps that is causing an issue?

At first I thought the problem was that I should list the "offer"
links under the same Campaign in #3, but changing it made no difference.

The webform's pixel is:
Code:
"http://tracking.com/tracking202/static/gpx.php?amount="
and the tel.php pixel is (as you can see above):
Code:
"http://tracking.com/tracking202/static/gpx.php?amount=&amp;cid=2"
Does anyone see where I am going wrong with this setup?

Note: this is an in-house product, not an affiliate offer, so I am not adding subids to the campaign link in #3.

Note #2:

I tried creating further advanced pages in ste #6, and I get exactly the same code:
Code:
<?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'];
?>
Does that seem right? Or should I be suspicious of some server/php issues?


03-25-2014 06:56 PM #5 caurmen (Administrator)

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?


03-25-2014 08:44 PM #6 auditor (Member)

were you creating them with the same offers, or different offers?
Yes, these were the same "offers", ie: a link to a webform and a link to tel.php. But they were on different landers. Thinking about it, perhaps that is as it should be.

I take it you've set tel.php up as an offer in the STM Tracker, rather than another landing page?
I'm not entirely sure I understand your question, but:
a) tel.php is placed in the same dir as the landing pages, not inside teh p202 install
b) under step #3 I added the tel.php URL as a Campaign, under the same "affiliate network
c) the content of tel.php is:
Code:
<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=&amp;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>


03-25-2014 10:01 PM #7 auditor (Member)

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:

Code:
<?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']);
?>
So to be clear the entire sequence is like this:

1. banner-ad link: http://tracking-domain.com/zeno.php?passed_adid={adId}&c1={networkId}&c2={adI d}&c3={uid}&c4={carrier}&c5={device}&c6={appType}& c7={campaignId}&c8={appId}&t202kw=banners
2. sends to an "Advanced Page" with two offers, as described earlier.


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

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


03-26-2014 11:41 AM #9 zeno (Administrator)

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


03-26-2014 01:16 PM #10 auditor (Member)

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?


03-26-2014 06:58 PM #11 caurmen (Administrator)

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!


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