{"id":83,"date":"2020-05-07T03:08:57","date_gmt":"2020-05-07T03:08:57","guid":{"rendered":"https:\/\/sweepwidget.com\/docs\/?p=83"},"modified":"2026-01-18T19:55:51","modified_gmt":"2026-01-18T19:55:51","slug":"how-to-embed-a-giveaway-into-your-website","status":"publish","type":"post","link":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website","title":{"rendered":"How To Embed A Giveaway Into Your Website"},"content":{"rendered":"\n<p>Embed your SweepWidget giveaway directly into any webpage on your website. The embed code works on all platforms including WordPress, Shopify, Wix, Squarespace, Webflow, and any custom HTML website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Get the Embed Code<\/strong><\/h2>\n\n\n\n<p>There are two ways to access your giveaway&#8217;s embed code:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Option 1: From the Dashboard<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to your <strong>Dashboard<\/strong><\/li>\n\n\n\n<li>Find the giveaway you want to embed<\/li>\n\n\n\n<li>Click the <strong>Embed Into HTML Of Your Site<\/strong> button<\/li>\n\n\n\n<li>A popup will appear with your embed code<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-1-1024x500.png\" alt=\"\" class=\"wp-image-7462\" srcset=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-1-1024x500.png 1024w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-1-300x146.png 300w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-1-768x375.png 768w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-1.png 1500w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Option 2: From the Embed Page<\/strong><\/h3>\n\n\n\n<p>After saving your giveaway or by clicking &#8220;View Instructions&#8221; from the popup, you&#8217;ll see the full embed page with additional options.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-2-1024x475.png\" alt=\"\" class=\"wp-image-7463\" srcset=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-2-1024x475.png 1024w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-2-300x139.png 300w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-2-768x356.png 768w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-2.png 1500w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>The Embed Code<\/strong><\/h2>\n\n\n\n<p>Your embed code looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div id=\"12345-abc123\" class=\"sw_container\"&gt;\n  &lt;script type=\"text\/javascript\" src=\"https:\/\/sweepwidget.com\/w\/j\/w_init.js\"&gt;&lt;\/script&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Code Components<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Component<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>id=\"12345-abc123\"<\/code><\/td><td>Your unique giveaway ID<\/td><\/tr><tr><td><code>class=\"sw_container\"<\/code><\/td><td>Required class for styling<\/td><\/tr><tr><td><code>w_init.js<\/code><\/td><td>SweepWidget&#8217;s initialization script<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Embed the Code<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Copy<\/strong> the entire embed code from SweepWidget<\/li>\n\n\n\n<li><strong>Open<\/strong> the page editor on your website where you want the giveaway<\/li>\n\n\n\n<li><strong>Switch<\/strong> to HTML\/Code view (not visual editor)<\/li>\n\n\n\n<li><strong>Paste<\/strong> the code where you want the giveaway to appear<\/li>\n\n\n\n<li><strong>Save<\/strong> and publish your page<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Platform-Specific Instructions<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>WordPress<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Edit the page or post where you want the giveaway<\/li>\n\n\n\n<li>Add a <strong>Custom HTML<\/strong> block (click + and search for &#8220;Custom HTML&#8221;)<\/li>\n\n\n\n<li>Paste the embed code into the block<\/li>\n\n\n\n<li>Click <strong>Update<\/strong> or <strong>Publish<\/strong><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Shopify<\/strong><\/h3>\n\n\n\n<p>SweepWidget offers two options for Shopify:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Quick Embed Into Custom Shopify Page<\/strong> &#8211; Creates a dedicated page automatically<\/li>\n\n\n\n<li><strong>Manual HTML embed<\/strong> &#8211; Paste code into any page template<\/li>\n<\/ul>\n\n\n\n<p>For manual embedding:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Online Store &gt; Pages<\/strong><\/li>\n\n\n\n<li>Create a new page or edit an existing one<\/li>\n\n\n\n<li>Click the <strong>&lt;&gt;<\/strong> (Show HTML) button in the editor<\/li>\n\n\n\n<li>Paste the embed code<\/li>\n\n\n\n<li>Save the page<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Wix<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the Wix Editor<\/li>\n\n\n\n<li>Click <strong>Add (+)<\/strong> &gt; <strong>Embed Code<\/strong> &gt; <strong>Embed HTML<\/strong><\/li>\n\n\n\n<li>Paste the embed code<\/li>\n\n\n\n<li>Resize and position the element as needed<\/li>\n\n\n\n<li>Publish your site<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Squarespace<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Edit the page where you want the giveaway<\/li>\n\n\n\n<li>Add a <strong>Code Block<\/strong><\/li>\n\n\n\n<li>Paste the embed code<\/li>\n\n\n\n<li>Save and publish<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Webflow<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Add an <strong>Embed<\/strong> element to your page<\/li>\n\n\n\n<li>Paste the embed code<\/li>\n\n\n\n<li>Publish your site<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Custom HTML Website<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open your HTML file in a code editor<\/li>\n\n\n\n<li>Paste the embed code inside the <code>&lt;body&gt;<\/code> tag where you want the giveaway<\/li>\n\n\n\n<li>Save and upload the file to your server<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Turn Giveaway Into a Popup<\/strong><\/h2>\n\n\n\n<p>On the embed page, you&#8217;ll see a checkbox option: <strong>Turn giveaway into a popup<\/strong><\/p>\n\n\n\n<p>When enabled, the giveaway appears as a popup\/modal instead of being embedded inline on the page. This is useful for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Exit-intent popups<\/li>\n\n\n\n<li>Triggered popups (on button click)<\/li>\n\n\n\n<li>Keeping the main page content visible<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Hosted Landing Page Alternative<\/strong><\/h2>\n\n\n\n<p>If you don&#8217;t want to embed the giveaway, you can use SweepWidget&#8217;s free hosted landing page instead.<\/p>\n\n\n\n<p>Your hosted URL looks like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;sweepwidget.com\/c\/12345-abc123<\/code><\/pre>\n\n\n\n<p>Simply share this link directly with your audience &#8211; no embedding required.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Embed Code Options<\/strong><\/h2>\n\n\n\n<p>You can add optional attributes to customize the embed:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Attribute<\/th><th>Example<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>data-language<\/code><\/td><td><code>data-language=\"Spanish\"<\/code><\/td><td>Set the widget language<\/td><\/tr><tr><td><code>data-ref<\/code><\/td><td><code>data-ref=\"ABC123\"<\/code><\/td><td>Track referral source<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Example with language:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div id=\"12345-abc123\" class=\"sw_container\" data-language=\"Spanish\"&gt;\n  &lt;script type=\"text\/javascript\" src=\"https:\/\/sweepwidget.com\/w\/j\/w_init.js\"&gt;&lt;\/script&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Best Practices<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Use HTML mode<\/strong> &#8211; Always paste the code in HTML\/code view, not visual editor<\/li>\n\n\n\n<li><strong>Test after embedding<\/strong> &#8211; Visit the page to ensure the giveaway loads correctly<\/li>\n\n\n\n<li><strong>Check mobile display<\/strong> &#8211; The widget is responsive but verify it looks good on mobile<\/li>\n\n\n\n<li><strong>Place prominently<\/strong> &#8211; Put the giveaway where visitors will easily see it<\/li>\n\n\n\n<li><strong>Don&#8217;t modify the code<\/strong> &#8211; Copy and paste exactly as provided<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Troubleshooting<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Giveaway not appearing<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure you pasted the code in HTML mode, not visual editor<\/li>\n\n\n\n<li>Check that the entire code was copied (including opening and closing tags)<\/li>\n\n\n\n<li>Clear your browser cache and refresh the page<\/li>\n\n\n\n<li>Verify the giveaway is published and active<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Widget appears broken or unstyled<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check for CSS conflicts with your theme<\/li>\n\n\n\n<li>Ensure no part of the embed code was accidentally modified<\/li>\n\n\n\n<li>Try embedding on a simple test page to isolate the issue<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Multiple giveaways on one page<\/strong><\/h3>\n\n\n\n<p>You can embed multiple giveaways on the same page &#8211; just paste each embed code where you want them to appear. Each giveaway has a unique ID so they won&#8217;t conflict.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Embed your SweepWidget giveaway directly into any webpage on your website. The embed code works on all platforms including WordPress, Shopify, Wix, Squarespace, Webflow, and any custom HTML website. How to Get the Embed Code There are two ways to access your giveaway&#8217;s embed code: Option 1: From the Dashboard Option 2: From the Embed Page After saving your giveaway or by clicking &#8220;View Instructions&#8221; from the popup, you&#8217;ll see the full embed page with additional options. The Embed Code Your embed code looks like this: Code Components Component Description id=&#8221;12345-abc123&#8243; Your unique giveaway ID class=&#8221;sw_container&#8221; Required class for styling w_init.js SweepWidget&#8217;s initialization script How to Embed the Code Platform-Specific Instructions WordPress Shopify SweepWidget offers two options for Shopify: For manual embedding: Wix Squarespace Webflow Custom HTML Website Turn Giveaway Into a Popup On the embed page, you&#8217;ll see a checkbox option: Turn giveaway into a popup When enabled, the giveaway appears as a popup\/modal instead of being embedded inline on the page. This is useful for: Hosted Landing Page Alternative If you don&#8217;t want to embed the giveaway, you can use SweepWidget&#8217;s free hosted landing page instead. Your hosted URL looks like: Simply share this link directly with your audience &#8211; no embedding required. Embed Code Options You can add optional attributes to customize the embed: Attribute Example Description data-language data-language=&#8221;Spanish&#8221; Set the widget language data-ref data-ref=&#8221;ABC123&#8243; Track referral source Example with language: Best Practices Troubleshooting Giveaway not appearing Widget appears broken or unstyled Multiple giveaways on one page You can embed multiple giveaways on the same page &#8211; just paste each embed code where you want them to appear. Each giveaway has a unique ID so they won&#8217;t conflict.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-how-to"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SweepWidget: How To Embed A Giveaway Into Your Website<\/title>\n<meta name=\"description\" content=\"Learn how to embed a SweepWidget giveaway into your website, blog, or CMS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SweepWidget: How To Embed A Giveaway Into Your Website\" \/>\n<meta property=\"og:description\" content=\"Learn how to embed a SweepWidget giveaway into your website, blog, or CMS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website\" \/>\n<meta property=\"og:site_name\" content=\"SweepWidget Help Docs\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-07T03:08:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-18T19:55:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1500\" \/>\n\t<meta property=\"og:image:height\" content=\"732\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"SweepWidget\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"SweepWidget\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/how-to-embed-a-giveaway-into-your-website#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/how-to-embed-a-giveaway-into-your-website\"},\"author\":{\"name\":\"SweepWidget\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#\\\/schema\\\/person\\\/4cca2bc9c600116750eca1bfff6648e0\"},\"headline\":\"How To Embed A Giveaway Into Your Website\",\"datePublished\":\"2020-05-07T03:08:57+00:00\",\"dateModified\":\"2026-01-18T19:55:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/how-to-embed-a-giveaway-into-your-website\"},\"wordCount\":677,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/how-to-embed-a-giveaway-into-your-website#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/embed-giveaway-1-1024x500.png\",\"articleSection\":[\"How To\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/how-to-embed-a-giveaway-into-your-website\",\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/how-to-embed-a-giveaway-into-your-website\",\"name\":\"SweepWidget: How To Embed A Giveaway Into Your Website\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/how-to-embed-a-giveaway-into-your-website#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/how-to-embed-a-giveaway-into-your-website#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/embed-giveaway-1-1024x500.png\",\"datePublished\":\"2020-05-07T03:08:57+00:00\",\"dateModified\":\"2026-01-18T19:55:51+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#\\\/schema\\\/person\\\/4cca2bc9c600116750eca1bfff6648e0\"},\"description\":\"Learn how to embed a SweepWidget giveaway into your website, blog, or CMS.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/how-to-embed-a-giveaway-into-your-website#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/how-to-embed-a-giveaway-into-your-website\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/how-to-embed-a-giveaway-into-your-website#primaryimage\",\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/embed-giveaway-1.png\",\"contentUrl\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/embed-giveaway-1.png\",\"width\":1500,\"height\":732},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/how-to-embed-a-giveaway-into-your-website#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Embed A Giveaway Into Your Website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#website\",\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/\",\"name\":\"SweepWidget Help Docs\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#\\\/schema\\\/person\\\/4cca2bc9c600116750eca1bfff6648e0\",\"name\":\"SweepWidget\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g\",\"caption\":\"SweepWidget\"},\"sameAs\":[\"https:\\\/\\\/sweepwidget.com\\\/docs\"],\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/author\\\/sweepwidget\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SweepWidget: How To Embed A Giveaway Into Your Website","description":"Learn how to embed a SweepWidget giveaway into your website, blog, or CMS.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website","og_locale":"en_US","og_type":"article","og_title":"SweepWidget: How To Embed A Giveaway Into Your Website","og_description":"Learn how to embed a SweepWidget giveaway into your website, blog, or CMS.","og_url":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website","og_site_name":"SweepWidget Help Docs","article_published_time":"2020-05-07T03:08:57+00:00","article_modified_time":"2026-01-18T19:55:51+00:00","og_image":[{"width":1500,"height":732,"url":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-1.png","type":"image\/png"}],"author":"SweepWidget","twitter_card":"summary_large_image","twitter_misc":{"Written by":"SweepWidget","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website#article","isPartOf":{"@id":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website"},"author":{"name":"SweepWidget","@id":"https:\/\/sweepwidget.com\/docs\/#\/schema\/person\/4cca2bc9c600116750eca1bfff6648e0"},"headline":"How To Embed A Giveaway Into Your Website","datePublished":"2020-05-07T03:08:57+00:00","dateModified":"2026-01-18T19:55:51+00:00","mainEntityOfPage":{"@id":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website"},"wordCount":677,"commentCount":0,"image":{"@id":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website#primaryimage"},"thumbnailUrl":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-1-1024x500.png","articleSection":["How To"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website","url":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website","name":"SweepWidget: How To Embed A Giveaway Into Your Website","isPartOf":{"@id":"https:\/\/sweepwidget.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website#primaryimage"},"image":{"@id":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website#primaryimage"},"thumbnailUrl":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-1-1024x500.png","datePublished":"2020-05-07T03:08:57+00:00","dateModified":"2026-01-18T19:55:51+00:00","author":{"@id":"https:\/\/sweepwidget.com\/docs\/#\/schema\/person\/4cca2bc9c600116750eca1bfff6648e0"},"description":"Learn how to embed a SweepWidget giveaway into your website, blog, or CMS.","breadcrumb":{"@id":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website#primaryimage","url":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-1.png","contentUrl":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/embed-giveaway-1.png","width":1500,"height":732},{"@type":"BreadcrumbList","@id":"https:\/\/sweepwidget.com\/docs\/how-to-embed-a-giveaway-into-your-website#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sweepwidget.com\/docs\/"},{"@type":"ListItem","position":2,"name":"How To Embed A Giveaway Into Your Website"}]},{"@type":"WebSite","@id":"https:\/\/sweepwidget.com\/docs\/#website","url":"https:\/\/sweepwidget.com\/docs\/","name":"SweepWidget Help Docs","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sweepwidget.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sweepwidget.com\/docs\/#\/schema\/person\/4cca2bc9c600116750eca1bfff6648e0","name":"SweepWidget","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g","caption":"SweepWidget"},"sameAs":["https:\/\/sweepwidget.com\/docs"],"url":"https:\/\/sweepwidget.com\/docs\/author\/sweepwidget"}]}},"_links":{"self":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":7,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":7502,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/83\/revisions\/7502"}],"wp:attachment":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}