当用户在iOS Swift 3中下载应用程序时,从itunes应用程序链接获取参数值。

时间:2018-07-22 09:13:57

标签: swift google-analytics google-analytics-campaign-builder

例如(https://itunes.apple.com/fr/app/myApp/id553834731?mt=8&pid=1234&cid=My_Campaign

如何从链接获取广告系列数据。在iOS Swift 3中使用Google Analytics(分析)。我成功创建了跟踪网址

 addSubmitted.addEventListener('click', e => {
 const newAds = _db.ref(userID).push();
 const newAd = {
 };

const ref = firebase.storage().ref();
const file = $('#exampleInputFile').get(0).files[0];
const name = (+new Date() + '-' + file.name);
const task = ref.child(name).put(file, {contentType: file.type});

function abc() {
    task.snapshot.ref.getDownloadURL().then((downloadURL) => {
        console.log('File available at', downloadURL);
        console.log(downloadURL);
        newAds.update({ picLink: downloadURL });
    });

    task.catch(error => {
        // Use to signal error if something goes wrong.
        console.log(`Failed to upload file and get link - ${error}`);
    });
}

setTimeout(abc,8000);

0 个答案:

没有答案