{"_id":"@blacksquareca/segment-shopify-checkout","_rev":"1-ab9644928e2d78d433af4b3d46c4f94f","name":"@blacksquareca/segment-shopify-checkout","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@blacksquareca/segment-shopify-checkout","description":"Segment ecommerce checkout tracking for shopify","version":"1.0.1","author":{"name":"hello@blacksquare.io"},"license":"MIT","main":"./lib/cjs/index.js","module":"./lib/es/index.js","unpkg":"./lib/segment-checkout.umd.min.js","typings":"./lib/cjs/index.d.ts","repository":{"type":"git","url":"@blacksquareca/shopify-scripts"},"sideEffects":true,"scripts":{"prepare":"npm run build","build":"make","postbuild":"rollup -c","predeploy":"npm run build","deploy":"npm publish","test":"jest --config ../../jest.config.js --testPathPattern packages/segment-checkout"},"publishConfig":{"access":"public"},"devDependencies":{"@types/jest":"^29.2.2","@types/mocha":"^10.0.0","@types/segment-analytics":"^0.0.34","jest-environment-jsdom":"^26.3.0","rollup":"^2.0.0","typescript":"^4.0.3"},"dependencies":{"tslib":"^2.0.0"},"gitHead":"eda6eebed606fe8a9c372381003e96b18b1d690e","_id":"@blacksquareca/segment-shopify-checkout@1.0.1","_nodeVersion":"18.9.0","_npmVersion":"lerna/6.0.3/node@v18.9.0+arm64 (darwin)","dist":{"integrity":"sha512-GJdxIyxwpoq9OJmA28yG67wuG9l6K6qyKvfjNCx/PisNUxOxzISt4vPZ9lNYRKNmkuR9+uHJZ79GaZHUAxsqxw==","shasum":"7e62536853f1bb339ee21d57574bdfa031cd4e3a","tarball":"https://registry.npmjs.org/@blacksquareca/segment-shopify-checkout/-/segment-shopify-checkout-1.0.1.tgz","fileCount":19,"unpackedSize":37507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF4lQlwuAYOncQUhD48h81HVcbUQR5TFYXYzvKV/Wq4qAiEAqwVie++BVneTc2HGCDK9LS6KsJm7PkZbjKWw0VY8Law="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbXalACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqs2hAAimp+/QHGaeq9UEIdj3gf85YNCLX9nL0H9RXZ9bFVnYyq5GYw\r\nkFszh3CoHlgk4ntra4HHverel9Ff1Ne56700gqDSWDVHR6frBbe5c10N/M8+\r\nbHaZS73pZaWxgcUzxv3Y0H4WYUfe80xFuez17kKfH2jnaXa6Nz3SMYbfug7w\r\nOwkjJl893pTGRVwXDN3WY2mMoJmxL3zfoWmQuy4yAatNU+JJ5iRffkzqxUTY\r\njZ/oIGb3h01iBILgLKZdx0SBAGVSOlt5FZpfWHHxj+xKYe5SrH5463nE6dsQ\r\n/co1QdRCb08Xwmb+oiOZ+2Gu7AD20sht/gVjA4BZW3k3jupYEHobUIdTemts\r\n7YDu4RMwOpYI3tUlewZTRoZcMIVD2eyaix29NCVAr8yNgXQ9FSgvKr1z9sLQ\r\nQFvBi8jTT1d+iycofq/Tqxd75ks+5JUnLryNSaUO7cRxDuEeVTvLdXP9VQKn\r\niAmLS7tsia9MmulZ8r1bfpya6OD9wXJvHV8KSjWwWSYrAtnsb4oZlixx0Q3r\r\nf0jdOqi823tyROeiwamOCdVWy7+Qbh8J1CZH5FeyeCx1pbd2njGSPTmLHTH4\r\nMTFU5rfLy8bgUBLIH/dL/HO5xr6ukN9vFNn+NUseP0hCmuVF7Eq1V8U6HEL2\r\nCYzRgfmkKYilhozuo4r8ThkYi533VjmADQE=\r\n=LWFi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"johncarpenter","email":"john.carpenter@blacksquare.io"},"directories":{},"maintainers":[{"name":"jiadonghu-bsq","email":"jiadong.hu@blacksquare.io"},{"name":"johncarpenter","email":"john.carpenter@blacksquare.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/segment-shopify-checkout_1.0.1_1668118181005_0.5747395083429989"},"_hasShrinkwrap":false},"1.0.2":{"name":"@blacksquareca/segment-shopify-checkout","description":"Segment ecommerce checkout tracking for shopify","version":"1.0.2","author":{"name":"hello@blacksquare.io"},"license":"MIT","main":"./lib/cjs/index.js","module":"./lib/es/index.js","unpkg":"./lib/segment-checkout.umd.min.js","typings":"./lib/cjs/index.d.ts","repository":{"type":"git","url":"@blacksquareca/shopify-scripts"},"sideEffects":true,"scripts":{"prepare":"npm run build","build":"make","postbuild":"rollup -c","predeploy":"npm run build","deploy":"npm publish","test":"jest --config ../../jest.config.js --testPathPattern packages/segment-checkout"},"publishConfig":{"access":"public"},"devDependencies":{"@types/jest":"^29.2.2","@types/mocha":"^10.0.0","@types/segment-analytics":"^0.0.34","jest-environment-jsdom":"^26.3.0","rollup":"^2.0.0","typescript":"^4.0.3"},"dependencies":{"tslib":"^2.0.0"},"gitHead":"a938ab1d1ef55428599e54540615426dfb091b46","_id":"@blacksquareca/segment-shopify-checkout@1.0.2","_nodeVersion":"18.9.0","_npmVersion":"lerna/6.0.3/node@v18.9.0+arm64 (darwin)","dist":{"integrity":"sha512-XcitszhM07K0L+ROUR5ikfmf/H9Xhc0M7x98oF+WXKoihPGaIOuAmHf/Rc+fkbZgjhI4nYk/kd2aTp8R4QWFoQ==","shasum":"3305a5817dd9bb4e93e5d89ca2c28cf208dba4f4","tarball":"https://registry.npmjs.org/@blacksquareca/segment-shopify-checkout/-/segment-shopify-checkout-1.0.2.tgz","fileCount":19,"unpackedSize":37832,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCY88JKRpnAqrnZGhFo5wB/4+nRMdbLpFP8Gzl07n2mqwIgM9vzeuAvI75+LweXv1hwMAfyWzmK3DZ0cL+s5V1YxrY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbXscACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBvQ//fJutMbNntzHzyJriD3Y0HpoHWwhvcH9knE8D2iSrGnBVUvTJ\r\n9XkLnUKcJ3vzAFPV6fSR7HRqHLg2c+db/ZJyr1PFT5IHvcVZamvBlHLF7wUU\r\n+ljcyIkyfM+W41wWyAHGBmKj9lqA2Mf/dzrq7ZiHYmVB+fdyqEy5/YCsoDoE\r\nHrOcrRngfG4NpISR7mh8+927lygDfLlC8F4iyXuus3qK/LR0VLrQVojgTKf6\r\nUFdiv1jddSq5dT4UJeKBBNJvZolFeuo7oHiHsmLanussZ4gVEyoA754qTeW8\r\nw8bw9H3jFTH1VsWY1zeUOwLwE6n2wYC31wYK1B0LcB4TXhXSCUk3PBvmXcos\r\nsOH8ah44CbyFPe4m/U/TW1KnD6yZxjcqI3A+LwKkPvVPUExQnl8R7exUuvOK\r\ngIgLg/gX5mtaRUF0M4CvDJ2hhgaTnMZy5iEwMGHQTckb2rzS4ODUTn6fdovY\r\nXzK4z4CPNqiyedxcbajmrKS3yArchRkeLI/LtCm87600ggfGqd5y0iu91DBJ\r\nLPGb+JWV1OuliyuOtzGsk4hPW4ViSTIGmtawQbi+mMWgx4TE5K6Tki48kRoe\r\nuAfSCQ8IK+nNFcdgW0OYl4F+fbtxxVz40249llpkt3B+ndnw9ytfkdw1VO30\r\nMQp/IxEVE1agg9rDJw/nJIHtDjaIOlaZeXo=\r\n=nLgT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"johncarpenter","email":"john.carpenter@blacksquare.io"},"directories":{},"maintainers":[{"name":"jiadonghu-bsq","email":"jiadong.hu@blacksquare.io"},{"name":"johncarpenter","email":"john.carpenter@blacksquare.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/segment-shopify-checkout_1.0.2_1668119324729_0.6164283029485738"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-10T22:09:40.900Z","1.0.1":"2022-11-10T22:09:41.157Z","modified":"2022-11-10T22:28:44.992Z","1.0.2":"2022-11-10T22:28:44.863Z"},"maintainers":[{"name":"jiadonghu-bsq","email":"jiadong.hu@blacksquare.io"},{"name":"johncarpenter","email":"john.carpenter@blacksquare.io"}],"description":"Segment ecommerce checkout tracking for shopify","repository":{"type":"git","url":"@blacksquareca/shopify-scripts"},"author":{"name":"hello@blacksquare.io"},"license":"MIT","readme":"# @blacksquareca/segment-shopify-checkout\nForked from: https://github.com/broadlume/feathers\n\n\nTracks end of funnel E-Commerce data for your Shopify checkout.\n\nGather in-depth analytics about product information, checkout steps viewed, and purchases.\n\nThis package utilizes Segment.io to allow you to send data to any number of destinations including Google Analytics, Google Tag Manager and more.\n\n## Steps to install\n\n1.  Go to your Shopify Checkout Theme and open the \"Edit Code\" dashboard. Open the `checkout.liquid` template file and add your Segment.io script within the `<head>` tag like below:\n\n```html\n<head>\n  <script type=\"text/javascript\">\n    //  insert your segment io script here\n  </script>\n</head>\n```\n\n2. Go to your Shopify Checkout Theme and open the \"Edit Code\" dashboard. Open the `checkout.liquid` template file and add the following to the end of the `<body>` tag.\n\n```html\n<div id=\"INSIGHT_CHECKOUT_TRACKING\" style=\"display:none\">\n  <div\n    id=\"checkout-data\"\n    data-checkout-id=\"{{checkout.id}}\"\n    data-order-number=\"{{checkout.order_number}}\"\n    data-total-price=\"{{checkout.total_price}}\"\n    data-currency=\"{{checkout.currency}}\"\n  ></div>\n  {% for item in checkout.line_items %}\n  <div\n    id=\"product-item-for-analytics-dataset\"\n    data-name=\"{{item.title}}\"\n    data-sku=\"{{item.sku}}\"\n    data-price=\"{{item.price}}\"\n    data-quantity=\"{{item.quantity}}\"\n    data-url=\"{{item.url}}\"\n  ></div>\n  {% endfor %}\n</div>\n```\n\n3. Then add the following script to import this package and automatically send `analytic.track()` events populated with checkout data.\n\n```html\n<html>\n  <body>\n    <!-- ...body contents here -->\n  </body>\n</html>\n\n<!-- Add this script in after the </html> -->\n<script src=\"https://unpkg.com/@blacksquareca/segment-shopify-checkout\"></script>\n```\n\nThat's it!\n","readmeFilename":"readme.md"}