Common arguments
A few common arguments are required for EVERY hit type. You should try to know them before reading into hit-specific arguments.
Common arguments list
These arguments can be sent with any type of hit. The more data the better. By default, the JS tag sends the needed ones for each type of hit.
Summary
Required for all hit types
Attached to specific hit types
Campaign History (optional)
Current Session Timestamp (optional)
Custom Dimension (optional)
Custom Metric (optional)
Custom Variable (optional)
Data Source (optional)
Document Encoding (optional)
Document Location URL (Required for [pageview] hits)
Document Referrer (Required for [pageview] hits)
Is Bot (optional)
Java Enabled (optional)
Logical view (optional)
Page Title (Required for [pageview] hits)
Protocol Version (optional)
Quality Assurance Flag (optional)
Queue Time (optional)
Screen Color Depth (optional)
Screen Resolution (optional)
Session Number (optional)
Tag commit hash (optional)
Tag semantic version (optional)
Tag version (optional)
User Language (optional)
Viewport Size (optional)
Type
List of possible values:
campaign
(Campaign)event
(Event)pageview
(Pageview alias 'screenview' for mobile apps)item
(Item)nps
(NPS)transaction
(Transaction)visitorevent
(Hits list)segment
(Segment)datalayer
(Datalayer)batch
(Batch)product
(Product)
t
string
None
None
all
Example usage: t=pageview
Client ID
Unique ID of the client. This ID is also the JS tag identifier.
cid
string
None
None
all
Example usage: cid=b0711162425441fb679dc41b98f052ab
Visitor ID
Unique ID of the visitor
vid
string
None
50 char
all
Example usage: vid=as8eknlll
Campaign History
Not required but highly recommended. Without this parameter, the hit will never be assigned to any campaign.
Contains the list of campaign ID / variation ID the visitor has been exposed to. This will condition the attribution of a hit to a list of specific campaigns.
c
string
None
None
all
Example usage:
c: {
'123456':'654321',
'789012':'210987'
}
Current Session Timestamp
Unix Timestamp of the current session
Note: the JS tag uses a cookie to write and read this data.
cst
Integer
None
None
all
Example usage: cst=1522053173006
Custom Dimension
Each custom dimension has an associated index. There is a maximum of 20 custom dimensions. The dimension index must be a positive integer between 1 and 20, inclusive.
cd[dimensionIndex]
string
None
150 Bytes
all
Example usage: cd[1]=Sports
Custom Metric
Each custom metric has an associated index. There is a maximum of 20 custom metrics. The metric index must be a positive integer between 1 and 20, inclusive.
cm[dimensionIndex]
number
None
None
all
Example usage: cm[1]=47
Custom Variable
window.abtasty.send("EVENT", {
ec: "Action Tracking",
ea: "myEvent",
cv: {"0": "key1, value1", "2": "key2, value2"}
});
Each custom variable has an associated index and a [key,value] combination. The custom variable index must be a positive integer.
cv
object
None
None
all
Example usage: "cv" = "0": "key1, value1"
Data Source
Data source type. Can be web
or app
.
ds
string
web
None
all
Example usage: ds=web
Document Encoding
Not supported in Flagship
Specifies the character set used to encode the page / document.
de
string
UTF-8
20 Bytes
all
Example usage: de=UTF-8
Document Location url
Current URL of the page, at the moment the hit is sent.
Note: server will compute more information from this url, such as domain name, url path, list of parameters, etc.
dl
string
None
2048 Bytes
all
Example usage: dl=https%3A%2F%2Fabtastylab.com%2Fb0711162425441fb679dc41b98f052ab%2F
Document Referrer
Specifies which referral source brought traffic to a website. This value is also used to compute the traffic source. The format of this value is a URL.
dr
string
None
2048 Bytes
all
Example usage: dr=http%3A%2F%2Fexample.com
Is Bot
Specifies whether this hit has been sent by a bot.
When at least one hit as been sent with this parameter sent to true
, the whole session will be automatically flagged as coming from a bot, even if the other hits don't have the parameter or if it is set to false
.
The false
value does not trigger any effect.
All bots sessions are automatically excluded from our reportings.
This parameter is useful to manually flag a session as a bot or to exclude another type of unwanted sessions.
Even if this parameter is unset or set to false
, the collect pipeline will still evaluate its user-agent and flag it as a bot if it has a known bot user-agent.
ib
boolean
None
N/A
all
Example usage: ib=true
Java Enabled
Specifies whether Java was enabled.
je
boolean
None
None
all
Example usage: je=1
Logical View
Used to manage correct redirection tracking.
lv
Hash
None
None
all
Example usage: lv="x2GJdGGR"
Page Title
Not supported in Flagship
The title of the page / document.
Note: The JS tag uses document.title
.
pt
string
None
1500 Bytes
all
Example usage: pt=Settings
Protocol Version
Protocol version. This will only change when there are changes that are not backwards compatible.
v
integer
1
None
all
Example usage: v=1
Quality Assurance Flag
Used to flag hits part of a QA session. This field is automatically set to true when:
the QA assistant is opened
OR the test is in QA mode
QA sessions are not counted in the report once the test is launched in production without the QA mode.
qa
boolean
false
None
all
Example usage: qa=false
Queue Time
Used to collect offline / latent hits. The value represents the time delta (in milliseconds) between when the hit being reported occurred and the time the hit was sent. The value must be greater than or equal to 0. Values greater than four hours may lead to hits not being processed.
qt
integer
None
None
all
Example usage: qt=560
Screen Color Depth
Specifies the screen color depth.
sd
string
None
20 Bytes
all
Example usage: sd=24-bits
Screen resolution
Specifies the screen resolution (in pixels).
sr
string
None
20 Bytes
all
Example usage: sr=800x600
Tag semantic version
Tag semantic version.
tsv
String
None
None
all
Example usage: tsv=3.23.0
Session Number
Number of the current session for the current visitor.
Note: the JS tag uses a cookie to write and read this data.
sn
Integer
None
None
all
Example usage: sn=6
Tag commit hash
Identifies the commit hash of the current script. Used for debug purposes.
tch
Hash
None
None
all
Example usage: tch="98f10"
Tag version
Identifies the branch of the current tag. Four possible values: latest
(common usage), next
, unstable
and deprecated
.
tv
String
None
None
all
Example usage: tv="latest"
User Language
Specifies the language.
ul
string
None
20 Bytes
all
Example usage: ul=en-us
Viewport Size
Specifies the viewable area of the browser / device (in pixels).
vp
string
None
20 Bytes
all
Example usage: vp=123x456
Last updated
Was this helpful?