AppsFlyer logo
OneLink logo

OneLink Smart Script V2

Referrer Skip List Demo

Input URL

To edit: make changes to the input URL in the address bar and reload the page. Changes you have made to the script below will be lost after reload.


        //Initializing Smart Script arguments
        var oneLinkURL = "https://engmntqa.onelink.me/LtRd/";
        // If a media source key is NOT FOUND on the link and NO default value is found, the script will return a null string 
        var mediaSource = {keys: ["inmedia"], defaultValue: "my_media_default_source"};
        var campaign = {keys: ["incmp"]};
        var referrerSkipList = ["facebook"];

        //Function is embedded on the window object in a global parameter called window.AF_SMART_SCRIPT.
        //Onelink URL is generated
        var result = window.AF_SMART_SCRIPT.generateOneLinkURL({
          oneLinkURL: oneLinkURL,
          afParameters:{
            mediaSource: mediaSource,
            campaign: campaign,
          },
          referrerSkipList: referrerSkipList
        })
      

Output URL

app store link play store link