Access privateMetafield inside the storefront

Shopify Partner
5 0 0



I need some help and I'm new to shopify. I have created an app by shopify app create node. After installing the app in the store, it asks for the 12 digit code. When I submit the code, then I'm storing this code using Privatemetafield( and also I'm adding the pice of js code(ex: script.js) across all the pages using[post]/admin/api/2022-01/script_tags..... My question is how can I access the 12 digit code inside the script.js?



Replies 0 (0)