Home > Technical & Creative Skills > Tracking Campaigns

First campaign with LP -Some minor tracking issue (10)


07-11-2013 10:30 AM #1 soulest (Member)
First campaign with LP -Some minor tracking issue

Hi guys

Can someone guide me on the tracking for landing page using mobaff tracker?

1) I have a landingpage.php file.
2) I added offer and landing page in the tracker. Code was being generated. I have posted the code to landingpage.php.


I noticed that the outbound link (for the button) doesnt work at all and thus I did a quick reference to : https://tracker.mobaff.com/docs/landingpages

and i saw this
"Note: Outbound offer links from your landing page won't work when visiting the page directly. Traffic must come to the page via one of your campaigns (and include a click_id to function correctly."


Just to ensure i got the right concept for the landing page tracking flow:

I require 2 things: 1) tracking info from banner 2) tracking info from LP

Once i have uploaded the banner to ads platform, what is the url for me to paste on the ads platform? Will it be www.mydomain.com/landingpage.php (say this is my default url)?
or will it be something like www.mydomain.com/landingpage.php?click_id=[click_id] (this was shown in the tracker, the tracker added click_id=[click_id] automatically)" or perhaps something else?

Subsequently, assuming i am on the landing page now, i need to ensure that the url for the button is linked to the OFFER page. But given that the php code was generated, the outbound link will be my link to the offer page right?

Yet, when i click into the link, this happened

http://go.mobaff.com/404/#/error/missing_click_id
"Oops! (Error 404)
We couldn't find that."

*I have posted the php code at the top of my landing page, even in front of the <!DOCTYPE html>.

Not sure if i miss any important steps, still in learning process, hope tat you can help =)

Thx


07-11-2013 10:47 AM #2 adrian (Member)

I noticed the same thing when I was starting out with mobile and mobaff tracker. Everything should be fine and the error only shows when you visit the page directly as there is no clickid assigned. If you use the link you use on your traffic source it should all work.

From what I see you can't use the same lander for traffic that doesn't come from a mobaff link.


07-11-2013 11:53 AM #3 zeno (Administrator)

Ok so lets outline a correct sequence of events from traffic source to offer:

1. You go to a campaign page and click the traffic channel URLs button


2. From here you get the link for your campaign for a specific traffic source. It will look something like this:

Code:
http://go.mobaff.com/blah-blah-blah-blah?unique_id=something&creative=this&c1=that
When you load this link MobAffTracker assigns you a unique click ID and then rotates you between links that are on your campaigns page. They may be landing pages, may be direct links. It also picks up all subids in the URL before heading to the landing page. Once at the landing page the only thing that now matters is the unique click ID and this is what mobaff passes to the outgoing link. If you want to use other subids on your page for whatever reason (e.g. passing state, age, gender from PoF) then you DO want to add these to your landing page URL (see next).

3. Lets say you are using a landing page. Go to the offers tab > landing pages. If creating a new page just give it a name and give the normal URL, no querystrings after it. The click_id string will automatically get added. If you however want to pass some subids to use in your lander, add these here. E.g. age=[c1]&gender=[c2]&state=[c3]. The way to structure these depends on how you pass them in your original MobAff URL that your adverts are using.

4. Now, click the get PHP code link for your lander. Copy and paste the entire thing to the very top of your landingpage.php file, make sure there are no spaces before it. Take the href="<?php echo $offer_link1 ?>" part and replace your outgoing CTA with that.

5. Clean up the top PHP code a bit, i.e. remove the <a title... part so you just have everything between <!-- [START SYSTEM CODE] --> and <!-- [END SYSTEM CODE] -->

6. Save, upload and all that jazz. Load the page. Click your outgoing link. It shouldn't work. Why? You need a unique click ID to be passed to the page, this gets tacked on to the end of $offer_link1 and thus the MobAffTracker system knows what to do with that click. Without it, no go. So, if you want to test your lander, use the link from part 2.

If you want to make your lander immune to death by lack of click ID you could add some PHP code to check if there is a click ID, and if not, replace your offer link URL. Something like this would suffice:

[PHP]
<?php
// Fetch any params (such as subid, c1-c5 etc.)
$url_params = http_build_query($_GET);
$url_params = $url_params ? "?" . $url_params : $url_params;
// Link for: Campaign
$offer_link1 = "http://go.mobaff.com/lp/blah-blah-1234-5678-218vuy834" . $url_params;

if (empty($_GET['click_id']))
{
$offer_link1 = "http://backup-affiliate-link.com";
}

?>
[/PHP]


07-11-2013 12:02 PM #4 adrian (Member)

Thanks for adding the code to be immune to the lack of clickid.

I think mobaff should add this to their code by default as it will only help.


07-11-2013 12:15 PM #5 zeno (Administrator)

That's probably a good idea actually, a lot of people might send other traffic not via MobAff to the same lander by mistake. Organic traffic would fall over as well. We all know what tracking is like, little things cause nightmares.


07-11-2013 12:29 PM #6 soulest (Member)

Thanks Zeno for being so helpful all this while =)

Just one last noob question for this thread, the LP's url that to be provided to the ads platform for the banner, do i use "www.mydomain.com/landingpage.php" or "www.mydomain.com/landingpage.php?click_id=[click_id]" . Or it doesn't really matter ?


07-11-2013 12:36 PM #7 zeno (Administrator)

For the ads platform/traffic source you use the MobAff link that you get from the campaign page (from clicking the circled icon in the picture, in my post). It will redirect to the landing page(s) you have listed inside that campaign.


07-11-2013 07:23 PM #8 soulest (Member)

Thanks alot. It works very well!

Attempted to do split testing on banners. I've created 3 banners, but all directed to same URL (ended up cannot trace which banners contribute to the conversion at the end). Instead of creating 3 identical LP, where do you all usually tweak in order to trace the banner that convert better?


07-11-2013 11:15 PM #9 zeno (Administrator)

You should be adding identifier information to the MobAff link used at the traffic source, this is the crux of tracking in general. Your tracking source may have tokens/macros that allow dynamic insertion, use them too.

So, for example:

Code:
http://go.mobaff.com/blah-blah-blah-blah?unique_id=something&creative=BANNER1&c1=ANGLE1&C2=SOMETHING&C3={dynamictoken}&C4={anothertoken}


07-12-2013 09:55 AM #10 caurmen (Administrator)

BIG thanks to Zeno for helping out on this thread - awesome stuff.

Given how many people are starting to use MobAff, I'm going to look into doing tutorials for it soon. Would that be helpful?


Home > Technical & Creative Skills > Tracking Campaigns