Retreaver logo

Retreaver and Skro

Who we are

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.

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 on Edit button.

Parametr mappers

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.

Parametr mappers

Step 3. Install JS tracking scripts


Select your tracking method:

1. Add your landing page as Offer in Skro.

Add offer in Skro

2. Select an Affiliate Network as Retreaver.

Add Retreaver as Affiliate Network in Skro

3. Create a campaign in Skro.

Skro campaign

4. Copy Skro tracking pixel from Campaigns -> Links -> Direct and paste it to your landing page between HEAD tags.

retreaver integration step 1

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.

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

2. Fill all the fields and click on Save & Close button.

Event Purchase

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.

Retreaver first postback

4. Create another custom conversion for Phone Call events.

Event Phoen Call

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.

Retreaver second postback

Integration set up is done.

More questions?
Please contact to our Customer Support support@skro.eu