Created
February 20, 2023 15:23
-
-
Save bsmithrainbowshops/07a479304fee884726cf95254d338f64 to your computer and use it in GitHub Desktop.
Taxonomy category product mapping for google > shopify product taxonomies.
This file contains hidden or 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
| //Key is google taxonomy id, value is shopify collection id | |
| //a partial mapping of the two taxonomies together. | |
| //Google: https://www.google.com/basepages/producttype/taxonomy-with-ids.en-US.txt | |
| //Shopify: https://help.shopify.com/txt/product_taxonomy/en.txt | |
| const GOOGLE_TO_SHOPFIY_TAXONOMY = { | |
| 9: "3075", | |
| 100: "4074", | |
| 103: "4079", | |
| 104: "4080", | |
| 108: "4080", | |
| 169: "257", | |
| 170: "265", | |
| 171: "266", | |
| 173: "286", | |
| 175: "323", | |
| 177: "298", | |
| 178: "301", | |
| 187: "352", | |
| 189: "332", | |
| 190: "333", | |
| 191: "334", | |
| 194: "337", | |
| 196: "339", | |
| 197: "335", | |
| 200: "340", | |
| 201: "345", | |
| 204: "173", | |
| 206: "227", | |
| 207: "175", | |
| 209: "199", | |
| 211: "187", | |
| 212: "174", | |
| 214: "205", | |
| 215: "206", | |
| 234: "1309", | |
| 239: "1287", | |
| 249: "1318", | |
| 264: "1386", | |
| 303: "1510", | |
| 475: "2804", | |
| 477: "2842", | |
| 479: "2879", | |
| 482: "2889", | |
| 487: "2948", | |
| 516: "2729", | |
| 588: "3135", | |
| 595: "3151", | |
| 597: "3156", | |
| 631: "3401", | |
| 669: "3505", | |
| 674: "3784", | |
| 936: "4217", | |
| 947: "4275", | |
| 961: "4229", | |
| 971: "4318", | |
| 1239: "5178", | |
| 1247: "5187", | |
| 1444: "3503", | |
| 1578: "214", | |
| 1581: "176", | |
| 1604: "127", // (DEFAULT VALUE) Apparel & Accessories > Clothing | |
| 1662: "277", | |
| 1718: "1437", | |
| 1772: "208", | |
| 1803: "4305", | |
| 1831: "171", | |
| 1985: "4002", | |
| 2271: "160", | |
| 2435: "4240", | |
| 2526: "2886", | |
| 2535: "3272", | |
| 2562: "199", | |
| 2580: "181", | |
| 2592: "2892", | |
| 2619: "2807", | |
| 2668: "330", | |
| 2683: "2878", | |
| 2689: "4234", | |
| 2694: "3790", | |
| 2747: "2799", | |
| 2761: "2852", | |
| 2765: "2847", | |
| 2819: "2905", | |
| 2858: "2864", | |
| 2860: "4048", | |
| 2875: "2798", | |
| 2927: "4008", | |
| 2951: "3792", | |
| 2980: "2858", | |
| 3021: "2867", | |
| 3032: "326", | |
| 3080: "3372", | |
| 3160: "1584", | |
| 3427: "3442", | |
| 3466: "5231", | |
| 3654: "4656", | |
| 3731: "5235", | |
| 3735: "817", | |
| 3809: "3509", | |
| 3858: "4657", | |
| 3867: "5216", | |
| 3898: "3134", | |
| 4179: "296", | |
| 4211: "3018", | |
| 4295: "3157", | |
| 4313: "3016", | |
| 4358: "4023", | |
| 4454: "3180", | |
| 4470: "4277", | |
| 4521: "3501", | |
| 4746: "3712", | |
| 5043: "820", | |
| 5250: "162", | |
| 5322: "128", | |
| 5343: "193", | |
| 5422: "247", | |
| 5490: "163", | |
| 5598: "167", | |
| 5663: "2958", | |
| 5713: "178", | |
| 5885: "3154", | |
| 5921: "490", | |
| 6034: "2893", | |
| 6049: "3786", | |
| 6065: "4292", | |
| 6072: "2868", | |
| 6104: "2883", | |
| 6238: "264", | |
| 6262: "2895", | |
| 6304: "2861", | |
| 6305: "2857", | |
| 6372: "2148", | |
| 6463: "338", | |
| 6551: "326", | |
| 7132: "164", | |
| 7313: "172", | |
| 8106: "3590", | |
| 8218: "2859", | |
| 233419: "2874", | |
| 502996: "2815", | |
| 503724: "1153", | |
| 503746: "4276", | |
| 505370: "357", | |
| 505797: "1278", | |
| 505826: "3984", | |
| }; | |
| module.exports = { GOOGLE_TO_SHOPFIY_TAXONOMY }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment