Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function getCookie(cname) {
- var name = cname + "=";
- var ca = document.cookie.split(';');
- for(var i = 0; i <ca.length; i++) {
- var c = ca[i];
- while (c.charAt(0)==' ') {
- c = c.substring(1);
- }
- if (c.indexOf(name) == 0) {
- return c.substring(name.length,c.length);
- }
- }
- return "";
- }
- $('span:contains("Continue to Next Step")').click(function(){
- window._ssstats = window._ssstats || [];
- _ssstats.push([
- 'configure', {
- accountId: '497517'
- }
- ]);
- _ssstats.push(['identify', $('#checkout_email').val(), {
- 'first_name': $('#checkout_shipping_address_first_name').val(),
- 'last_name': $('#checkout_shipping_address_last_name').val()
- }]);
- _ssstats.push([ 'publish', 'checkout page visit', {
- Items: getCookie('cartArray'),
- subtotal: $('.payment-due__price').text().split('$')[1].trim()
- }
- ]);
- });
- </script>
- <script src="//cdn.statstrk01.com/assets/javascripts/sdk2.js" async></script>
Add Comment
Please, Sign In to add comment