<?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=AddToCart</id>
	<title>AddToCart - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.barion.com/index.php?action=history&amp;feed=atom&amp;title=AddToCart"/>
	<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=AddToCart&amp;action=history"/>
	<updated>2026-11-23T05:07:59Z</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=AddToCart&amp;diff=4439&amp;oldid=prev</id>
		<title>Bujnab@barion.dev at 10:07, 23 May 2024</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=AddToCart&amp;diff=4439&amp;oldid=prev"/>
		<updated>2024-05-23T10:07:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:07, 23 May 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= addToCart =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;__NOTOC__&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{PageTitle|title&lt;/ins&gt;= addToCart&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| style&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;margin-left:2em;&quot; align=&quot;right&quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| __TOC__&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&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;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&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;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bujnab@barion.dev</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=AddToCart&amp;diff=4424&amp;oldid=prev</id>
		<title>Bujnab@barion.dev: /* Properties */</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=AddToCart&amp;diff=4424&amp;oldid=prev"/>
		<updated>2024-05-23T09:22:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Properties&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:22, 23 May 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l45&quot;&gt;Line 45:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 45:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|yes&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|yes&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!quantity&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!quantity&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|float&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|float&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bujnab@barion.dev</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=AddToCart&amp;diff=4415&amp;oldid=prev</id>
		<title>Bujnab@barion.dev: fixed a link</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=AddToCart&amp;diff=4415&amp;oldid=prev"/>
		<updated>2024-05-22T11:24:19Z</updated>

		<summary type="html">&lt;p&gt;fixed a link&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:24, 22 May 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l83&quot;&gt;Line 83:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 83:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!contents&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!contents&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|array&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|array&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|An array of [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;../05-barion-pixel-reference/00&lt;/del&gt;-pixel-event-reference#content|content objects]] if the page displays multiple items for sale.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|An array of [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Barion&lt;/ins&gt;-pixel-event-reference#content&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-object&lt;/ins&gt;|content objects]] if the page displays multiple items for sale.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|no&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|no&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Don&amp;#039;t include shipping or coupons.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|Don&amp;#039;t include shipping or coupons.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bujnab@barion.dev</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=AddToCart&amp;diff=4411&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=AddToCart&amp;diff=4411&amp;oldid=prev"/>
		<updated>2024-05-22T11:04:55Z</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;= addToCart =&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;
The event represents the user action of adding an item for sale to their cart in your webshop.&lt;br /&gt;
&lt;br /&gt;
== Trigger ==&lt;br /&gt;
&lt;br /&gt;
A button click that explicitly represents the user&amp;#039;s decision to purchase the item. This is mostly implemented by the item being added to the user&amp;#039;s cart – if your webshop doesn&amp;#039;t use the shopping cart metaphor, trigger this event when the user selects an equivalent button, such as one labeled &amp;amp;quot;Buy&amp;amp;quot; or &amp;amp;quot;Reserv&amp;amp;quot;.&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;
!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;
!currency&lt;br /&gt;
|string ([https://www.iso.org/iso-4217-currency-codes.html ISO 4217 currency code])&lt;br /&gt;
|&lt;br /&gt;
|yes&lt;br /&gt;
|Required if &amp;lt;code&amp;gt;&amp;amp;quot;contentType&amp;amp;quot;: &amp;amp;quot;Product&amp;amp;quot;&amp;lt;/code&amp;gt;&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;
!quantity&lt;br /&gt;
|float&lt;br /&gt;
|The quantity that is displayed on the page for the item on sale.&lt;br /&gt;
|yes&lt;br /&gt;
|Required if &amp;lt;code&amp;gt;&amp;amp;quot;contentType&amp;amp;quot;: &amp;amp;quot;Product&amp;amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
!totalItemPrice&lt;br /&gt;
|float&lt;br /&gt;
|The total price of the item or items added to the cart, in the specified &amp;lt;code&amp;gt;currency&amp;lt;/code&amp;gt;.&lt;br /&gt;
|yes&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!unit&lt;br /&gt;
|string&lt;br /&gt;
|The displayed item&amp;#039;s unit (e.g. piece, set, liter).&lt;br /&gt;
|yes&lt;br /&gt;
|Required if &amp;lt;code&amp;gt;&amp;amp;quot;contentType&amp;amp;quot;: &amp;amp;quot;Product&amp;amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
!unitPrice&lt;br /&gt;
|float&lt;br /&gt;
|The price of a single unit of the item for sale, in the &amp;lt;code&amp;gt;currency&amp;lt;/code&amp;gt; property.&lt;br /&gt;
|yes&lt;br /&gt;
|Required if &amp;lt;code&amp;gt;&amp;amp;quot;contentType&amp;amp;quot;: &amp;amp;quot;Product&amp;amp;quot;&amp;lt;/code&amp;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 [[../05-barion-pixel-reference/00-pixel-event-reference#content|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;
!coupon&lt;br /&gt;
|string&lt;br /&gt;
|The coupon code used when the user added the item to the cart.&lt;br /&gt;
|no&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!creative&lt;br /&gt;
|string&lt;br /&gt;
|The associated promotion&amp;#039;s name or description, such as an advertising slogan or the name of the promotional image file.&lt;br /&gt;
|no&lt;br /&gt;
|&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;
!ean&lt;br /&gt;
|string&lt;br /&gt;
|The item&amp;#039;s [https://www.ean-search.org/ International Article Number (EAN)].&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;
|no&lt;br /&gt;
|Step numbering starts at 1.&lt;br /&gt;
|-&lt;br /&gt;
!variant&lt;br /&gt;
|string&lt;br /&gt;
|The variant of the item on sale that distinguishes it from other similar items (such as color, material, or time and date).&lt;br /&gt;
|no&lt;br /&gt;
|&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;
=== Physical item sample ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;js&amp;quot;&amp;gt;// sample product data for single item&lt;br /&gt;
var addToCartProperties = {&lt;br /&gt;
    &amp;#039;contentType&amp;#039;: &amp;#039;Product&amp;#039;,&lt;br /&gt;
    &amp;#039;currency&amp;#039;: &amp;#039;HUF&amp;#039;,&lt;br /&gt;
    &amp;#039;id&amp;#039;: &amp;#039;item_42&amp;#039;,&lt;br /&gt;
    &amp;#039;name&amp;#039;: &amp;quot;Hitchhikers&amp;#039; Guide to the Galaxy, hardcover, ISBN: 9780575115347&amp;quot;,&lt;br /&gt;
    &amp;#039;quantity&amp;#039;: 10.0,&lt;br /&gt;
    &amp;#039;totalItemPrice&amp;#039;: 49900.0,&lt;br /&gt;
    &amp;#039;unit&amp;#039;: &amp;#039;pcs.&amp;#039;,&lt;br /&gt;
    &amp;#039;unitPrice&amp;#039;: 4990.0,&lt;br /&gt;
    &amp;#039;brand&amp;#039;: &amp;#039;Gollancz&amp;#039;,&lt;br /&gt;
    &amp;#039;category&amp;#039;: &amp;#039;books|hardcover|scifi, books|hardcover|comedy&amp;#039;,&lt;br /&gt;
    &amp;#039;coupon&amp;#039;: &amp;#039;43763436874&amp;#039;,&lt;br /&gt;
    &amp;#039;creative&amp;#039;: &amp;#039;product_page_promo_42&amp;#039;,&lt;br /&gt;
    &amp;#039;customerValue&amp;#039;: 150.0,&lt;br /&gt;
    &amp;#039;ean&amp;#039;: &amp;#039;9780575115347&amp;#039;,&lt;br /&gt;
    &amp;#039;list&amp;#039;: &amp;#039;ProductPage&amp;#039;,&lt;br /&gt;
    &amp;#039;positioning&amp;#039;: &amp;#039;3&amp;#039;,&lt;br /&gt;
    &amp;#039;variant&amp;#039;: &amp;#039;hardcover&amp;#039;&lt;br /&gt;
}&lt;br /&gt;
// sample product data for bundled items&lt;br /&gt;
var addToCartProperties = {&lt;br /&gt;
    &amp;#039;contentType&amp;#039;: &amp;#039;Product&amp;#039;,&lt;br /&gt;
    &amp;#039;currency&amp;#039;: &amp;#039;HUF&amp;#039;,&lt;br /&gt;
    &amp;#039;id&amp;#039;: &amp;#039;item_42pack&amp;#039;,&lt;br /&gt;
    &amp;#039;name&amp;#039;: &amp;quot;Hitchhikers&amp;#039; Guide to the Galaxy, hardcover, ISBN: 9780575115347&amp;quot;,&lt;br /&gt;
    &amp;#039;quantity&amp;#039;: 10.0,&lt;br /&gt;
    &amp;#039;totalItemPrice&amp;#039;: 150000.0,&lt;br /&gt;
    &amp;#039;unit&amp;#039;: &amp;#039;pcs.&amp;#039;,&lt;br /&gt;
    &amp;#039;unitPrice&amp;#039;: 15000.0,&lt;br /&gt;
    &amp;#039;brand&amp;#039;: &amp;#039;Gollancz&amp;#039;,&lt;br /&gt;
    &amp;#039;category&amp;#039;: &amp;#039;books|hardcover|scifi, books|hardcover|comedy&amp;#039;,&lt;br /&gt;
    &amp;#039;contents&amp;#039;: [{&lt;br /&gt;
        &amp;#039;contentType&amp;#039;: &amp;#039;Product&amp;#039;,&lt;br /&gt;
        &amp;#039;currency&amp;#039;: &amp;#039;HUF&amp;#039;,&lt;br /&gt;
        &amp;#039;id&amp;#039;: &amp;#039;item_42&amp;#039;,&lt;br /&gt;
        &amp;#039;name&amp;#039;: &amp;quot;Hitchhikers&amp;#039; Guide to the Galaxy, hardcover, ISBN: 9780575115347&amp;quot;,&lt;br /&gt;
        &amp;#039;quantity&amp;#039;: 3.0,&lt;br /&gt;
        &amp;#039;totalItemPrice&amp;#039;: 7500.0,&lt;br /&gt;
        &amp;#039;unit&amp;#039;: &amp;#039;pcs&amp;#039;,&lt;br /&gt;
        &amp;#039;unitPrice&amp;#039;: 2500.0,&lt;br /&gt;
        &amp;#039;brand&amp;#039;: &amp;#039;Gollancz&amp;#039;,&lt;br /&gt;
        &amp;#039;category&amp;#039;: &amp;#039;books|hardcover|scifi, books|hardcover|comedy&amp;#039;,&lt;br /&gt;
        &amp;#039;description&amp;#039;: &amp;#039;The Hitchhikers Guide to the Galaxy is a comedy science fiction series created by Douglas Adams.&amp;#039;,&lt;br /&gt;
        &amp;#039;ean&amp;#039;: &amp;#039;9780575115347&amp;#039;,&lt;br /&gt;
        &amp;#039;imageUrl&amp;#039;: &amp;#039;https://images-na.ssl-images-amazon.com/images/I/51MzUz8rQcL._SX305_BO1,204,203,200_.jpg&amp;#039;,&lt;br /&gt;
        &amp;#039;variant&amp;#039;: &amp;#039;hardcover&amp;#039;&lt;br /&gt;
        },&lt;br /&gt;
        {&lt;br /&gt;
        &amp;#039;contentType&amp;#039;: &amp;#039;Product&amp;#039;,&lt;br /&gt;
        &amp;#039;currency&amp;#039;: &amp;#039;USD&amp;#039;,&lt;br /&gt;
        &amp;#039;id&amp;#039;: &amp;#039;item_42en&amp;#039;,&lt;br /&gt;
        &amp;#039;name&amp;#039;: &amp;quot;Hitchhikers&amp;#039; Guide to the Galaxy, hardcover, ISBN: 9780575115347&amp;quot;,&lt;br /&gt;
        &amp;#039;quantity&amp;#039;: 3.0,&lt;br /&gt;
        &amp;#039;totalItemPrice&amp;#039;: 25935,&lt;br /&gt;
        &amp;#039;unit&amp;#039;: &amp;#039;pcs&amp;#039;,&lt;br /&gt;
        &amp;#039;unitPrice&amp;#039;: 8645,&lt;br /&gt;
        &amp;#039;brand&amp;#039;: &amp;#039;Gollancz&amp;#039;,&lt;br /&gt;
        &amp;#039;category&amp;#039;: &amp;#039;books|hardcover|scifi, books|hardcover|comedy&amp;#039;,&lt;br /&gt;
        &amp;#039;description&amp;#039;: &amp;#039;The Hitchhikers Guide to the Galaxy is a comedy science fiction series created by Douglas Adams.&amp;#039;,&lt;br /&gt;
        &amp;#039;ean&amp;#039;: &amp;#039;9780575115347&amp;#039;,&lt;br /&gt;
        &amp;#039;imageUrl&amp;#039;: &amp;#039;https://images-na.ssl-images-amazon.com/images/I/51MzUz8rQcL._SX305_BO1,204,203,200_.jpg&amp;#039;,&lt;br /&gt;
        &amp;#039;variant&amp;#039;: &amp;#039;hardcover&amp;#039;&lt;br /&gt;
        }],&lt;br /&gt;
    &amp;#039;coupon&amp;#039;: &amp;#039;43763436874&amp;#039;,&lt;br /&gt;
    &amp;#039;creative&amp;#039;: &amp;#039;add_to_cart_promo_42&amp;#039;,&lt;br /&gt;
    &amp;#039;customerValue&amp;#039;: 150.0,&lt;br /&gt;
    &amp;#039;ean&amp;#039;: &amp;#039;9780575115347&amp;#039;,&lt;br /&gt;
    &amp;#039;list&amp;#039;: &amp;#039;BasketPage&amp;#039;,&lt;br /&gt;
    &amp;#039;positioning&amp;#039;: &amp;#039;3&amp;#039;,&lt;br /&gt;
    &amp;#039;variant&amp;#039;: &amp;#039;hardcover&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)&lt;br /&gt;
document.getElementById(&amp;#039;addtocart_button&amp;#039;).addEventListener(&amp;#039;click&amp;#039;, function() {&lt;br /&gt;
    bp(&amp;#039;track&amp;#039;, &amp;#039;addToCart&amp;#039;, addToCartProperties);&lt;br /&gt;
});&lt;br /&gt;
// jQuery&lt;br /&gt;
$(&amp;quot;#addtocart_button&amp;quot;).click(function() {&lt;br /&gt;
    bp(&amp;#039;track&amp;#039;, &amp;#039;addToCart&amp;#039;, addToCartProperties);&lt;br /&gt;
});&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bujnab@barion.dev</name></author>
	</entry>
</feed>