Your first blog post! – ATS Tactical Gear


Welcome to your blog!
A blog is a great place to share details on your products, business and whatever else you think your shoppers might like to hear from you. You can include photos in your blog posts and even videos. For ideas and inspiration on how to structure your blog, take a look at the Bigcommerce ecommerce blog.

How can I delete this post?
To delete this post and add your own, login to your admin area, click the Content tab at the top of the screen and choose Blog.

Powered by Bigcommerce
Your website, online store and blog are powered by Bigcommerce ecommerce software. It includes everything you need to run a beautiful online store including ecommerce website templates, ecommerce hosting, an online shopping cart and more.

fbq('set', 'autoConfig', 'false', '138304356865638'); fbq('init', '138304356865638'); fbq('set', 'agent', 'plbigcommerce1.2', '138304356865638');

window.onload = function() { var productIdMap = {}, productIdsOnPage = getUniqueProductIdsOnPage(), pathName = window.location.pathname;

fbq('track', 'PageView');

// Search events start -- only fire if the shopper lands on the /search.php page if (pathName.indexOf('/search.php') === 0 && getUrlParameter('search_query')) { fbq('track', 'Search', { content_ids: productIdsOnPage, search_string: getUrlParameter('search_query') }); } // Search events end

// Wishlist events start -- only fire if the shopper attempts to add an item to their wishlist if (pathName.indexOf('/wishlist.php') === 0 && getUrlParameter('added_product_id')) { fbq('track', 'AddToWishlist', { content_ids: [getUrlParameter('added_product_id')] }); } // Wishlist events end

// Lead events start -- only fire if the shopper subscribes to newsletter if (pathName.indexOf('/subscribe.php') === 0 && getUrlParameter('result') === 'success') { fbq('track', 'Lead', {}); } // Lead events end

// Registration events start -- only fire if the shopper registers an account if (pathName.indexOf("https://atstacticalgear.com/login.php") === 0 && getUrlParameter('action') === 'account_created') { fbq('track', 'CompleteRegistration', {}); } // Registration events end

// Checkout events start -- only fire if the shopper lands on a /checkout* page if (pathName === '/checkout.php' || /^/(embedded-)?checkout$/.test(pathName)) { window.sessionStorage.setItem('fb_conversion_key_', 'true');

if (getUrlParameter('action') === 'process_payment') { fbq('track', 'AddPaymentInfo'); } else { fbq('track', 'InitiateCheckout'); } } // Checkout events end

function getUniqueProductIdsOnPage() { return Array.prototype.reduce.call(document.querySelectorAll('[data-product], [data-product-id]'), function(acc, obj) { var productId = obj.getAttribute('data-product') || obj.getAttribute('data-product-id');

if (!productIdMap[productId]) { productIdMap[productId] = true; acc.push(productId); }

return acc; }, []); }

function getUrlParameter(name) { var cleanName = name.replace(/[[]/, '[').replace(/[]]/, ']'); var regex = new RegExp('[?&]' + cleanName + '=([^&#]*)'); var results = regex.exec(window.location.search); return results === null ? '' : decodeURIComponent(results[1].replace(/+/g, ' ')); } }



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *