Veikt pasūtījumu

/*B: Send event to analytics – begin checkout*/
gtag( ‘event’, ‘begin_checkout’, {
‘items’: [
{
‘id’: ‘17862’,
‘name’: ‘Kumode FXK066’,
‘category’: ‘Guļamistabu kolekcijas/Viesistaba/Kumodes, skapīši/Kumodes, skapīši/Guļamistaba/Guļamistabas kolekcija FXK M’,
‘variant’: ‘Krāsa: Oak craft white / Oak craft grey’,
‘price’: ‘132’,
‘quantity’: ‘1’
},
],
‘event_callback’ : function(id) {

var ga_callback_XHR = null;
ga_callback_XHR = jQuery.ajax({type : ‘POST’,
url : ‘/wp-admin/admin-ajax.php’,
data : {‘action’ : ‘whtem_callback’, ‘type’: ‘checkout’, ‘eid’: ‘0’, ‘oid’ : ‘6270de7893c43’, ‘status’ : ‘ga’, ‘t’ : Math.floor(Date.now() / 1000)},
beforeSend : function() {
if(ga_callback_XHR != null) {
ga_callback_XHR.abort();
}
}, success: function(response) {
console.log(‘ADC’);
}, error: function(e) {
console.log(‘ADC ERROR’);
}});

}
} );
/*E: Send event to analytics – begin checkout*/

/*B: Send event to google ads – begin checkout*/
console.log(‘AW: Begin checkout’);
gtag(‘event’, ‘conversion’, {
‘send_to’: ‘AW-758517028/mUfUCJHRn6QDEKSa2OkC’,
‘value’: 1.0,
‘currency’: ‘EUR’,
‘event_callback’: function(id) {

var ad_callback_XHR = null;
ad_callback_XHR = jQuery.ajax({type : ‘POST’,
url : ‘/wp-admin/admin-ajax.php’,
data : {‘action’ : ‘whtem_callback’, ‘type’: ‘checkout’, ‘eid’: ‘0’, ‘oid’ : ‘6270de7893c43’, ‘status’ : ‘ad’, ‘t’ : Math.floor(Date.now() / 1000)},
beforeSend : function() {
if(ad_callback_XHR != null) {
ad_callback_XHR.abort();
}
}, success: function(response) {
console.log(‘ADC’);
}, error: function(e) {
console.log(‘ADC ERROR’);
}});

}
});
/*E: Send event to google ads – begin checkout*/

/*B: Send event to Facebook – begin checkout*/
console.log(‘FB: Initiate checkout…’);
fbq(‘track’, ‘InitiateCheckout’);
/*E: Send event to Facebook – begin checkout*/

var fb_callback_XHR = null;
fb_callback_XHR = jQuery.ajax({type : ‘POST’,
url : ‘/wp-admin/admin-ajax.php’,
data : {‘action’ : ‘whtem_callback’, ‘type’: ‘checkout’, ‘eid’: ‘0’, ‘oid’ : ‘6270de7893c43’, ‘status’ : ‘fb’, ‘t’ : Math.floor(Date.now() / 1000)},
beforeSend : function() {
if(fb_callback_XHR != null) {
fb_callback_XHR.abort();
}
}, success: function(response) {
console.log(‘FBC’);
}, error: function(e) {
console.log(‘FBC ERROR’);
}});

IP: 162.158.222.145

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36