How to add an Instagram feed to Google Sites

Google Sites is a quick, free way to build a site for a club, a class, a team, a small business or an event, and recent Instagram posts are a natural fit for it. Google Sites has no Instagram feed of its own, but it lets you paste HTML and JavaScript through Insert → Embed → Embed code. This guide shows how to add a feed from Social Feed by grip space step by step, explains what changes because Google Sites keeps embedded code in a box of its own, and lists the settings that work best there. The short version: it works, but plan for a fixed height, consider opening posts on Instagram instead of in a lightbox, and always check the published site.

Updated October 12, 2026

About this guide: Google Sites menu names and steps below come from Google’s Sites Help Center, checked on October 12, 2026 (links at the end). Google’s help does not describe the technical details of how embedded code is displayed. Where we describe that, we say so, and we tell you what to test instead of promising a result.

What works and what to expect

QuestionAnswer
Can Google Sites run the embed code?Yes. Google’s help describes adding HTML, CSS and JavaScript with Insert → Embed → Embed code. JavaScript must be inside <script> tags, and the Social Feed code already is one.
Do I need a paid Google plan?Google’s help does not list a plan requirement for embed code. If you use Google Sites through a work or school account, your organization’s settings may differ; ask your administrator if something is blocked.
Does the feed update by itself?Yes. You paste the code once. New posts appear automatically: once a day on the Free plan, right away on paid plans.
Does the embed box grow with the feed?Plan for it not to. The feed sits in a box with the size you give it, so set the height to fit.
Does the lightbox work?It opens inside the embed box, not over the whole page. In a small box, opening posts on Instagram is usually better.
Where do I check the result?On the published site, on a computer and on a phone.

What you need

  1. An Instagram professional account (Business or Creator) for the posts you want to show. Personal accounts cannot be connected. If you are not sure which you have, read our guide to professional accounts.
  2. A Social Feed by grip space account. The Free plan is enough to start and needs no credit card.
  3. Edit access to the Google Site, and a computer. Google’s help describes these steps in Google Sites on a computer.

Step 1: Get your embed code

  1. Sign up for Social Feed by grip space with your email address.
  2. In the dashboard, click “+ Connect Instagram account” and log in with the Instagram professional account whose posts you want to show.
  3. Open “Settings & preview”. Choose a grid or a slider, the number of posts and columns, and the click action. Suggestions for Google Sites are in the next sections, so you may want to read those first.
  4. Under “Add the embed code to your website”, click “Copy”. The code looks like this:
<script type="text/javascript" src="https://n246.grip.space/api/v1/instagram/widget/xxxxxxxx"></script>

You paste this code into Google Sites once. The layout, columns, filters and colors are stored with the widget, so when you change them in the Social Feed dashboard later, your site shows the new design without editing the embed again.

Step 2: Add the code with Insert → Embed

These are the steps from Google’s Sites Help Center for adding HTML, CSS or JavaScript:

  1. Open your site in Google Sites on a computer, and go to the page where you want the feed.
  2. Click Insert, then Embed.
  3. Click Embed code.
  4. Paste the embed code from Step 1, then click Next.
  5. Click Insert.
  6. Move the new embed box to where you want the feed and adjust its size (see Step 3).
  7. To publish your changes, click Publish at the top right.

Paste the code exactly as copied, from <script to </script>, and use the Embed code option rather than pasting the address inside the tag as a URL. That address delivers a script, not a web page, so it only works inside the script tag.

Check the published site, not the editor. Google’s help does not say whether embedded code runs while you edit. Whatever you see in the editor, open the published site in a new tab (or a private window) to judge the feed. If you have just published, reload the page.

How Google Sites shows embedded code

Normally, Social Feed by grip space does not use a frame. Its script draws the feed directly into the page, right after the script tag, so the feed flows with your content and the page grows to fit it.

Google Sites works differently. Google’s help does not spell out the details, but Google Sites is widely reported to place embedded code in a sandboxed iframe: a separate, restricted document shown in a box on your page. Google’s own 2017 announcement of the feature describes embedding web pages as iframes alongside embedding HTML and JavaScript. We could not find an official Google page that documents the exact restrictions, so treat the points below as what to expect and to test, not as guarantees.

If the feed is inside such a box, the script still runs and still draws the feed next to its own tag, but everything happens inside the box. That has a few consequences:

  1. A fixed height. The box does not grow when the feed is taller than the box. Posts at the bottom are cut off, or visitors have to scroll inside the box.
  2. A lightbox limited to the box. The larger view that opens when a visitor clicks a post covers the box, not the whole page. In a small box it can be cramped.
  3. Links that open new tabs may be restricted. The Follow button and the “Open Instagram” click action open Instagram in a new tab. A sandboxed frame can prevent this, depending on how it is set up. MDN explains that inside a sandboxed iframe, new windows opened by Window.open() or target="_blank" “silently fail” unless the frame allows popups. Test both on the published site.
  4. The page language may not reach the widget. The widget picks English or Japanese for its few words from the language of the document it runs in. Inside a box, that is the box’s document, not your page. See the language section below.

Step 3: Size the embed box

Because the box keeps the size you give it, the height is the setting that matters most. The width matters too: the widget fills the width of the box and chooses how many columns fit, using fewer columns when each image would be narrower than about 100 pixels. The number of columns you set is the maximum.

You can estimate the height you need. Tiles are always square, so:

  1. Tile size ≈ (width of the box − the gaps between columns) ÷ number of columns.
  2. Grid height ≈ number of rows × tile size + the gaps between rows. The number of rows is the number of posts divided by the number of columns, rounded up.
  3. Slider height ≈ one tile plus about 8 pixels for the scroll area.
  4. Add about 56 pixels if the account header (profile picture, name, Follow button) is shown, and about 20 more for the “Powered by Social Feed” credit on the Free plan.
  5. Add some extra room on top of the estimate, since the box itself may add a little space.

Some examples with the default spacing of 4 pixels between images:

Box widthLayoutPosts × columnsTile sizeHeight of the postsWith header and credit
800 pxGrid12 × 4 (3 rows)about 197 pxabout 600 pxabout 680 px
800 pxGrid6 × 6 (1 row)about 130 pxabout 130 pxabout 210 px
800 pxSlider12 posts, 4 visibleabout 197 pxabout 205 pxabout 280 px
1,000 pxGrid8 × 4 (2 rows)about 247 pxabout 500 pxabout 580 px

Then check the published page and adjust. If posts are cut off at the bottom, make the box taller and publish again. If there is a lot of empty space below the feed, make it shorter. The figures above are estimates to get you close, not exact values.

Phones: on a phone, the box is narrower, so the widget shows fewer columns and the grid can wrap into more rows. Google’s help does not describe how embed boxes are resized on phones, so open the published site on a phone and check that nothing is cut off. A slider is the easiest layout to fit, because it is always one tile high.

Recommended settings for Google Sites

These settings in “Settings & preview” suit a fixed-height box best:

SettingSuggestionWhy
LayoutSlider, or a grid with one or two rowsThe height stays small and predictable
Number of posts6 to 12 for a grid; 10 to 20 for a sliderA tall grid needs a tall box, and gets cut off on phones more easily
Columns3 to 4Tiles stay large enough to see in a box that may be narrower than the page
On click“Open Instagram” (if it opens on your published site)Visitors see the post full size on Instagram instead of in a cramped lightbox
Max width0 (no limit) or the width of the boxA max width smaller than the box leaves empty space on both sides
Account headerOn, if the Follow button opens on your siteGives visitors a way to follow you

If your box is large, for example on a page given over to the feed, the lightbox can work well too: it shows the full image, the caption and the like count without leaving your site. For the trade-offs between the two, see lightbox or link to Instagram?, and for layout choices in general, grid or slider?

Testing clicks on the published site

Because Google does not document what the embed box allows, test the interactive parts once after publishing:

  1. Click a post. With “Open lightbox,” a larger view should open inside the box; close it with the × button. With “Open Instagram,” the post should open on Instagram in a new tab.
  2. Click the Follow button. Your Instagram profile should open in a new tab.
  3. Swipe or use the arrows if you chose a slider.
  4. Play a video if your feed includes videos and you use the lightbox. Videos start muted, with controls to turn the sound on.

If posts and the Follow button do not open Instagram, the box is blocking new tabs. In that case, use “Open lightbox” or “Do nothing” for clicks, turn off the account header if the Follow button does nothing, and add an ordinary text link to your Instagram profile elsewhere on the page with Google Sites’ own tools.

Using a full page for the feed

Google’s help also describes adding an embed as an entire page: under Pages, hover over Add and click Full page embed. A page devoted to your Instagram posts gives the feed more room than a small box in the middle of a page, which suits a grid with more posts and makes the lightbox less cramped. The same advice applies: check the published page on a computer and a phone, and make sure nothing is cut off.

If you want the feed somewhere small instead, such as near the bottom of every page, read where to put an Instagram feed on your website and adding an Instagram feed to a footer.

The widget’s language on Google Sites

The widget shows a few words, such as “Posts” and “Follow,” in English or Japanese. It decides from the language of the document it runs in, and falls back to the visitor’s browser language when that document does not say. Inside an embed box, the widget sees the box’s document, not your page, so the result may depend on each visitor’s browser.

The reliable fix is to type your own text into “Follow button text” in “Settings & preview.” Custom text is shown exactly as typed, in any language. The full explanation, including which other words change and how to reduce them, is in Instagram widget in the wrong language?

Plans and views on a Google Site

Every time the feed is loaded, it counts as a view, whether it is in a box on Google Sites or anywhere else. The plans differ in how many widgets, posts and views they include:

FreeLightStandard
Price$0$8/month or $80/year$24/month or $240/year
Widgets13Unlimited
Posts per widgetUp to 16Up to 30Up to 50
Views per month3,00030,000Unlimited
New posts appearOnce a dayRight awayRight away
“Powered by Social Feed” creditAlways shownOptionalOptional

A site for a club, a class or an event often fits the Free plan. If you want a grid on one page and a slider on another, you need two widgets, which means the Light plan or higher. See pricing for details, and what a free Instagram feed widget includes if you are comparing free options.

Checklist before you share the site

  1. The widget is set to Published in the Social Feed dashboard.
  2. You pasted the whole script tag with Insert → Embed → Embed code, then clicked Next and Insert.
  3. You clicked Publish in Google Sites after adding or changing the embed.
  4. On the published site, the whole feed is visible on a computer, without cut-off posts.
  5. On the published site, the whole feed is visible on a phone.
  6. Clicking a post does what you chose, and the Follow button opens your profile (or you turned it off).
  7. The Follow button text reads the way you want.

Troubleshooting

What you seeLikely causeWhat to do
Nothing in the editorThe editor may not run the codePublish, then check the published site
An empty box on the published siteThe widget is unpublished, the code is incomplete, or the site was not published againCheck Published in the dashboard, paste the whole tag again, then publish
Posts cut off at the bottomThe box is shorter than the feedMake the box taller, or show fewer posts or a slider
Posts cut off on a phone onlyFewer columns on a narrow screen make the grid tallerUse a slider or fewer posts, and add height
A lot of empty space under the feedThe box is taller than the feedMake the box shorter
The lightbox is tiny or crampedIt can only use the space of the boxMake the box bigger, use a full page embed, or choose “Open Instagram”
Clicking a post or Follow does nothingThe box may block new tabsUse “Open lightbox” or “Do nothing” and add a normal link to your profile
The Follow button is in Japanese (or English)The box’s language is unknown, so the visitor’s browser decidesType your own Follow button text
New posts are missingThe feed updates on a schedule; filters may hide postsInstagram feed not updating
The feed disappeared after workingThe Instagram connection expired, or the plan’s view limit was reachedInstagram feed not showing

Frequently asked questions

Is there an Instagram option in Google Sites’ Insert menu?
We did not find an Instagram feed option in Google’s help, which covers adding Google files, videos and other website content. An auto-updating feed needs embed code from a feed tool, added through Insert → Embed → Embed code.

Can I embed a single Instagram post instead?
That is a different task. See how to embed a single Instagram post, and test it on your published site in the same way, since the same embed box applies.

Can the embed box grow automatically?
Plan on setting the height yourself. Google’s help does not describe an automatic height for embedded code, so check the published page and adjust.

Can I use the same feed on several pages of my Google Site?
Yes. Paste the same embed code into an embed box on each page. Every copy shows the same widget with the same settings, and each time any of them loads, it counts as a view. If you want different settings on different pages, such as a slider on the homepage and a larger grid on an Instagram page, create a second widget with its own embed code. Each box has its own size, so set the height of each one to fit the layout it shows.

Does the widget set cookies on my Google Site?
No. The widget does not set cookies or use local storage. Images and videos load directly from Instagram’s servers. Google Sites itself may have its own behavior, which is covered by Google’s policies.

Can I show someone else’s Instagram account?
No. You connect an account you can log in to, and the feed shows that account’s own posts. See why you can’t show someone else’s feed.

My site is on another platform too. Is it easier there?
On most platforms the feed sits directly in the page and grows with its content. We have guides for WordPress, Shopify, Wix (which also uses a box), Squarespace, Webflow and plain HTML, and a post on Blogger, Google’s other free publishing tool.

Sources

  1. Google Sites Help, “Add Google files, videos, website content, & more”: https://support.google.com/sites/answer/90569?hl=en
  2. Google Workspace Updates, “Embed HTML and JavaScript in new Google Sites” (December 2017): https://workspaceupdates.googleblog.com/2017/12/embed-html-and-javascript-in-new-google-sites.html
  3. Google Sites Help, “Create, name, delete, or copy a site”: https://support.google.com/sites/answer/98081?hl=en
  4. MDN Web Docs, “<iframe>: The Inline Frame element”: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/iframe

Get your embed code in a few minutes. The Free plan needs no credit card.

Sign up free