<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.barion.com/index.php?action=history&amp;feed=atom&amp;title=CategorySelection</id>
	<title>CategorySelection - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.barion.com/index.php?action=history&amp;feed=atom&amp;title=CategorySelection"/>
	<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=CategorySelection&amp;action=history"/>
	<updated>2026-11-25T14:31:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://docs.barion.com/index.php?title=CategorySelection&amp;diff=4425&amp;oldid=prev</id>
		<title>Bujnab@barion.dev: created page</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=CategorySelection&amp;diff=4425&amp;oldid=prev"/>
		<updated>2024-05-23T09:24:45Z</updated>

		<summary type="html">&lt;p&gt;created page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{PageTitle|title= categorySelection}}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;margin-left:2em;&amp;quot; align=&amp;quot;right&amp;quot;&lt;br /&gt;
| __TOC__&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Required event. Handling this event on your Barion shop&amp;#039;s screens is required as part of a Barion Full Pixel implementation.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Short description ==&lt;br /&gt;
&lt;br /&gt;
Monitor users&amp;#039; interest in a product category.&lt;br /&gt;
&lt;br /&gt;
Handle this event on any page in the webshop where the user can filter items for sale, for example by brand, theme, price range, common property, or other grouping.&lt;br /&gt;
&lt;br /&gt;
== Trigger ==&lt;br /&gt;
&lt;br /&gt;
Button click on a product category page or a categor selection page.&lt;br /&gt;
&lt;br /&gt;
== Properties ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;[[Barion-pixel-event-reference#custom-events-and-properties|Custom properties]] are supported.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Data type&lt;br /&gt;
!Description&lt;br /&gt;
!Required?&lt;br /&gt;
!Note&lt;br /&gt;
|-&lt;br /&gt;
!id&lt;br /&gt;
|string&lt;br /&gt;
|A unique identifier for the item or promotional material, such as a product ID, SKU, or promotion ID.&lt;br /&gt;
|yes&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!name&lt;br /&gt;
|string&lt;br /&gt;
|The full name associated with the item or promotional material, or the title of the visited page.&amp;lt;/br&amp;gt;Make sure that you use the same name across Barion Pixel events for the same item or promotional material.&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
|yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
!brand&lt;br /&gt;
|string&lt;br /&gt;
|The item&amp;#039;s brand.&lt;br /&gt;
|no&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!category&lt;br /&gt;
|string&lt;br /&gt;
|The |-separated subcategory chain (e.g. &amp;amp;quot;clothes|shoes|winter&amp;amp;quot;) or the single category (e.g. &amp;amp;quot;winter shoes&amp;amp;quot;) of the item for sale.&lt;br /&gt;
|no&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!contents&lt;br /&gt;
|array&lt;br /&gt;
|An array of [[Barion-pixel-event-reference#content-object|content objects]] if the page displays multiple items for sale.&lt;br /&gt;
|no&lt;br /&gt;
|Don&amp;#039;t include shipping or coupons.&lt;br /&gt;
|-&lt;br /&gt;
!contentType&lt;br /&gt;
|One of the following string options: &amp;amp;quot;Page&amp;amp;quot;, &amp;amp;quot;Product&amp;amp;quot;, &amp;amp;quot;Article&amp;amp;quot;, &amp;amp;quot;Promotion&amp;amp;quot;, &amp;amp;quot;Banner&amp;amp;quot;, &amp;amp;quot;Misc&amp;amp;quot;&lt;br /&gt;
|The type of page that triggered the event.&lt;br /&gt;
|yes&lt;br /&gt;
|In case this is an item listing page, pass &amp;amp;quot;Product&amp;amp;quot;. Otherwise, select the option that best matches the type of page. See the event&amp;#039;s &amp;lt;code&amp;gt;list&amp;lt;/code&amp;gt; property also.&lt;br /&gt;
|-&lt;br /&gt;
!customerValue&lt;br /&gt;
|float&lt;br /&gt;
|Your self-defined metric that represents the business value of the given customer (based on for example their average basket value).&lt;br /&gt;
|no&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!list&lt;br /&gt;
|string&lt;br /&gt;
|Select the function of the visited page from one of the following string options: &amp;amp;quot;HomePage&amp;amp;quot;, &amp;amp;quot;SearchPage&amp;amp;quot;, &amp;amp;quot;ProductPage&amp;amp;quot;, &amp;amp;quot;Recommendation&amp;amp;quot;, &amp;amp;quot;ComparisonPage&amp;amp;quot;, &amp;amp;quot;BasketPage&amp;amp;quot;, &amp;amp;quot;Checkout&amp;amp;quot;, &amp;amp;quot;Misc&amp;amp;quot;&lt;br /&gt;
|no&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!positioning&lt;br /&gt;
|string&lt;br /&gt;
|The item&amp;#039;s position in a list or collection (e.g. 2) or the position of its promotion on the page (e.g. banner_slot_1).&lt;br /&gt;
|no&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!step&lt;br /&gt;
|integer&lt;br /&gt;
|The order that the visited page is displayed in within a multi-step checkout process, if applicable.&lt;br /&gt;
|yes&lt;br /&gt;
|Step numbering starts at 1.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Barion Pixel throws the following errors in your browser console if a required property is missing or is passed in the wrong format:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Barion Pixel: Format of PROP_NAME is invalid in EVENT_NAME&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Barion Pixel: The PROP_NAME parameter of the EVENT_NAME event cannot be empty&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Sample implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;js&amp;quot;&amp;gt;var categorySelectionProperties = {&lt;br /&gt;
    &amp;#039;id&amp;#039;: &amp;#039;books_scifi&amp;#039;,&lt;br /&gt;
    &amp;#039;name&amp;#039;: &amp;#039;Sci-Fi Books&amp;#039;,&lt;br /&gt;
    &amp;#039;category&amp;#039;: &amp;#039;Books&amp;#039;,&lt;br /&gt;
    &amp;#039;contentType&amp;#039;: &amp;#039;Page&amp;#039;,&lt;br /&gt;
    &amp;#039;customerValue&amp;#039;: 150.0,&lt;br /&gt;
    &amp;#039;list&amp;#039;: &amp;#039;SearchPage&amp;#039;,&lt;br /&gt;
    &amp;#039;positioning&amp;#039;: &amp;#039;42&amp;#039;&lt;br /&gt;
}&lt;br /&gt;
// Use one of these to add the event listener to the button click (use only one):&lt;br /&gt;
// vanilla JS (if you don&amp;#039;t use jQuery, that is, &amp;quot;$&amp;quot; isn&amp;#039;t defined)&lt;br /&gt;
document.getElementById(&amp;#039;select_category&amp;#039;).addEventListener(&amp;#039;click&amp;#039;, function() {&lt;br /&gt;
    bp(&amp;#039;track&amp;#039;, &amp;#039;categorySelection&amp;#039;, categorySelectionProperties);&lt;br /&gt;
});&lt;br /&gt;
// jQuery (if you use jQuery, and &amp;quot;$&amp;quot; is available)&lt;br /&gt;
$(&amp;quot;#select_category&amp;quot;).click(function() {&lt;br /&gt;
    bp(&amp;#039;track&amp;#039;, &amp;#039;categorySelection&amp;#039;, categorySelectionProperties);&lt;br /&gt;
});&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bujnab@barion.dev</name></author>
	</entry>
</feed>