Google Apps Script で
結果を
何故 URL の デコードを したかったのか ?
Google Data Studio で
これで、
データの
Google Apps Script の デコード関数に ついて
Google Apps Scirpt 特有の
JavaScript のdecodeURI()
を
* decodeURI() - JavaScript | MDN * decodeURIComponent() - JavaScript | MDN
decodeURIComponent
、decodeURI
の
作成した スクリプト
以下、
// 列、page を取得 var pages = convertedReport.getRange(2, 3, convertedReport.getLastRow() - 1).getValues(); var convertPages = new Array(); for (var i = 0; i < pages.length; i++) { // デコードして、ドメイン文字列を削除した結果を配列に設定 convertPages.push([decodeURI(pages[i]).replace("https://www.monotalk.xyz","")]); } // 変換した結果を再設定 convertedReport.getRange(2, 3, convertedReport.getLastRow() - 1).setValues(convertPages);
ドメイン文字列を
以上です。
コメント