SCE Tracking Script
Installation on WWW
<script>
(function(baseUrl, apiKey, sid, options) {
var options = options || { debug: false, attachEvents: [], ignoreTypeAttributes: [], ignoreNameAttributes: [] };
window.sce = {
CODES_V: "0.4",
writeKey: apiKey,
baseUrl: baseUrl,
sid: sid,
buffer: [],
ignoreTypeAttributes: options.ignoreTypeAttributes,
ignoreNameAttributes: options.ignoreNameAttributes,
debug: options.debug,
attachEvents: options.attachEvents,
permissionCookieName: "accept",
event: function(eventType, args) {
if (sce.sendData) {
sce.sendData(eventType, args, null, "SCENARIO_NAME");
} else {
sce.buffer.push([
1 * new Date(),
eventType,
args
]);
}
}
};
var sceScript = document.createElement("script");
sceScript.type = "text/javascript";
sceScript.async = true;
sceScript.src = baseUrl + 'scripts/sendData.min.js';
var otherScriptTag = document.getElementsByTagName("script")[0];
otherScriptTag.parentNode.insertBefore(sceScript, otherScriptTag);
})("APP_BASE_URL", "APP_TOKEN", "sid", { debug: false, attachEvents: [ "optionalEvent" ], ignoreTypeAttributes: ["password"], ignoreNameAttributes:["optionalIgnoredAttributeName"] }); // change url to sce url, add api key, customer id and options
</script>Parameters
Tracking permission
Use
Variables
Variable
Type
Description
Example
Ignoring attributes from being tracked
Examples of use
Input edition
Clicks
Time spent on page and page view
Scroll
Processing evnts and storing in RDBMS
Last updated