convead('event', 'add_to_cart', { product_id: '1', qnt: 2, price: 125.03, product_name: 'product', product_url: 'http://site.net/product/1' });
convead('event', 'custom', {key: 'event_key'});
convead('event', 'file', {file_url: 'http://example.com/file.zip'}, {});
<div class="ql-code-block" data-language="plain"><code><code>convead('event', 'link', {key_page_id: 123}, {});</div>
<div class="ql-code-block" data-language="plain"><code><code>convead('event', 'mailto', {email: 'chuck-norris@example.com'}, {});</div>
<div class="ql-code-block" data-language="plain"><code><code>convead('event', 'purchase', { order_id: '12345', revenue: 99.99, items: [ {product_id: '1', qnt: 1, price: 125.15, product_image_url: 'http://site/2.jpg', product_url: 'http://site.net/product/2'}, {product_id: '2', qnt: 15, price: 127.02, product_image_url: 'http://site/2.jpg', product_url: 'http://site.net/product/2'} ]}, { first_name: 'John', last_name: 'Smith', email: 'test@example.net', phone: '555555' } );</div>
<div class="ql-code-block" data-language="plain"><code><code>convead('event', 'update_info', {}, {email: 'test@example.net'});</div>
<div class="ql-code-block" data-language="plain"><code><code>convead('event', 'view_product', { product_id: '123', product_name: 'Product', category_id: '123', product_url: window.location.href, price: 125.15, product_image_url: 'http://site/1.jpg' });</div>
<div class="ql-code-block" data-language="plain"><code><code>convead('event', 'remove_from_cart', { product_id: '1', qnt: 2});</div>