[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[[["Sandboxed JavaScript in Google Tag Manager offers a secure environment to execute custom code with limited features for safety."],["It utilizes a simplified type system and lacks access to the standard JavaScript global execution environment, relying on a `require` function for functionalities like `encodeURI` or `setTimeout`."],["Custom template code acts as a function executed upon tag firing or variable evaluation, receiving configured data through a `data` parameter."],["The provided sample demonstrates building a beacon tag using `require` for functionalities and accessing configuration data via `data`."]]],["Sandboxed JavaScript, used in Google Tag Manager's custom templates, provides a safe execution environment with restricted features. It uses a simplified type system and lacks the standard `window` object, instead relying on a `require` function for globals. It supports basic types and literal array/object creation. Template code represents a function body with a `data` parameter containing UI-configured values. Code example uses functions `sendPixel`, `encodeUri`, `encodeUriComponent` for building a URL and appending cache buster parameter, then send the pixel with `sendPixel`.\n"]]