[[["易于理解","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"]],["最后更新时间 (UTC):2022-12-05。"],[[["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"]]