Booqable integration
Quando você precisa planejar aluguéis, receber pedidos on-line, acompanhar o estoque, aceitar pagamentos, visualizar a disponibilidade de produtos, enviar faturas e muito mais, o Booqable oferece cobertura.
Para integrar o login da sua loja Booqable ao painel de administração e navegue até Configurações> Check-out on-line> Scripts adicionais.
Código
O código de acompanhamento da venda a ser usado na seção Scripts adicionais:
(function(d,t) {
var script = d.createElement(t); script.id= 'pap_x2s6df8d'; script.async = true;
script.src = '//URL_TO_PostAffiliatePro/scripts/trackjs.js';
script.onload = script.onreadystatechange = function() {
var rs = this.readyState; if (rs && (rs != 'complete') && (rs != 'loaded')) return;
};
d.getElementsByTagName('body')[0].appendChild(script);
})(document, 'script');
function papSale(totalCents, orderId, data1) {
PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createSale();
sale.setTotalCost(totalCents/100);
sale.setOrderID(orderId);
sale.setData1(data1);
PostAffTracker.register();
}
setTimeout(function(){
// Booqable completed event
Booqable.on('completed', function (e) {
var state = store.getState();
var cart = state.orm.carts.getById(state.checkout.cartId);
var subtotal = Number(cart.price_in_cents);
var discount = Number(cart.coupon_discount_in_cents);
papSale(subtotal-discount, cart.created_at + '('+cart.id+')', state.form.CheckoutForm.email.value);
});
}, 2500);
É isso. A loja foi integrada. Não se esqueça de integrar seu site com o código de rastreamento de cliques.
Discover the essentials of clicks (referrals) tracking with our comprehensive guide. Learn about the importance of click tracking code, explore various code examples including simple, asynchronous, and PHP versions, and dive into advanced tracking options. Optimize your affiliate marketing strategy with expert tips on setting account IDs, managing cookies, and customizing tracking parameters. Visit now to enhance your click tracking implementation!
Discover the power of the Lifetime Commissions plugin! Ensure lifetime referral tracking with unique customer identifiers, allowing affiliates to earn commissions on future sales without repeated clicks. Easily manage customer-affiliate relations and configure settings to suit your needs. Boost your affiliate program's efficiency with customizable options and ensure commissions for affiliates, even across different devices or channels. Explore seamless integration with eCommerce systems and enhance your marketing strategy today!