Measuring mobile web campaigns

Posted by Guo Zheng Ang on Nov 6, 2018 8:01:00 AM

Topics: Tips & How to

One of the most commonly asked question I often get from small and medium businesses (SMBs) who just started exploring advertising in the mobile space is

 

“How do I run and measure my campaigns without signing up to multiple services on different platforms?”

 

This is nothing new in the ad tech industry. It has been a show stopper for many of us who previously attempted a mobile advertising campaign. A simple notion of running your ads via a demand-side platform (DSP) soon turns into a complex integration mess. Now, you need to figure out how to send data from your data partner to your DSP. Then, you need to track your campaign performance on an analytics platform and so on. Not to mention, all of the additional platform fees you have to budget for on top of the ad spend.

 

In order to improve the media buying experiences, we introduced a lightweight cookie-based tracking solution for our advertisers who want to track simple performance metrics like page visits and user actions on their mobile webpages. The solution is hosted on PRO, meaning there is no new sign ups or third party integration complexity required. And it is completely free of charge.

 

Measuring-mobile-campaigns-via-HTTP-cookies-on-web-pages

 

The works of the cookie-based tracking solution involves having a series of JavaScript code snippets embedded onto your web pages (where you would like to track page visits). When a click-through happens from your advert to your landing paging, a Pocketmath cookie is created on the browser. As the audience navigate your mobile website and start browsing, the JS code snippet embedded in the pages will detect the cookies and inform Pocketmath of the page visits.

 

Get Started

The cookie-based tracking solution can be set up in 3 simple steps. To get started, complete the following steps:

 

  1. Append our Pocketmath impression macro (imp_id=${imp_id}) to the end of your landing page URL so that we can attribute every click-through to a specific impression served via Pocketmath PRO.Example URL: http://yourlandingpage.com?imp_id=${imp_id}

  2. Add the following JavaScript snippet into the HTML of the landing page:
<script type='text/javascript'>

function loadScript(url, callback){

var script = document.createElement("script");

script.type = "text/javascript";

if (script.readyState){ //IE

script.onreadystatechange = function(){

if (script.readyState == "loaded" || script.readyState == "complete"){ script.onreadystatechange = null; callback(); }

};

} else { //Others

script.onload = function(){ callback(); };

}

script.src = url;

document.getElementsByTagName("head")[0].appendChild(script);

}

loadScript("https://pasito.pocketmath.com/js/pmct.js", function(){});

</script> 

 

This JS code snippet is responsible for creating the Pocketmath Cookie on the audience browser when they click-through an Ad into our landing page.

 

3. Add the following JavaScript snippet into the HTML of the conversion page:

 

<script type='text/javascript'>

function loadScript(url, callback){

var script = document.createElement("script")

script.type = "text/javascript";

if (script.readyState){ //IE

script.onreadystatechange = function(){

if (script.readyState == "loaded" || script.readyState == "complete"){ script.onreadystatechange = null; callback(); }

};

} else { //Others

script.onload = function(){ callback(); };

}

script.src = url;

document.getElementsByTagName("head")[0].appendChild(script);

}

loadScript("https://pasito.pocketmath.com/js/pmct_conversion.js", function(){__PMCT_CE_CONVERSION.init("&ce=123&awin=ct30")});

</script>

 

This JS code snippet is responsible for informing Pocketmath PRO when a conversion has happened. Advertiser can be creative on how they want to track their conversions. The code can be placed within a button so as to track a conversion only when our audience interacts and clicks on the button.

 

Also remember to update the values for &ce=123&awin=ct30 to the correct ce and awin value for your events. The ce and awin values can be found in your event tracking URL.

 

With the simple steps you will be able to start tracking simple performance metrics like page visits and user actions on your mobile webpages.

 

Explore how Pocketmath PRO can help you measure the effectiveness of your campaigns.

 

 

 


More stories to read.. 

Retargeting 101: The Basics and Beyond (Part 1)

Retargeting 101: The Basics and Beyond (Part 2)

Access PRO Knowledge Base: Programmatic made more approachable

 

Subscribe to Email Updates

Popular Posts

Recent Posts