Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
Document Properties Marker
extract-short-desctrue
render-asdefinition-list
Short DescriptionProvide a single custom variable to the Piwik context. 
Doctypemacrohide
NameSet One Custom Variable 
Parent
Parent Property
property-nameName
 
Audience
Name List
doctyperole
render-no-hits-as-blanktrue
propertyAudience
 
Subject
Name List
doctypesubject
propertySubject
 
Categories
Name List
doctypecategory
names/ Feature / Custom Variable
propertyCategories
 
Tags
Tag List
 
Iteration
Iteration
valuefilled
hide
Sort Keyhide
Column

 

Section
indextrue
titleDescription

This macro makes it easy for Confluence users to set custom variables for Piwik.

Quote External
source-urihttp://piwik.org/docs/custom-variables/
authorPiwik
sourceCustom Variables Analytics

A custom variable is a custom name-value pair that you can assign to your visitors (or page views) using the JavaScript Tracking API, and then visualize the reports of how many visits, conversions, etc. for each custom variable.

Section
titleProperties

Here is an overview over the options for this macro:

 

Section
level2
titleName

Specify the mandatory name of the custom variable you want to set.

This name will appear in your Piwik report. When you are logged in in Piwik Select Visitors -> Custom Variables. The name appears top level.

Example Box
titleScreenshot showing the Name of a Custom Variable

Here is a screenshot for a custom variable named 'Category'.

The length is limited to 200 characters. Keep the value as short as possible to save resources and to not exceed the maximum URL length supported by your web server.

Section
level2
titleValue

Specify the mandatory value to be associated with the name of the custom variable.

This value will appear in your Piwik report. When you are logged in in Piwik, select Visitors -> Custom Variables. The value appears below the name the value is bound to.

Example Box
titleScreenshot showing the Name and Value of a Custom Variable

Here is a screenshot for a custom variable named 'Category' with the value of 'blog-projectdoc-101'.

The length is limited to 200 characters. Keep the value as short as possible to save resources and to not exceed the maximum URL length supported by your web server.

Section
level2
titleScope

Define how the information provided by the custom variable is stored.

You have two options:

Definition List
visitthe custom variable is only valid in the current session.
pageuse to determine how your landing pages perform.

For detailed information, please refer to Custom Variables Analytics at Piwik.

Section
titleDetails

Section
indextrue
titleRelated Macros
Display Table
doctypemacro
render-no-hits-as-blanktrue
render-modedefinition
where$<Categories> = [/ Feature / Custom Variable]
exclude-selftrue
Section
titleSubordinate Macros
Display Table
doctypemacro
render-no-hits-as-blanktrue
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name
Section
required-permissionswrite-access
titleNotes

Section
titleReferences

Section
titleResources