Namespace

stat_stag

stat_stag

SmartTag Adapter

Methods

static addProduct(product)

Product add to cart.

Parameters:
Name Type Description
product stat_sales.Product

Product to add.

static init(secured, nocookieopt)

Initialize AT Internet Tracker

Parameters:
Name Type Attributes Description
secured boolean

Force Secure Server ?

nocookie boolean <optional>

true if Privacy mode

static jsonName(lname, l2opt) → {object}

Create a Json structure from a conventional name and a Level 2

Parameters:
Name Type Attributes Description
lname string

Page or Event name

l2 string <optional>

Level 2 that must be added in the structure. Default: current one.

Ready-to-use Json structure for naming purposes

object

static productView(pRef, pName, catRef, catName)

Product impression

Parameters:
Name Type Description
pRef string

Product Reference

pName string

Product Name

catRef string

Category Reference

catName string

Category Name

static sendClick(lname, type, node, eopt, l2opt)

Send Click Tag

Parameters:
Name Type Attributes Description
lname string

Page name

type string

Click tag type ('N', 'S', 'T', 'A', 'IS', 'F')

node object

Clicked node

e object <optional>

Current event

l2 string <optional>

Level 2

static sendPage(lname, l2opt)

Send Page Tag Marker

Parameters:
Name Type Attributes Description
lname string

Page name

l2 string <optional>

Level 2

static sendVideo(A, B, C, E, D, F, G, H, J, K, L, M, N, event)

Send Rich Media Tag for Video

Parameters:
Name Type Description
A string

Compulsory - content type ("video", "audio" or "vpost" for the measurement of post-roll videos). The content type must be concatenated to the variable "&plyr=", which contains the ID of the reader that is currently being used (refer to the example below). The variable "&plyr=" is optional but must be added when several readers are used, the aim of this is to distinguish between the hits that are received by the different readers.

B string

Level 2 site in which the content is placed.

C string

Compulsory - content label (use "::" if necessary) or post-roll advertisement label (in this case do not use the "::"). The label which is used for a post-roll advertisement must be concatenated to the variable "&clnk=". The "&clnk=" variable needs to resume the video content that the advertisement is linked to (refer to the example below).

E string

Not used

D string

Compulsory - action (predefined ID)

F string

Refresh count duration (optional and measured in seconds, but necessary to calculate detailed durations). This is a fixed duration, and a minimum interval value of 5 seconds applies.

G string

Compulsory (except if D is different from "play" or if L = "Live"):Total content duration is measured in seconds (to be left empty if L="live"). Must be less than 86400.

H string

Information relating to the position of the playcount ("rmp", "rmpf" and "rmbufp"), measured in seconds. These three variables, which are to be concatenated, need to be entered as follows: "rmp=0&rmpf=0&rmbufp=0" (0 is the default value). - rmp (rich media position): position of the read head. This value must be updated for each action (variable D). - rmpf (rich media position from): the starting position of the read head along the playback bar. This value must be updated for each action (if variable D="move"). - rmbufp (rich media buffer cache position: the position of the cache's progress bar which is present in the content. This value must be updated for each action (variable D)

J string

Feed ID

K string

Location ("int" or "ext").

L string

Broadcast ("live" or "clip"). If L is empty the method which is taken into consideration for broadcasting is "clip".

M string

Content size (integer in Kb, leave empty if L="live").

N string

Content format (ID predefined by you).

event string

Youtube event

static setParams()

Parse xtcore parameters to make them SmartTag settings.

static stopVideo()

Force Video stop