Retreaver helps marketers and agencies gather valuable data from every phone call. Their cloud based software provides real-time, inbound call data by tagging, tracking and routing your callers to the best person, department, or agent.
1. Add the following essential elements to your Retreaver account:
1. In Retreaver account, go to Campaign settings -> Retreaver JS Settings -> Parameter Mappers and click on Edit button.
3. Add new URL parameter name mapping for Skro Click ID: skro_click_id. It is needed to fire Skro postback URL with correct click id.
1. Add your landing page as Offer in Skro.
2. Select an Affiliate Network as Retreaver.
3. Create a campaign in Skro.
4. Copy Skro tracking pixel from Campaigns -> Links -> Direct and paste it to your landing page between HEAD tags.
5. Copy this Retreaver tracking pixel to landing your page after Skro tracking pixel code.
<script type="text/javascript">
(function () {
var scriptElement = document.createElement('script');
scriptElement.type = 'text/javascript';
scriptElement.async = true;
scriptElement.defer = true;
scriptElement.src = document.location.protocol + '//dist.routingapi.com/jsapi/v1/retreaver.min.js';
scriptElement.onload = scriptElement.onreadystatechange = function () {
Retreaver.configure({
host: 'api.routingapi.com',
prefix: document.location.protocol === 'https:' ? 'https' : 'http'
});
var campaign = new Retreaver.Campaign({campaign_key: 'YOUR_CAMPAIGN_ID'});
function getSkroClickIdFromCookies() {
const skroClickId = document.cookie.split(";").map(x => x.trim()).filter(x => x.startsWith("skro-click-id"))[0];
return skroClickId ? skroClickId.split("=")[1] : "";
}
campaign.request_number(function (number) {
var link = '<a href="tel:' + number.get('number') + '">' + number.get('formatted_number') + '</a>';
document.getElementById('phone-number').innerHTML = link;
number.add_tags({
skro_click_id: window.skclid !== undefined ? window.skclid : getSkroClickIdFromCookies()
});
});
};
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(scriptElement);
})();
</script>
6. Copy Skro generated Offer URL with tracking params and submit to the traffic source for approval.
In this example we are going to create two custom conversion events, Phone Call and Purchase.
1. In Skro, go to Settings -> Custom Conversions and click on Create button.
2. Fill all the fields and click on Save & Close button.
If you are using custom tracking domain then replace skrotrack.com with your custom tracking domain name.
3. In Retreaver account, go to Campaign settings -> Webhooks -> Add webhook -> choose the condition If call converted -> select GET request -> paste the Postback URL.
4. Create another custom conversion for Phone Call events.
5. In Retreaver account, go to Campaign settings -> Webhooks -> Add webhook -> choose the condition When a call comes in -> select GET request -> paste the Postback URL.
Integration set up is done.
More questions?
Please contact to our Customer Support support@skro.eu