BTT Page Tag usage is similar as Unica NetInsight Tag, see following code snippet
Put the js in your JSP file and it’ll auto track the WWW access. Notes: Unica page tag (ntpagetag.js) must be front of BTT page tag because BTT page tag leverage Unica page tag APIs to do the log.
If customer wants to enable the tracking on all pages, modify the generation template, usually it named template.ftl under templates directory. Suggest to put the 2 lines at last your HTML body to reduce the load time. Put it at <header> will slightly increase the load time.
<body class="claro" style="visibility:hidden">
<#if js_file??>
<script type="text/javascript" src="${js_file}"></script>
</#if> ${content}
<script type="text/javascript" src="scripts/ntpagetag.js"></script>
<script type="text/javascript" src="scripts/bttpagetag.js"></script>
</body> </html>
Because unica support cloud and on-premise solutions, so customer need customize how unica page Tag record the access log. Actually the 1 pixel image address, it’s address at header of ntpagetag.js , point it to real 1 pixel image address of your solution.
NTPT_IMGSRC = 'http://Your Unica Log Site/ntpagetag.gif';
Also for BTT application, the location is mostly the same URL so suggest to do not record the location info by disable it in ntpagetag.js as following
NTPT_FLDS.lc = false; // Document location
BTT page tag has following customization point for customer to adjust to their real environment. To change the values, modify bttpagetag.js and it’ll take effect at next load.
Property ID | Description | Default Value
|
BTT_EVENT | Record direct, internal or ajax server call or not. | true |
BTT_REMAPURL | Remap BTT URL to meaningful URL or not. Suggest keep true. | true |
BTT_EXTRAPARAMS | Capture all BTT parameters for further analyze or not. These parameters store in form hidden field or link URL. | true |
BTT_ID_OPNAME | The default identifier to capture BTT operation name, operation state, page sequence and BTT server URL. Do not change this value until you overwrite BTT channels logic. | dse_operationName |
BTT_ID_STATE | dse_processorState | |
BTT_ID_PAGE | dse_pageId | |
BTT_ID_REQUEST | Request |