Skip to content

codlp/oldest-shopify-stores-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Script - Oldest Shopify Stores

Context

On April 7th 2023, I initiated an Easter hunt to find the oldest still-running Shopify stores.

I shared a Google Sheet where we could all add the old stores that we found: https://docs.google.com/spreadsheets/d/1iG0bVFSuXs3PhYkrkYP4Lk3AakbNXxclYnA6rNzE0no/edit#gid=1574186361

80+ stores were added, along with their shopId so that we could see how old they were.

It was amazing to see all those ancient stores! Their layouts differ from the themes layouts that we know today and their content were often very funny.

The winner is https://fifarules.myshopify.com (shopId n°8).

This store was found by Fabio Filippi (https://www.linkedin.com/in/0xfab10/).

After trying all the shop domains ideas that he had, Fabio decided to "work smarter not harder". He figured out a trick:

  1. Inspect the checkout page's code of one of the old stores (shopId n°13). There, he found an iframe with this src link: https://checkout.shopify.com/13/sandbox/google_analytics_iframe?sandbox_token=WI-1sqRBEh1Mcx_6OcT2Pg.

  2. From this URL, he deducted a generic URL that would allow him to retrieve any store URL based on its shopId: https://checkout.shopify.com/[SHOPID]/sandbox/google_analytics_iframe

  3. After trying this URL for a specific shopId, he checks the page's source code and finds the shop URL.

Purpose

Based on this generic URL (https://checkout.shopify.com/[SHOPID]/sandbox/google_analytics_iframe), I wrote this ruby script to retrieve the URLs of the 100 oldest Shopify stores.

Tech stack

Next, React, Shopify's Polaris library of React components, Vercel.

How to use this script

You can use this script to retrieve the URLs of any range of Shopify stores based on their shopId.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages