Code ran by Google Tag manager
//Initializing Smart Script arguments
var oneLinkURL = "https://engmntqa.onelink.me/LtRd/";
var mediaSource = {keys: ["my_source"], defaultValue: "noMediaSource"};
var deepLinkValue = {keys: ["app_dest"], defaultValue: "default_view"};
// Setting an attribution parameter
var afSub4 = {keys: ["msg_id"], defaultValue: "no_msg_id"};
// Setting OneLink custom parameter
var deepLinkSub1 = {paramKey: "deep_link_sub1", keys: ["typeid"], defaultValue: "1a1a"};
//Function is embedded on the window object in a global parameter called window.AF_SMART_SCRIPT.
//Onelink URL is generated
AF_SMART_SCRIPT_RESULT = window.AF_SMART_SCRIPT.generateOneLinkURL({
oneLinkURL: oneLinkURL,
afParameters:{
mediaSource: mediaSource,
deepLinkValue: deepLinkValue,
afSub4: afSub4,
afCustom: [
deepLinkSub1
]
}
})