Created
October 8, 2015 18:18
-
-
Save ryangopole/960dd425489878b6487f to your computer and use it in GitHub Desktop.
Checkout After tracking_code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html class="no-js multi-step mac chrome desktop page--no-banner page--logo-main page--thank-you page--hidden-breadcrumbs"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, height=device-height, minimum-scale=1.0, user-scalable=0"> | |
<title>GoPole - Thank you</title> | |
<!--[if lte IE 9]> | |
<link rel="stylesheet" media="all" href="//cdn.shopify.com/app/services/3709669/assets/7679013/checkout_stylesheet/v1-ltr-cfd6ec427203887296bef880cc082158-17996702054808910567/oldie" /> | |
<![endif]--> | |
<!--[if gt IE 9]><!--> | |
<link rel="stylesheet" media="all" href="//cdn.shopify.com/app/services/3709669/assets/7679013/checkout_stylesheet/v1-ltr-cfd6ec427203887296bef880cc082158-17996702054808910567" /> | |
<!--<![endif]--> | |
<link rel="stylesheet" media="all" href="//cdn.shopify.com/s/files/1/0370/9669/t/26/assets/checkout.scss.css?17996702054808910567" /> | |
<!--[if gte IE 8]><!--> | |
<script src="//cdn.shopify.com/app/services/3709669/javascripts/countries/7679013/en/countries-c997c2b3c6dbfdcdba1c32c99478034cc2068056-0.js"></script> | |
<script src="//cdn.shopify.com/s/assets/checkout_v1-acedc1e56291d4a999cd893e664d74cf.js"></script> | |
<!--<![endif]--> | |
<script type="text/javascript"> | |
if (window.opener) { | |
window.opener.postMessage(JSON.stringify({"current_checkout_page": "\/checkout\/thank_you"}), "*"); | |
} | |
if (typeof Shopify == 'undefined') { Shopify = {}; } | |
Shopify.Checkout = {} | |
Shopify.Checkout.page = "thank_you"; | |
Shopify.Checkout.step = "thank_you"; | |
</script> | |
<script> | |
//<![CDATA[ | |
var Shopify = Shopify || {}; | |
Shopify.shop = "gopole.myshopify.com"; | |
Shopify.theme = {"name":"GoPole","id":7679013,"theme_store_id":628,"role":"main"}; | |
//]]> | |
</script> | |
<script> | |
//<![CDATA[ | |
Shopify.checkout = {"created_at":"2015-10-08T14:16:55-04:00","currency":"USD","customer_id":221840229,"email":"[email protected]","location_id":null,"order_id":1760002689,"requires_shipping":true,"reservation_time":null,"source_name":"checkout_next","source_identifier":null,"source_url":null,"taxes_included":false,"token":"8631fe6474f1cdee1fc6fdd11bdbe4ab","updated_at":"2015-10-08T14:17:23-04:00","payment_due":"0.00","payment_url":"https:\/\/us-west-2-deposit.cs.shopify.com\/sessions","reservation_time_left":0,"subtotal_price":"0.00","total_price":"0.00","total_tax":"0.00","tax_lines":[],"line_items":[{"id":"3cfc684fdbe1518d","product_id":307757197,"variant_id":734205417,"sku":"GPE-10","vendor":"GoPole","title":"Evo","variant_title":"","taxable":true,"requires_shipping":true,"price":"49.99","compare_at_price":null,"line_price":"49.99","properties":{},"quantity":1,"grams":399,"fulfillment_service":"dcl-fulfillment"},{"id":"e284518402868fa7","product_id":236361117,"variant_id":535910993,"sku":"GPR-9-1","vendor":"GoPole","title":"Reach","variant_title":"","taxable":true,"requires_shipping":true,"price":"54.99","compare_at_price":null,"line_price":"54.99","properties":{},"quantity":1,"grams":426,"fulfillment_service":"dcl-fulfillment"},{"id":"f87d6f58572cae00","product_id":307537521,"variant_id":733508645,"sku":"GPG-12-1","vendor":"GoPole","title":"Grenade Grip","variant_title":"","taxable":true,"requires_shipping":true,"price":"24.99","compare_at_price":null,"line_price":"24.99","properties":{},"quantity":1,"grams":236,"fulfillment_service":"dcl-fulfillment"},{"id":"68a65d3dfcd27328","product_id":291609877,"variant_id":688217657,"sku":"GPB-11","vendor":"GoPole","title":"Bobber","variant_title":"","taxable":true,"requires_shipping":true,"price":"29.99","compare_at_price":null,"line_price":"59.98","properties":{},"quantity":2,"grams":263,"fulfillment_service":"dcl-fulfillment"}],"gift_cards":[],"shipping_rate":{"id":"shopify-Saver%20Shipping%20Plus%20(1-7%20Business%20Days)-0.00","price":"0.00","title":"Saver Shipping Plus (1-7 Business Days)"},"shipping_address":{"first_name":"Ryan","last_name":"Vosburg","phone":"18006671263","company":"GoPole","address1":"210 West Parkway #9","address2":"","city":"Pompton Plains","province":"New Jersey","province_code":"NJ","country":"United States","country_code":"US","zip":"07444"},"credit_card":null,"billing_address":null,"discount":{"code":"DCLTEST","amount":"189.95","applicable":true,"reason":null}} | |
//]]> | |
</script> | |
<script> | |
//<![CDATA[ | |
(function() { | |
function asyncLoad() { | |
var urls = ["https:\/\/d1uisejozjzupo.cloudfront.net\/pc.js?shop=gopole.myshopify.com","\/\/cdn.shopify.com\/fb-commerce\/tracking_pixels\/1625066387709979.js?shop=gopole.myshopify.com","\/\/cdn.shopify.com\/fb-commerce\/conversion_pixels\/6023785643173.js?shop=gopole.myshopify.com"]; | |
for (var i = 0; i < urls.length; i++) { | |
var s = document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.async = true; | |
s.src = urls[i]; | |
var x = document.getElementsByTagName('script')[0]; | |
x.parentNode.insertBefore(s, x); | |
} | |
} | |
window.attachEvent ? window.attachEvent('onload', asyncLoad) : window.addEventListener('load', asyncLoad, false); | |
})(); | |
//]]> | |
</script> | |
<script id="__st"> | |
//<![CDATA[ | |
var __st={"a":3709669,"offset":-14400,"reqid":"d80730cd-abe9-433d-8be8-f92fe0fefe99","pageurl":"shop.gopole.com\/3709669\/checkouts\/8631fe6474f1cdee1fc6fdd11bdbe4ab\/thank_you","u":"c2fcc24b0d7f","t":"checkout","offsite":1,"cid":221840229}; | |
//]]> | |
</script> | |
<script> | |
//<![CDATA[ | |
(function() { | |
var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; | |
s.src = '//cdn.shopify.com/s/javascripts/shopify_stats.js?v=6'; | |
var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); | |
})(); | |
//]]> | |
</script> | |
</head> | |
<body> | |
<div class="header"> | |
<div class="wrap"> | |
<div class="shop"> | |
<a href="https://shop.gopole.com"> | |
<h1 class="shop__name">GoPole</h1> | |
</a> | |
</div> | |
</div> | |
<i class="icon icon--lock"></i> | |
<div class="header__backdrop"></div> | |
</div> | |
<div role="main" id="main"> | |
<div class="wrap"> | |
<div id="checkout"> | |
<div class="section section--thank-you"> | |
<div class="icon icon--order-success svg"> | |
<svg xmlns="http://www.w3.org/2000/svg" width="72px" height="72px"> | |
<g fill="none" stroke="#8EC343" stroke-width="2"> | |
<circle cx="36" cy="36" r="35" style="stroke-dasharray:240px, 240px; stroke-dashoffset: 480px;"></circle> | |
<path d="M17.417,37.778l9.93,9.909l25.444-25.393" style="stroke-dasharray:50px, 50px; stroke-dashoffset: 0px;"></path> | |
</g> | |
</svg> | |
<img src="//cdn.shopify.com/s/assets/checkout/icons/check-25ed2c9a44fbe7538ae9123351578a26.png" alt="Check" /> | |
</div> | |
<h3>Thank you for your purchase!</h3> | |
<p>A confirmation email has been sent to [email protected] | |
<strong>Order #D20435</strong></p> | |
<a class="btn" href="https://shop.gopole.com">Continue shopping</a> | |
<p data-shown-if-js><a data-trigger-print href="#"><i class="icon icon--print"></i>Print receipt</a></p> | |
</div> | |
<div class="section" id="additional-content"> | |
<!-- Google Analytics eCommerce Tracking --> | |
<script> | |
ga('require', 'ecommerce'); | |
ga('ecommerce:addTransaction', { | |
'id': '20435', // Transaction ID. Required. | |
'revenue': '0.00', // Grand Total. | |
'shipping': '0.00', // Shipping. | |
'tax': '0.00' // Tax. | |
}); | |
ga('ecommerce:addItem', { | |
'id': '3cfc684fdbe1518d', // Transaction ID. Required. | |
'name': 'Evo', // Product name. Required. | |
'sku': 'GPE-10', // SKU/code. | |
'category': '', // Category or variation. | |
'price': '49.99', // Unit price. | |
'quantity': '1' // Quantity. | |
}); | |
ga('ecommerce:addItem', { | |
'id': 'e284518402868fa7', // Transaction ID. Required. | |
'name': 'Reach', // Product name. Required. | |
'sku': 'GPR-9-1', // SKU/code. | |
'category': '', // Category or variation. | |
'price': '54.99', // Unit price. | |
'quantity': '1' // Quantity. | |
}); | |
ga('ecommerce:addItem', { | |
'id': 'f87d6f58572cae00', // Transaction ID. Required. | |
'name': 'Grenade Grip', // Product name. Required. | |
'sku': 'GPG-12-1', // SKU/code. | |
'category': '', // Category or variation. | |
'price': '24.99', // Unit price. | |
'quantity': '1' // Quantity. | |
}); | |
ga('ecommerce:addItem', { | |
'id': '68a65d3dfcd27328', // Transaction ID. Required. | |
'name': 'Bobber', // Product name. Required. | |
'sku': 'GPB-11', // SKU/code. | |
'category': '', // Category or variation. | |
'price': '29.99', // Unit price. | |
'quantity': '2' // Quantity. | |
}); | |
</script> | |
<!-- Google Code for Sale Conversion Page --> | |
<img height="1" width="1" alt="" src="//www.googleadservices.com/pagead/conversion/982281052/imp.gif?value=0.00¤cy_code=USD&label=CqAtCNyn4QMQ3Nax1AM&guid=ON&script=0"/> | |
<!-- Adroll Pixel --> | |
<script type="text/javascript"> | |
adroll_adv_id = "KEYHOXPV35CITKD7ZEQ2JJ"; | |
adroll_pix_id = "LMWQHZIJTBATVOMCTCDKL2"; | |
(function () { | |
var oldonload = window.onload; | |
window.onload = function(){ | |
__adroll_loaded=true; | |
var scr = document.createElement("script"); | |
var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com"); | |
scr.setAttribute('async', 'true'); | |
scr.type = "text/javascript"; | |
scr.src = host + "/j/roundtrip.js"; | |
((document.getElementsByTagName('head') || [null])[0] || | |
document.getElementsByTagName('script')[0].parentNode).appendChild(scr); | |
if(oldonload){oldonload()}}; | |
}()); | |
</script> | |
<script type="text/javascript"> | |
var conversion_value = '0'; | |
conversion_value = conversion_value / 100; | |
adroll_conversion_value_in_dollars = conversion_value; | |
adroll_custom_data = { | |
"ORDER_ID": "4848245761", | |
"USER_ID": "Ryan Vosburg" | |
}; | |
</script> | |
<!-- Facebook Conversion Code for conversion pixel from fb --> | |
<script>(function() { | |
var _fbq = window._fbq || (window._fbq = []); | |
if (!_fbq.loaded) { | |
var fbds = document.createElement('script'); | |
fbds.async = true; | |
fbds.src = '//connect.facebook.net/en_US/fbds.js'; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(fbds, s); | |
_fbq.loaded = true; | |
} | |
})(); | |
window._fbq = window._fbq || []; | |
window._fbq.push(['track', '6009003820565', {'value':'0.00','currency':'USD'}]); | |
</script> | |
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6009003820565&cd[value]=0.00&cd[currency]=USD&noscript=1" /></noscript> | |
<script src="//platform.twitter.com/oct.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
twttr.conversion.trackPid('l58de');</script> | |
<noscript> | |
<img height="1" width="1" style="display:none;" alt="" src="https://analytics.twitter.com/i/adsct?txn_id=l58de&p_id=Twitter" /> | |
<img height="1" width="1" style="display:none;" alt="" src="//t.co/i/adsct?txn_id=l58de&p_id=Twitter" /></noscript> | |
<!-- Bazaarvoice Pixel --> | |
<script type="text/javascript" | |
src="//display.ugc.bazaarvoice.com/static/gopole/en_US/bvapi.js"> | |
</script> | |
<!-- tagging code --> | |
<script type="text/javascript"> | |
$BV.SI.trackTransactionPageView({ | |
"orderId" : "4848245761", | |
"tax" : "0.00", | |
"shipping" : "0.00", | |
"total" : "0.00", | |
"city" : "Pompton Plains", | |
"state" : "New Jersey", | |
"country" : "United States", | |
"currency" : "USD", | |
"items" : [ | |
{ | |
"sku" : "307757197", | |
"name" : "Evo", | |
"price" : "49.99", | |
"quantity" : "1", | |
"category" : "Mounts", | |
"imageURL" : "http://cdn.shopify.com/s/files/1/0370/9669/products/HERO-4-EVO-_Retracted_Remote_medium.png?v=1436815848" | |
}, | |
{ | |
"sku" : "236361117", | |
"name" : "Reach", | |
"price" : "54.99", | |
"quantity" : "1", | |
"category" : "Mounts", | |
"imageURL" : "http://cdn.shopify.com/s/files/1/0370/9669/products/HERO-4-REACH-_Retracted_Remote_medium.png?v=1436815828" | |
}, | |
{ | |
"sku" : "307537521", | |
"name" : "Grenade Grip", | |
"price" : "24.99", | |
"quantity" : "1", | |
"category" : "Mounts", | |
"imageURL" : "http://cdn.shopify.com/s/files/1/0370/9669/products/GRENADE_H4_Session_Front_97ee68c5-3969-41eb-90b4-2951a688fc95_medium.png?v=1436814999" | |
}, | |
{ | |
"sku" : "291609877", | |
"name" : "Bobber", | |
"price" : "29.99", | |
"quantity" : "2", | |
"category" : "Mounts", | |
"imageURL" : "http://cdn.shopify.com/s/files/1/0370/9669/products/Hero-4-Bobber_Front_3K2_medium.png?v=1436815869" | |
} | |
], | |
"email" : "[email protected]", | |
"locale" : "en_US", | |
"nickname" : "Ryan Vosburg" | |
}); | |
</script> | |
</div> | |
<div class="section"> | |
<div class="section__header"> | |
<h3>Shipping address</h3> | |
</div> | |
<div class="section__summary"> | |
<p class="address"> | |
Ryan Vosburg<br>GoPole<br>210 West Parkway #9<br>Pompton Plains, NJ, 07444<br>United States<br>18006671263 | |
</p> | |
</div> | |
</div> | |
</div> | |
<div class="order-summary"> | |
<div class="order-summary__section order-summary__section--header"> | |
<h3>Order summary</h3> | |
</div> | |
<div class="summary-body"> | |
<div class="order-summary__section order-summary__section--product-list"> | |
<ul class="product-list"> | |
<li class="product product--has-image"> | |
<img class="product__image" alt="Evo" src="//cdn.shopify.com/s/files/1/0370/9669/products/HERO-4-EVO-_Retracted_Remote_150x150_cropped.png?17996702054808910567" /> | |
<div class="product__info"> | |
<span class="product__info__name"><strong>Evo</strong> × 1</span> | |
<span class="product__info__description"></span> | |
</div> | |
<strong class="product__price">$ 49.99</strong> | |
</li> | |
<li class="product product--has-image"> | |
<img class="product__image" alt="Reach" src="//cdn.shopify.com/s/files/1/0370/9669/products/HERO-4-REACH-_Retracted_Remote_150x150_cropped.png?17996702054808910567" /> | |
<div class="product__info"> | |
<span class="product__info__name"><strong>Reach</strong> × 1</span> | |
<span class="product__info__description"></span> | |
</div> | |
<strong class="product__price">$ 54.99</strong> | |
</li> | |
<li class="product product--has-image"> | |
<img class="product__image" alt="Grenade Grip" src="//cdn.shopify.com/s/files/1/0370/9669/products/GRENADE_H4_Session_Front_97ee68c5-3969-41eb-90b4-2951a688fc95_150x150_cropped.png?17996702054808910567" /> | |
<div class="product__info"> | |
<span class="product__info__name"><strong>Grenade Grip</strong> × 1</span> | |
<span class="product__info__description"></span> | |
</div> | |
<strong class="product__price">$ 24.99</strong> | |
</li> | |
<li class="product product--has-image"> | |
<img class="product__image" alt="Bobber" src="//cdn.shopify.com/s/files/1/0370/9669/products/Hero-4-Bobber_Front_3K2_150x150_cropped.png?17996702054808910567" /> | |
<div class="product__info"> | |
<span class="product__info__name"><strong>Bobber</strong> × 2</span> | |
<span class="product__info__description"></span> | |
</div> | |
<strong class="product__price">$ 59.98</strong> | |
</li> | |
</ul> | |
</div> | |
<div class="order-summary__section" id="discount"> | |
<form class="edit_checkout" id="edit_checkout_4848245761" action="/3709669/checkouts/8631fe6474f1cdee1fc6fdd11bdbe4ab" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="_method" value="put" /><input type="hidden" name="authenticity_token" value="Y4s3SZEZXsqZibSyl8ikrjrrbPtM8L5Ry85iULSEtAJ0FpteXh+7mgrHICbfs0han/V6sFD2jfKka24bvuxuSw==" /> | |
<input type="hidden" name="current_step" id="current_step" value="thank_you" /> | |
<div class="applied-discount success"> | |
<div data-checkout-applied-discount-icon-target> | |
<i class="applied-discount__status"></i> | |
</div> | |
<span class="applied-discount__code"> | |
Discount | |
</span> | |
<strong class="applied-discount__price">- $ 189.95</strong> | |
</div> | |
</form> </div> | |
<div class="order-summary__section" data-order-summary-section="payment-lines"> | |
<div class="total-line total-line--subtotal"> | |
<span class="total-line__name"> | |
Subtotal | |
</span> | |
<strong class="total-line__price" data-checkout-subtotal-price-target>$ 0.00</strong> | |
</div> | |
<div class="total-line total-line--shipping"> | |
<span class="total-line__name"> | |
Shipping | |
</span> | |
<strong class="total-line__price" data-checkout-total-shipping-target>Free</strong> | |
</div> | |
<div class="total-line total-line--taxes"> | |
<span class="total-line__name"> | |
Taxes | |
</span> | |
<strong class="total-line__price" data-checkout-total-taxes-target>$ 0.00</strong> | |
</div> | |
<div class="total-line total-line--total"> | |
<span class="total-line__name"> | |
Total | |
</span> | |
<strong class="total-line__price" data-checkout-total-price-target>Free</strong> | |
</div> | |
</div> | |
<div class="order-summary__section" data-order-summary-section="payment-due"> | |
<div class="payment-due-container"> | |
<span class="payment-due__label"> | |
Paid | |
</span> | |
<div class="payment-due"> | |
<div class="payment-due__price" data-checkout-payment-due-target>$ 0.00</div> | |
<div class="payment-due__currency">USD</div> | |
</div> | |
</div> | |
<span class="savings"> | |
After $ 189.95 in discounts | |
</span> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="footer"> | |
<div class="wrap"> | |
<p class="footer__copyright"> | |
All rights reserved GoPole | |
</p> | |
<ul class="footer__nav"> | |
<li class="footer__nav__item"> | |
<div class="modal policy" id="policy-1503769"> | |
<a href="#" class="modal__close">×</a> | |
<div class="wrap"> | |
<div class="policy-header"> | |
<a href="https://shop.gopole.com" class="policy-header__shop-name">GoPole</a> | |
<h2 class="policy-header__title"> | |
Refund policy | |
</h2> | |
<a data-shown-if-js data-trigger-print href="#" class="policy__print-link"> | |
<i class="icon icon--print"></i> | |
</a> | |
</div> | |
<div class="policy-body"> | |
<p>What is your return policy?</p> | |
<p>Our return policy is simple and straightforward. If you have purchased a product directly from GoPole, you may return it to us for a complete refund of the purchase price (not including shipping fees) as long as the product is in factory condition and returned within 30 days of purchase. Sorry, but we do not take back used or opened product.</p> | |
<p>Returns are only for orders placed on GoPole.com. If your order was placed elsewhere and you wish to initiate a return, please contact the original place of purchase.</p> | |
</div> | |
</div> | |
</div> | |
<a class="footer__nav__link" data-modal="policy-1503769" href="https://shop.gopole.com/3709669/policies/1503769">Refund policy</a> | |
</li> | |
<li class="footer__nav__item"> | |
<div class="modal policy" id="policy-1503773"> | |
<a href="#" class="modal__close">×</a> | |
<div class="wrap"> | |
<div class="policy-header"> | |
<a href="https://shop.gopole.com" class="policy-header__shop-name">GoPole</a> | |
<h2 class="policy-header__title"> | |
Terms of service | |
</h2> | |
<a data-shown-if-js data-trigger-print href="#" class="policy__print-link"> | |
<i class="icon icon--print"></i> | |
</a> | |
</div> | |
<div class="policy-body"> | |
<p><h4>Shipping Policy</h4></p> | |
<p>Orders placed before 2pm est Monday-Friday are shipped the same day. If you need an order by a certain date, please leave enough time for transit, or choose an expedited shipping option (especially around the holidays) <a href="http://support.gopole.com/hc/en-us/categories/200154210-Shipping-Returns">» More Info</a></p> | |
<p><hr /></p> | |
<p><h4>International Orders</h4></p> | |
<p>Import taxes & duties may also apply to your order upon being received in your country. For faster transit time and to save on import costs, items can also be purchased through a <a href="https://www.gopole.com/retailers">retailer in your country</a>.</p> | |
</div> | |
</div> | |
</div> | |
<a class="footer__nav__link" data-modal="policy-1503773" href="https://shop.gopole.com/3709669/policies/1503773">Terms of service</a> | |
</li> | |
</ul> | |
</div> | |
</div> | |
<script type="text/javascript" class="analytics"> | |
window.ShopifyAnalytics = window.ShopifyAnalytics || {}; | |
window.ShopifyAnalytics.meta = window.ShopifyAnalytics.meta || {}; | |
window.ShopifyAnalytics.meta.currency = 'USD'; | |
(window.gaDevIds=window.gaDevIds||[]).push('BwiEti'); | |
(function () { | |
var customDocumentWrite = function(content) { | |
var jquery = null; | |
if (window.jQuery) { | |
jquery = window.jQuery; | |
} else if (window.Checkout && window.Checkout.$) { | |
jquery = window.Checkout.$; | |
} | |
if (jquery) { | |
jquery('body').append(content); | |
} | |
}; | |
var analytics = document.createElement('script'); | |
var loaded = false; | |
var onload = function() { | |
if (loaded) return; | |
loaded = true; | |
window.ShopifyAnalytics.lib = window.analytics.noConflict(); | |
window.ShopifyAnalytics.lib.initialize({"Google Analytics":{"trackingId":"UA-29312386-1","domain":"auto","siteSpeedSampleRate":"10","enhancedEcommerce":false,"doubleClick":true,"includeSearch":true},"Trekkie":{"appName":"storefront","environment":"production","navigationTimingApiMeasurementsEnabled":true,"navigationTimingApiMeasurementsSampleRate":0.1,"defaultAttributes":{"shopId":3709669}}}); | |
window.ShopifyAnalytics.lib.page( | |
"Checkout - Receipt", | |
{"path":"\/checkout\/thank_you","search":"","url":"\/checkout\/thank_you"} | |
); | |
window.ShopifyAnalytics.lib.track( | |
"Completed Order", | |
{"id":"#D20435","total":"0.00","revenue":"0.00","shipping":"0.00","tax":"0.00","currency":"USD","products":[{"category":"Mounts","sku":"GPE-10","name":"Evo","price":"49.99","quantity":1,"brand":"GoPole","variant":""},{"category":"Mounts","sku":"GPR-9-1","name":"Reach","price":"54.99","quantity":1,"brand":"GoPole","variant":""},{"category":"Mounts","sku":"GPG-12-1","name":"Grenade Grip","price":"24.99","quantity":1,"brand":"GoPole","variant":""},{"category":"Mounts","sku":"GPB-11","name":"Bobber","price":"29.99","quantity":2,"brand":"GoPole","variant":""}],"coupon":"DCLTEST"} | |
); | |
window.ShopifyAnalytics.lib.ready(function() { | |
ga('require', 'linker'); | |
function addListener(element, type, callback) { | |
if (element.addEventListener) { | |
element.addEventListener(type, callback); | |
} | |
else if (element.attachEvent) { | |
element.attachEvent('on' + type, callback); | |
} | |
} | |
function decorate(event) { | |
event = event || window.event; | |
var target = event.target || event.srcElement; | |
if (target && (target.getAttribute('action') || target.getAttribute('href'))) { | |
ga(function (tracker) { | |
var linkerParam = tracker.get('linkerParam'); | |
document.cookie = '_shopify_ga=' + linkerParam + '; ' + 'path=/'; | |
}); | |
} | |
} | |
addListener(window, 'load', function(){ | |
for (var i=0; i < document.forms.length; i++) { | |
var action = document.forms[i].getAttribute('action'); | |
if(action && action.indexOf('/cart') >= 0) { | |
addListener(document.forms[i], 'submit', decorate); | |
} | |
} | |
for (var i=0; i < document.links.length; i++) { | |
var href = document.links[i].getAttribute('href'); | |
if(href && href.indexOf('/checkout') >= 0) { | |
addListener(document.links[i], 'click', decorate); | |
} | |
} | |
}); | |
var originalDocumentWrite = document.write; | |
document.write = customDocumentWrite; | |
try { } catch(e) {}; | |
document.write = originalDocumentWrite; | |
}); | |
} | |
analytics.onload = onload; | |
analytics.onreadystatechange = function() { | |
if (!/complete|loaded/.test(analytics.readyState)) return; | |
onload(); | |
} | |
analytics.async = true; | |
analytics.src = "https://cdn.shopify.com/s/javascripts/trekkie.storefront.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(analytics); | |
})(); | |
</script> | |
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-NF8H5X" | |
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | |
<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= | |
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
})(window,document,'script','dataLayer','GTM-NF8H5X');</script> | |
<script type="text/javascript" src="//cdn.shopify.com/s/files/1/0370/9669/t/26/assets/browserified.js?17996702054808910567"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment