Connect Shopify to insert links
Give NodeLens a Shopify Admin API access token with content scopes only, so it can insert links into your blog articles and pages.
On this page
To insert links into Shopify, you give NodeLens an Admin API access token from a custom app with content scopes only. NodeLens then edits the body of your blog articles and pages. It can’t touch products, orders, customers, themes or store settings.
What you need
- Your shop’s address, like
your-shop.myshopify.com. - Access in Shopify admin to make and install a custom app.
- An owner or admin in NodeLens, and a plan. Insert isn’t part of the free crawl.
Steps: get an access token
- In Shopify admin, go to Settings → Apps and sales channels → Develop apps.
- Create an app named “NodeLens”.
- Set its Admin API scopes to
read_contentandwrite_contentonly. - Install the app.
- Copy the Admin API access token. Shopify shows it once.
| Scope | Setting | Why |
|---|---|---|
read_content |
On | NodeLens reads blog articles and pages |
write_content |
On | NodeLens edits their body |
| Products, orders, customers, themes and all others | Off | NodeLens refuses tokens with any other scope |
The online store page scopes, read_online_store_pages and write_online_store_pages, are accepted too. The check needs a scope that can write blog posts or pages.
Steps: connect in NodeLens
- In Actions, pick fixes and press Insert.
- Under Your CMS, choose Shopify.
- Enter the Shop address, such as
your-shop.myshopify.com. - Paste the Admin API access token.
- Press Connect and check. When the check passes, the preview opens. If it passes with a note, press Continue to the preview.
The token is kept encrypted for this project and only ever sent to your myshopify.com address. See security and privacy.
What the check looks for
| Message | What to do |
|---|---|
| “This app can do more than edit content (…). Create a custom app with only the content scopes.” | Remove the extra scopes, or make a new app |
| “This app can’t edit blog posts or pages (it needs write_content).” | Add write_content |
| “This token belongs to …, not …” | Use a token from the shop you entered |
| “This shop’s primary domain is …, not …” | The crawled domain isn’t this shop’s primary domain |
| “The shop’s myshopify.com address, like your-shop.myshopify.com.” | Enter the myshopify.com address, not your own domain |
What NodeLens edits
| Content | URL pattern | Edited? |
|---|---|---|
| Blog articles | /blogs/<blog>/<article> |
Yes |
| Pages | /pages/<page> |
Yes |
| Products | /products/<product> |
No |
| Collections | /collections/<collection> |
No |
| Home page and theme sections | No |
Each new internal link wraps words already in the body. Titles, SEO fields, images and themes stay as they are. A crawled URL outside those patterns shows “Not found in Shopify (only blog articles and pages can be edited)” and stays out of the batch.
Edits are saved straight to the article or page. Check each Before and after before you confirm. The preview, count and undo are on how inserting works.
Revoke access
To stop NodeLens writing, revoke the NodeLens app’s access in Shopify admin. NodeLens stops writing to the site straight away.
To remove the token from NodeLens too, press Disconnect in Settings → Publishing, then confirm. Undo needs a working token, so undo any links you want removed first.
Questions
Does NodeLens edit product pages?
No. It edits the body of blog articles and pages only. Links it adds there can point to your products.
Which scopes does the token need?
read_content and write_content, and nothing else. NodeLens refuses a token with any other scope.