Okay, let's walk through how you can get those Google Drive videos embedded right onto your website.
It's a common question, and while Google Drive doesn't offer a straightforward "embed" button like some other platforms, I've found a reliable way to make it work using a simple URL tweak and an iframe.
Here’s my foolproof guide to get it done.
How to Embed Google Drive Video
Sharing videos directly from Google Drive is super convenient, but getting them to play nicely inside your website page needs a little trick. Don't worry, it's easier than it sounds!
Step 1: Open Your Video in a New Window
First things first, head over to your Google Drive and find the video file you want to embed.
Click on the three vertical dots (the menu icon) next to the file name. From the options that pop up, choose "Open in new window".

This step is key because it gives us the URL format we need for the next part.
Step 2: Modify the Video URL for Previewing
Now, look at the URL in your browser's address bar. It will likely end with /view
. We need to change this part.
Simply delete view
and type preview
in its place. For instance, if your URL is https://drive.google.com/file/d/SOME_VIDEO_ID/view
, change it to https://drive.google.com/file/d/SOME_VIDEO_ID/preview
.

This tells Google Drive you intend to use it in an embedded context. Copy this modified /preview
URL – you'll need it in a moment.
Step 3: Use an Iframe Generator Tool
To actually embed this, we'll wrap the preview URL in what's called an iframe. I've added a simple tool on the Poper site to help with this.
Go to our Iframe Generator at https://www.poper.ai/tools/iframe-generator/
.

Paste the /preview
URL you copied directly into the URL input field on that page.
Step 4: Adjust the Display Size
Below the URL field, you'll see options for 'Width' and 'Height'. It's important to adjust these so the video player fits nicely within your website's layout.
You might need to experiment a bit later, but start with some common dimensions like 640
width and 360
height, or use percentages like 100%
width if you want it to be responsive.

Getting this right ensures the video looks professional on your page.
Step 5: Generate and Copy the Embed Code
Once you've set the URL and dimensions, click the "Generate" button. The tool will instantly create the HTML iframe code for you.
This code contains your preview URL and the dimensions you specified. Go ahead and copy this entire snippet of code.
Step 6: Paste the Code into Your Website
Now, head over to your website editor – whether it's WordPress, Shopify, Squarespace, or something else. Find the page where you want the video to appear and look for an option to add custom HTML, embed code, or use a source code block. Paste the iframe code you copied directly into that block.
Step 7: Preview and Publish

Finally, save the changes on your page and use your website's preview function, or publish the page and view it live. You should see your Google Drive video embedded right there!
Check that it plays correctly and that the size looks good. If not, you can tweak the width and height back in the iframe generator (Step 4) and update the code on your site.
That’s all there is to it! It’s a handy workaround I use myself when I need to quickly Embed Google Drive Videos without re-uploading them elsewhere. Let me know if you run into any snags!
Troubleshooting Google Drive Embeds with Poper
Running into problems? Here are common issues and how to fix them:
Common Problem | Possible Cause(s) | Solution(s) |
Embedded video is blank / shows login | Incorrect Google Drive sharing permissions. | In Google Drive, verify the video file's sharing is set to "Anyone with the link" can view. |
Embedded video shows error / won't play | Incorrect URL in iframe src (not using /preview). | Double-check the URL pasted into the iframe code in Poper's HTML element. Ensure it ends in /preview, not /view.... |
Embedded video shows error / won't play | Missing allow="autoplay" attribute in the iframe code. | Add allow="autoplay" inside the <iframe> tag within Poper's HTML element settings. |
Embed doesn't appear on the website | Poper Installation Script missing/incorrectly placed on site. | Confirm the main Poper script is installed correctly (usually before </body>). Check Poper's "Installation" section. |
Embed doesn't appear on the website | Poper campaign not Published OR Display Conditions not met. | Ensure the Poper Embed campaign status is Published. Review Poper's Display Conditions/Rules to confirm they allow showing on the tested page/conditions. |
Embed appears in the wrong place | Incorrect/non-unique CSS Selector used in Poper's "Embed Position". | Use your browser's Inspect tool to find a reliable, unique CSS Selector. Verify it in Poper and try different placement options (Before/After/Inside). |
Embed container size/styling is wrong | Incorrect width/height in iframe OR conflicting Poper/website CSS. | Adjust width/height attributes in the iframe code within Poper. Check Poper's Style settings for the container. Inspect for overriding CSS rules from your website theme. |
Advantages of Using Poper for Google Drive Embeds
While the iframe workaround is necessary, managing it with Poper provides key benefits:
Simplified Placement: Use CSS Selectors for exact positioning without digging into HTML.
Easy Container Styling: Visually add borders, padding, etc., around the video.
Central Management: Update the iframe code (e.g., change video URL) or placement rules easily within the Poper dashboard for all instances controlled by the campaign.
Targeting Options: Optionally use Poper's rules to show the video embed only on specific pages or to certain visitor segments.
Clean Code: Keeps the embed logic managed by Poper, potentially making your page's source code cleaner.
Tips for Embedding Google Drive Videos
Sharing Permissions are Key: Always set Google Drive sharing to "Anyone with the link" can view.
Use the /preview URL: The /view URL typically won't work reliably in iframes.
Test Playback: Ensure the video plays correctly after embedding.
Consider Video Size: Large video files can take time to load within the embed.
Mobile Responsiveness: Use percentage widths (width="100%") in your iframe and test how it looks on different devices.
Conclusion: Embed Google Drive Videos with Poper Control
So, can you embed a Google Drive video on your website? Yes, using the /preview URL workaround and an <iframe>. Poper significantly simplifies the management part of this process, offering no-code placement, easy container styling, and centralized control.
By preparing your Google Drive code correctly and then leveraging Poper's embed features, you can effectively integrate Drive videos into your website experience.
Frequently Asked Questions (FAQs) about Embedding Google Drive Videos via Poper
Does Poper automatically create the /preview URL or the iframe code for me?
No. You must manually modify the Google Drive URL to /preview and structure the basic <iframe> code yourself (as shown in the Prerequisite section). Poper's role is to take that prepared code and help you place and manage it on your site.
Why is my embedded Google Drive video blank or showing an error, even with Poper?
The most common reasons are:
1. Incorrect Google Drive sharing permissions (not set to "Anyone with the link").
2. Using the /view URL instead of the required /preview URL in the iframe src.
3. A typo in the <iframe> code pasted into Poper.
Poper correctly places the code you provide; it cannot fix errors in the code itself or permission issues in Google Drive.Can I embed a video from Google Drive 'Shared with me' section?
Generally, you need to be the owner or have edit access to ensure the sharing permissions are set correctly ("Anyone with the link"). Embedding files only shared with you might not work reliably unless the owner has set those broad permissions.
Does the allow="autoplay" attribute in the iframe guarantee autoplay?
No. Browser policies often restrict autoplay, especially with sound. While allow="autoplay" might be necessary for the Drive player to function correctly within the iframe, actual autoplay behavior depends heavily on the user's browser and settings. Don't rely on it.
Can Poper make the Google Drive video player look different (e.g., change colors)?
No. Poper styles the container around the iframe. The appearance of the video player controls inside the iframe is determined entirely by Google Drive and cannot be changed by Poper or your website's CSS.