Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /home/jackjohn/public_html/cgi-bin/sc/templates/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/jackjohn/public_html/cgi-bin/sc/templates/includes/GTM.sst
<script>
function productClick(product) {[-- IF VAR.GTM --]  dataLayer.push({'event': 'eec.impressionClick','ecommerce': {'click': {'actionField': {'list': ''},'products': [{'name': ss_jQuery(product).html(),'id': ss_jQuery(product).data('id'),'price': ss_jQuery(product).siblings('.product-price').find('.actual-price').html(),'position': ss_jQuery(product).data('position')}]}},'eventCallback': function() {[-- END_IF --]document.location = product.href();[-- IF VAR.GTM --]}});[-- END_IF --]}
function addClick(product,varianttype) {
[-- IF VAR.GTM --]var variant = "";var variants = [];if (varianttype == "subselect") {var variant = ss_jQuery(product+" .product-options select").val()}else if (varianttype == "subradio" || varianttype == "subcheckbox") {ss_jQuery(product+ " .subs input[name='itemnum']:checked").each(function(){variants.push(ss_jQuery(this).val())});variant=variants}else if (varianttype == "options") {ss_jQuery(product + " .product-options select").each(function(){variants.push(ss_jQuery(this).val())});variant=variants}else if (varianttype == "subupselloptions") {ss_jQuery(product + " .product-options select").each(function(){variants.push(ss_jQuery(this).val())});variant=variants};var addedproducts = [];addedproducts.push({id: ss_jQuery(product).data('id'),name: ss_jQuery(product).find('.product-name').html(),category: categorylist,brand: ss_jQuery(product).find('.product-brand').html(),variant: variant,quantity: ss_jQuery(product).find('.product-quantity').val()});if (varianttype=="subupselloptions"||varianttype=="subupsell"){ss_jQuery(product + " .subs input[name='itemnum']:checked").each(function(){addedproducts.push({id: ss_jQuery(this).data('id'),name: ss_jQuery(this).parent().find(".sub-name").html()});});};dataLayer.push({event: 'eec.add',ecommerce: {add: {actionField: {list: actionfieldlist},products: addedproducts}}});[-- END_IF --]
  return true;
}
</script>
[-- IF VAR.GTM --]<!-- Google Tag Manager --><script>dataLayer = [];</script>[-- END_IF --]
<script>
[-- IF VAR.GTM --]
  [-- IF VAR.Type "cart" --]
  gtm_products = [];for (i = 0; i < number_products; i++) {gtm_products.push({'name': ss_name[i],'id': ss_sku[i],'price': ss_price[i],'quantity': ss_quantity[i]});}
    [-- IF VAR.SubType "shoppingcart" --]dataLayer.push({event: 'eec.checkout',ecommerce: {checkout: {actionField: {step: 1},products: gtm_products}}});
    [-- ELSE_IF VAR.SubType "checkout" --]if (typeof ss_paytype === 'undefined') {var ss_paytype = ss_jQuery(".payment_hdr").html();};dataLayer.push({event: 'eec.checkout_option',ecommerce: {checkout: {actionField: {step: 2,option: ss_paytype}}}});
    [-- ELSE_IF VAR.SubType "confirmation" --]if (typeof ss_paytype === 'undefined') {var ss_paytype = ss_jQuery(".payment_hdr").html();};dataLayer.push({event: 'eec.checkout_confirm',ecommerce: {checkout: {actionField: {step: 3,option: ss_paytype}}}});
    [-- ELSE_IF VAR.SubType "thankyou" --]if (typeof ss_coupon_name === 'undefined') {var ss_coupon_name = "no coupon";};dataLayer.push({event: 'eec.purchase',ecommerce: {currencyCode: 'USD',purchase: {actionField: {id: '[-- ThankYouOrderNumber --]',revenue: '[-- CART.Total RAW_NUMBER --]',tax: '[-- CART.TaxAmount RAW_NUMBER --]',shipping: '[-- CART.ShippingAmount RAW_NUMBER --]',coupon: ss_coupon_name,},products: gtm_products}}},{event: 'eec.checkout_complete',ecommerce: {checkout: {actionField: {step: 4,option: ss_paytype,affiliation: 'ShopSite Store'}}}});
    [-- END_IF --]
  [-- ELSE_IF VAR.Type "page" --]dataLayer = dataLayer || [];gtm_productimpressions = [];for (i = 0; i < [-- IF PAGE.ProductsPerPage NE 0 --][-- PAGE.ProductsPerPage --][-- ELSE --][-- PAGE.NumProducts --][-- END_IF --]; i++) {gtm_productimpressions.push({id: document.getElementsByClassName('product-name')[i].innerHTML,name: document.getElementsByClassName('product-name')[i].innerHTML,list: '[-- PAGE.Name REMOVE_HTML --]',position: i});};dataLayer.push({event: 'eec.impressionView',ecommerce: {impressions: gtm_productimpressions}});
  [-- ELSE_IF VAR.Type "moreinfo" --]
  if (typeof actionfieldlist === 'undefined') {var actionfieldlist = "[-- VAR.PageLinkName --]";}
  if (typeof breadcrumblist === 'undefined') {var breadcrumblist = (actionfieldlist.toLowerCase()).replace(/\s/g , "-");}
  dataLayer.push({event: 'eec.detail',ecommerce: {detail: {actionField: {list: actionfieldlist},products: [{[-- IF PRODUCT.Sku --]'id':'[-- PRODUCT.Sku --]',[-- END_IF --]name: '[-- PRODUCT.Name REMOVE_HTML --]',price:'[-- IF PRODUCT.SaleAmount --][-- PRODUCT.SaleAmount RAW_NUMBER --][-- ELSE --][-- PRODUCT.Price RAW_NUMBER --][-- END_IF --]',[-- IF PRODUCT.Brand --]brand:'[-- PRODUCT.Brand --]',[-- END_IF --]category: categorylist,}]}}});
  [-- END_IF --]
[-- ELSE --]
  [-- IF VAR.Type "moreinfo" --]
    if (typeof actionfieldlist === 'undefined') {var actionfieldlist = "[-- VAR.PageLinkName --]";}
    if (typeof breadcrumblist === 'undefined') {var breadcrumblist = (actionfieldlist.toLowerCase()).replace(/\s/g , "-");}
  [-- END_IF --]
[-- END_IF --]
</script>
#
[-- IF VAR.GTM --]<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','[-- VAR.GTM --]');</script><!-- End Google Tag Manager -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=[-- VAR.GTM --]" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->[-- END_IF --]

haha - 2025