PageSourceSearch

https://profibeauty.cz/modules/facebookproductad/views/js/pixel.js

js profibeauty.cz collected 2026-10-05 22:26:39 UTC 3,312 bytes, 115 lines download raw bytes

1/*
2 * 2003-2019 Business Tech
3 *
4 *  @author    Business Tech SARL
5 *  @copyright 2003-2019 Business Tech SARL
6 */
7// declare main object of module
8var oPixelFacebook = function (sName) {
9
10    /**
11     * handle events on the add to cart button (category and product pages)
12     *
13     * @param array product
14     * @param string sSelectorType
15     * @param int id
16     * @param bool bPageList
17     */
18    this.addToCart = function (product, sSelectorType) {
19
20        $(document).ready(function () {
21            var oClick = jQuery(sSelectorType);
22
23            oClick.on('click', function () {
24                fbq('track', 'AddToCart',
25                    {
26                        content_name: product.content_name,
27                        content_category: product.content_category,
28                        content_ids: product.content_ids,
29                        content_type: product.content_type,
30                        value: product.value,
31                        currency: product.currency
32                    });
33            });
34        });
35    };
36
37    /**
38     * handle events on the add to wishlist button (category and product pages)
39     *
40     * @param array product
41     * @param string sSelectorType
42     */
43    this.addToWishList = function (product, sSelectorType) {
44
45        $(document).ready(function () {
46            var oClick = jQuery(sSelectorType);
47
48            oClick.on('click', function () {
49                fbq('track', 'AddToWishlist',
50                    {
51                        content_name: product.content_name,
52                        content_category: product.content_category,
53                        content_ids: product.content_ids,
54                        content_type: product.content_type,
55                        value: product.value,
56                        currency: product.currency
57                    });
58            });
59        });
60    }
61
62    /**
63     * handle events on the initiateCheckout
64     *
65     * @param string sSelectorType
66     */
67    this.initiateCheckout = function (sSelectorType) {
68
69        $(document).ready(function () {
70            var oClick = jQuery(sSelectorType);
71
72            oClick.on('click', function () {
73                fbq('track', 'InitiateCheckout');
74            });
75        });
76    };
77
78    /**
79     * handle events on the add Payment data
80     *
81     */
82    this.addPaymentInfo = function () {
83        fbq('track', 'AddPaymentInfo');
84    };
85
86
87    /**
88     * handle events on the sub button
89     *
90     */
91    /**
92     * handle events on the add to wishlist button (category and product pages)
93     *
94     * @param array product
95     * @param string sSelectorType
96     */
97    this.addSub = function (product, sSelectorType) {
98
99        $(document).ready(function () {
100            var oClick = jQuery(sSelectorType);
101
102            oClick.on('click', function () {
103                fbq('track', 'Subscribe',
104                    {
105                        content_name: product.content_name,
106                        content_category: product.content_category,
107                        content_ids: product.content_ids,
108                        content_type: product.content_type,
109                        value: product.value,
110                        currency: product.currency
111                    });
112            });
113        });
114    }
115};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.