Unica netinsight custom tagging
-
Upload
vanishree03 -
Category
Technology
-
view
2.637 -
download
0
description
Transcript of Unica netinsight custom tagging
![Page 1: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/1.jpg)
UNICA NETINSIGHTJAVASCRIPT TAGGING
SUPPLIER CONNECTION WEB ANALYTICS
TAGGING TRAINING
Kikiy Weathers, Web Analyst/Web Effectiveness LeadJuly 3, 2012
![Page 2: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/2.jpg)
UNICA NETINSIGHTJAVASCRIPT TAGGING
Agenda:
Types of Tagging
- Basic Tagging - Custom Tagging - Events Tagging
Visitor Cookie Identification
De-Bugging Tools
![Page 3: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/3.jpg)
UNICA NETINSIGHTJAVASCRIPT TAGGING
Types of Tagging:Basic TaggingRaw data sent to Unica NetInsight each time the page loads in a visitor’s browser. Javascript tag is automatically included on all IBM.compages.
Custom TaggingEvent tags include interactions visitors have with a tagged page; for example, video or social bookmarking. Custom tags are not included automatically included on IBM.com pages. This must be requested.
![Page 4: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/4.jpg)
UNICA NETINSIGHTJAVASCRIPT TAGGING
DIRECT TAGS
Special tags, called Web Beacons, are available for data that does not use Javascript. For example, web apps and/or Flash applications require this special tagging.
![Page 5: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/5.jpg)
UNICA NETINSIGHTJAVASCRIPT TAGGING
How Tagging Works
1
2
3
4
5
<div id="ibm-metrics"> <script src="js/stats.js" type="text/javascript">//</script> </div>
Place tag on each page (usually in footer)
A page tag image (1X1 pixel) is included in the script
Visitor information is transferred to Unica
(1) When tagged page is loaded in browser OR (2) when user interacts with a page tagged with events (custom tagging)
![Page 6: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/6.jpg)
UNICA NETINSIGHTJAVASCRIPT TAGGING
BASIC PAGE TAGGING
Data Dimensions Metrics•IP address•GMT date/time•Page request with query string•Referring URL•Screen resolution•Screen color depth•Browser language•Browser Java support•User agent•Cookie information
•Page•Entry Page•Exit Page•Entry Referrer•Browser•Platform•Geographic Data
(Country, City, Time
Zone, Organization, etc.)•Date•Time•Day of the Week
•Number of visitors•Number of views•Number of visits•Number of new visitors•Number of repeat visitors•Total time online•Average viewing time•Average visit duration•Views per visit
![Page 7: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/7.jpg)
UNICA NETINSIGHTJAVASCRIPT TAGGING
What Happens When JavaScript is Disabled?
• JavaScript is a client-side scripting language, which means it is executed by the visitor’s browser and NOT on a server.
•The code is sent to the web browser and executed there.
• When JavaScript is disabled by the visitor, you can write an HTML <noscript>tag to pass the information (See Page 6 of the Unica NetInsight’s Tagging document for more detailed information on how to write this code).
FYI: Robots and Spiders CANNOT execute JavaScript; therefore, traffic with JavaScript enabled is human-based traffic.
![Page 8: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/8.jpg)
There are Four (4) Required VariablesRequired page tagging variables are defined in the page tag script (ntpagetag.js).
NTPT_IMGSRC
A string variable that contains the URL of the page tag image. The URL must point to the Unica OnDemand server and is provided by your Unica Technical Account Manager.
NTPT_SET_SESSION_COOKIE
Checks for the session cookie and sets it if it does not exist. The default session cookie name is NetInsightSessionID. You can specify a different cookie name using the NTPT_SESSION_COOKIE_NAME variable.
UNICA NETINSIGHTJAVASCRIPT TAGGING
REQUIRED JAVASCRIPT VARIABLES
1
2
![Page 9: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/9.jpg)
NTPT_FIELDS
A string variable that contains the URL of the page tag image. The URL must point to the Unica OnDemand server and is provided by your Unica Technical Account Manager. NTPT_MAXTAGWAIT
The maximum number of seconds that a call to ntptLinkTag() or ntptSubmitTag() will wait before following the link or submitting the form. The delay is intended to ensure that the page tag request is sent before the tagged page is unloaded.
UNICA NETINSIGHTJAVASCRIPT TAGGING
REQUIRED JAVASCRIPT VARIABLES
- Continued -
3
4
![Page 10: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/10.jpg)
(1) FireBug – FireFox Tools> Web Developer (You may have to go to add-ons first and load it into FF)
(2) HTTP FOX - FireFox Tools> Web Developer (You may have to go to add-ons first and load it into FF)
(3) TamperData: http://tamperdata.mozdev.org/help.html OR FireFox Add-Ons
UNICA NETINSIGHTJAVASCRIPT TAGGING
De-Bugging JavaScript
![Page 11: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/11.jpg)
By default, the NetInsight OnDemand page tag script assigns a cookie to visitors.
NetInsight OnDemand uses this cookie for visitor identification and parameteranalysis. The visitor identification cookie is set when the page tagging script loads.
Because the cookie is set through JavaScript, visitors must have JavaScript enabled in their browser in order to be tracked. (Users who do not have JavaScript enabled appear in the unique visitor count but no page tag data is collected for them.) [SEE TABLE ON SLIDE 6 FOR WHAT IS NOT CAPTURED IF JS IS DISABLED
The visitor identification cookie can be changed to do the following:• Stop setting visitor identification cookies• Change the visitor identification cookie name (as a best practice, do not change this cookie name if you are already collecting data)Change the expiration period for the visitor identification cookie• Declare a domain visitor identification cookie to track visitors across subdomains
UNICA NETINSIGHTJAVASCRIPT TAGGING
VISITOR COOKIES
![Page 12: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/12.jpg)
UNICA NETINSIGHTJAVASCRIPT TAGGING
EVENT TAGGING
DEFINITION OF AN EVENT:
An event is any on-page action other than loading a page on your site. Events include but are not limited to the following:
• Changing a field on a form• Selecting an option in a drop-down list box• Submitting a form• Clicking a link to display a page on another site• Starting a video• Viewing a PDF document• Checking an option (such as sound on/off)• Events are plentiful in RIAs such as Flash or AJAX applications.• The Unica page tag script includes special functions to use when tagging events.
![Page 13: Unica netinsight custom tagging](https://reader036.fdocuments.us/reader036/viewer/2022082805/54bf1fd14a7959b6698b4591/html5/thumbnails/13.jpg)
UNICA NETINSIGHTJAVASCRIPT TAGGING
THINGS YOU SHOULD KNOW ABOUT EVENTS:
Unlike a basic page tag, which sends a request when a page loads, an event tag sends a request when an event occurs on a page.
Another difference is that a basic page tag calls the entire page tagging script and an event tag calls a specific function in the script. There are three main event tagging functions:(1) ntptEventTag(2) ntptLinkTag(3) ntptSubmitTagEvery event you want to track must call one of these functions in its JavaScript event handler or Flash ActionScript.
Counting events as events and not page viewsNetInsight OnDemand considers every call to the page tagging script a page view, even if the call is to one of the event tagging functions. To cause an event to count as an event and not a page view, set the field-value pair ev=eventtype using the query modifier of the ntptEventTag, ntptLinkTag, or ntptSubmitTag function.