Guides
Call tracking

Retreaver integration

Connect Retreaver with Skro to associate inbound calls and conversion events with the campaigns that generated them.

Step 1. Setup in Retreaver

  1. Add the following essential elements to your Retreaver account:

Step 2. Set Up Parameter Mapping for Skro Click ID

  1. In Retreaver account, go to Campaign settings → Retreaver JS Settings → Parameter Mappers and click Edit.

parameter mappers

  1. 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.

parameter mappers

Step 3. Install JS tracking scripts

Select your tracking method:

  1. Add your landing page as Offer in Skro.

Add offer in Skro

  1. Select an Affiliate Network as Retreaver.

Add Retreaver as Affiliate Network in Skro

  1. Create a campaign in Skro.

Skro campaign

  1. Copy Skro tracking pixel from Campaigns → Links → Direct and paste it to your landing page between HEAD tags.

retreaver integration step 1

  1. Copy this Retreaver tracking pixel to your landing page after Skro tracking pixel code.

Remember to replace the YOUR_CAMPAIGN_KEY element in the script with the actual Retreaver Campaign Key, which can be taken from your Campaign settings → Retreaver JS Settings → Code → Advanced.

<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>
  1. Copy Skro generated Offer URL with tracking params and submit to the traffic source for approval.

Skro tracking link

Step 4. Set up Webhooks for Retreaver campaign

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 Create.

  2. Complete the required fields and click Save & Close.

Event Purchase

If you are using custom tracking domain then replace skrotrack.com with your custom tracking domain name.

Postback URL: https://skrotrack.com/postback?clickId=[skro_click_id]&payout=[revenue]&transactionId=[call_uuid]&p1=[caller_number]&p2=[caller_zip]&ce=Purchase
  1. In Retreaver account, go to Campaign settings → Webhooks → Add webhook → choose the condition If call converted → select GET request → paste the Postback URL.

Retreaver first postback

  1. Create another custom conversion for Phone Call events.

Event Phone Call

Postback URL: https://skrotrack.com/postback?clickId=[skro_click_id]&transactionId=[call_uuid]&p1=[caller_number]&p2=[caller_zip]&ce=PhoneCall
  1. 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.

Retreaver second postback

The integration is ready.

Verify the setup

Follow a campaign link and complete a test conversion using your provider’s test workflow. Confirm that the original click ID reaches the provider and is returned to Skro, then check the event and revenue in your campaign report.

Troubleshooting

If data is missing, check the selected workspace, integration, campaign, and reporting date range. Compare parameter names and macro values with the examples in this guide before repeating the test.

Need help with this guide? Contact Skro support.

On this page

Need help? Contact support ↗