I want to implement smart script on my Wix website but the Velo console constrains how we can manipulate the DOM and doesn’t allow to use window
. So when I try to follow Appsflyer instructions (which are super simple):
var result = window.AF_SMART_SCRIPT.generateOneLinkURL({
oneLinkURL: oneLinkURL,
webReferrer: webReferrer,
afParameters: {
mediaSource: mediaSource,
campaign: campaign,
afCustom: [
custom_ss_ui
]
}
});
I have Cannot find name 'window'.
I’ve tried lots of things to make it work, but I can’t manage to find a way to use Appsflyer’s Smart Script for my Wix website which makes it impossible for me to track my Web-to-App conversions.
Has anyone found a way around this?