public enum QueryParams extends java.lang.Enum<QueryParams>
| Enum Constant and Description |
|---|
ACTION_NAME
The title of the action being tracked.
|
API_VERSION
The parameter apiv=1 defines the api version to use (currently always set to 1)
|
CAMPAIGN_KEYWORD
The Campaign Keyword (see Tracking Campaigns).
|
CAMPAIGN_NAME
The Campaign name (see Tracking Campaigns).
|
CONTENT_INTERACTION
The name of the interaction with the content.
|
CONTENT_NAME
The name of the content.
|
CONTENT_PIECE
The actual content piece.
|
CONTENT_TARGET
The target of the content.
|
DATETIME_OF_REQUEST
Override for the datetime of the request (normally the current time is used).
|
DISCOUNT
The amount of the discount on the order
|
DOWNLOAD
URL of a file the user has downloaded.
|
ECOMMERCE_ITEMS
Items in your cart or order for ecommerce tracking
|
EVENT_ACTION
The event action.
|
EVENT_CATEGORY
The event category.
|
EVENT_NAME
The event name.
|
EVENT_VALUE
The event value.
|
FIRST_VISIT_TIMESTAMP
The UNIX timestamp of this visitor's first visit (seconds since Jan 01 1970.
|
GOAL_ID
If specified, the tracking request will trigger a conversion for the goal of the website being tracked with this ID.
|
HOURS
The current hour (local time).
|
LANGUAGE
An override value for the Accept-Language HTTP header field.
|
LINK
An external URL the user has opened.
|
MINUTES
The current minute (local time).
|
ORDER_ID
The unique identifier for the order
|
PREVIOUS_VISIT_TIMESTAMP
The UNIX timestamp of this visitor's previous visit (seconds since Jan 01 1970.
|
RANDOM_NUMBER
Meant to hold a random value that is generated before each request.
|
RECORD
Required for tracking, must be set to one, eg, rec=1.
|
REFERRER
The full HTTP Referrer URL.
|
REVENUE
A monetary value that was generated as revenue by this goal conversion.
|
SCREEN_RESOLUTION
The resolution of the device the visitor is using, eg 1280x1024.
|
SCREEN_SCOPE_CUSTOM_VARIABLES
Deprecated.
Consider using Custom Dimensions
|
SEARCH_CATEGORY
When
SEARCH_KEYWORD is specified, you can optionally specify a search category with this parameter. |
SEARCH_KEYWORD
The Site Search keyword.
|
SEARCH_NUMBER_OF_HITS
When
SEARCH_KEYWORD is specified, we also recommend to set this to the number of search results. |
SECONDS
The current second (local time).
|
SEND_IMAGE
If set to 0 (send_image=0) Piwik will respond with a HTTP 204 response code instead of a GIF image.
|
SESSION_START
If set to 1, will force a new visit to be created for this action.
|
SHIPPING
The amount of shipping paid on the order
|
SITE_ID
The ID of the website we're tracking a visit/action for.
|
SUBTOTAL
The sub total amount of the order
|
TAX
The amount of tax paid for the order
|
TOTAL_NUMBER_OF_VISITS
The current count of visits for this visitor.
|
URL_PATH
The full URL for the current action.
|
USER_AGENT
An override value for the User-Agent HTTP header field.
|
USER_ID
Defines the User ID for this request.
|
VISIT_SCOPE_CUSTOM_VARIABLES
Deprecated.
Consider using Custom Dimensions
|
VISITOR_ID
The unique visitor ID, must be a 16 characters hexadecimal string.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
static QueryParams |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static QueryParams[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueryParams SITE_ID
(required)
public static final QueryParams RECORD
(required)
public static final QueryParams URL_PATH
(required)
public static final QueryParams ACTION_NAME
It is possible to use slashes / to set one or several categories for this action. For example, Help / Feedback will create the Action Feedback in the category Help.
(recommended)
public static final QueryParams VISITOR_ID
Every unique visitor must be assigned a different ID and this ID must not change after it is assigned. If this value is not set Piwik will still track visits, but the unique visitors metric might be less accurate.
(recommended)
public static final QueryParams RANDOM_NUMBER
Using it helps avoid the tracking request being cached by the browser or a proxy.
(recommended)
public static final QueryParams API_VERSION
(recommended)
public static final QueryParams REFERRER
This value is used to determine how someone got to your website (ie, through a website, search engine or campaign).
@Deprecated public static final QueryParams VISIT_SCOPE_CUSTOM_VARIABLES
This is a JSON encoded string of the custom variable array.
CustomDimensionpublic static final QueryParams TOTAL_NUMBER_OF_VISITS
To set this value correctly, it would be required to store the value for each visitor in your application (using sessions or persisting in a database). Then you would manually increment the counts by one on each new visit or "session", depending on how you choose to define a visit. This value is used to populate the report Visitors > Engagement > Visits by visit number.
public static final QueryParams PREVIOUS_VISIT_TIMESTAMP
This parameter is used to populate the report Visitors > Engagement > Visits by days since last visit.
public static final QueryParams FIRST_VISIT_TIMESTAMP
This could be set to the date where the user first started using your software/app, or when he/she created an account. This parameter is used to populate the Goals > Days to Conversion report.
public static final QueryParams CAMPAIGN_NAME
Used to populate the Referrers > Campaigns report. Note: this parameter will only be used for the first pageview of a visit.
public static final QueryParams CAMPAIGN_KEYWORD
Used to populate the Referrers > Campaigns report (clicking on a campaign loads all keywords for this campaign). Note: this parameter will only be used for the first pageview of a visit.
public static final QueryParams SCREEN_RESOLUTION
public static final QueryParams HOURS
public static final QueryParams MINUTES
public static final QueryParams SECONDS
public static final QueryParams USER_AGENT
The user agent is used to detect the operating system and browser used.
public static final QueryParams LANGUAGE
This value is used to detect the visitor's country if GeoIP is not enabled.
public static final QueryParams USER_ID
User ID is any non empty unique string identifying the user (such as an email address or a username). To access this value, users must be logged-in in your system so you can fetch this user ID from your system, and pass it to Piwik. The User ID appears in the visitor log, the Visitor profile, and you can Segment reports for one or several User ID (userId segment). When specified, the User ID will be "enforced". This means that if there is no recent visit with this User ID, a new one will be created. If a visit is found in the last 30 minutes with your specified User ID, then the new action will be recorded to this existing visit.
public static final QueryParams SESSION_START
public static final QueryParams SCREEN_SCOPE_CUSTOM_VARIABLES
CustomDimensionpublic static final QueryParams LINK
Used for tracking outlink clicks. We recommend to also set the url parameter to this same value.
public static final QueryParams DOWNLOAD
Used for tracking downloads. We recommend to also set the url parameter to this same value.
public static final QueryParams SEARCH_KEYWORD
When specified, the request will not be tracked as a normal pageview but will instead be tracked as a Site Search request.
public static final QueryParams SEARCH_CATEGORY
SEARCH_KEYWORD is specified, you can optionally specify a search category with this parameter.public static final QueryParams SEARCH_NUMBER_OF_HITS
SEARCH_KEYWORD is specified, we also recommend to set this to the number of search results.public static final QueryParams GOAL_ID
public static final QueryParams REVENUE
Only used if GOAL_ID is specified in the request.
public static final QueryParams DATETIME_OF_REQUEST
This can be used to record visits and page views in the past. The expected format is: 2011-04-05 00:11:42 (remember to URL encode the value!). The datetime must be sent in UTC timezone. Events can only be backdated for a maximum time of 24h. Note: if you record data in the past, you will need to force Piwik to re-process reports for the past dates.
public static final QueryParams CONTENT_NAME
public static final QueryParams CONTENT_PIECE
public static final QueryParams CONTENT_TARGET
public static final QueryParams CONTENT_INTERACTION
public static final QueryParams EVENT_CATEGORY
public static final QueryParams EVENT_ACTION
public static final QueryParams EVENT_NAME
public static final QueryParams EVENT_VALUE
public static final QueryParams ECOMMERCE_ITEMS
public static final QueryParams TAX
public static final QueryParams ORDER_ID
public static final QueryParams SHIPPING
public static final QueryParams DISCOUNT
public static final QueryParams SUBTOTAL
public static final QueryParams SEND_IMAGE
This improves performance and can fix errors if images are not allowed to be obtained directly (eg Chrome Apps). Available since Piwik 2.10.0
public static QueryParams[] values()
for (QueryParams c : QueryParams.values()) System.out.println(c);
public static QueryParams valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<QueryParams>