title: How to embed google trend chart in html?
body: <p>I saw a site that embedded an interactive Google trend chart on the page: <a href="http://knowyourmeme.com/memes/danbo" rel="nofollow noreferrer">http://knowyourmeme.com/memes/danbo</a></p>
  
  <p>When I inspected the element, the chart was embedded with the code:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://www.google.com/trends/embed.js?hl=en-US&amp;amp;q=danbo%20robot,danbo%20amazon,danbo%20yotsuba&amp;amp;content=1&amp;amp;cid=TIMESERIES_GRAPH_0&amp;amp;export=5&amp;amp;w=600&amp;amp;h=350"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I checked the top of the html for google related script and I found these:</p>
  
  <pre><code>&lt;script&gt; (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-15176568-9'); ga('send', 'pageview'); &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt; var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; (function() { var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; gads.src = 'http://www.googletagservices.com/tag/js/gpt.js'; var node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(gads, node); })(); googletag.cmd.push(function() { googletag.pubads().setTargeting('site', 'kym'); googletag.pubads().setTargeting('page', '_memes_danbo'); }); &lt;/script&gt;
  </code></pre>
  
  <p>But when i created an html file as such:</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;script&gt; (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-15176568-9'); ga('send', 'pageview'); &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt; var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; (function() { var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; gads.src = 'http://www.googletagservices.com/tag/js/gpt.js'; var node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(gads, node); })(); googletag.cmd.push(function() { googletag.pubads().setTargeting('site', 'kym'); googletag.pubads().setTargeting('page', '_memes_danbo'); }); &lt;/script&gt;
  
  &lt;script type="text/javascript" src="http://www.google.com/trends/embed.js?hl=en-US&amp;amp;q=danbo%20robot,danbo%20amazon,danbo%20yotsuba&amp;amp;content=1&amp;amp;cid=TIMESERIES_GRAPH_0&amp;amp;export=5&amp;amp;w=600&amp;amp;h=350"&gt;&lt;/script&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>I did not have the Google trend chart but I didn't get the chart and had this:</p>
  
  <p><img src="https://i.stack.imgur.com/fzIQv.png" alt="enter image description here"></p>
  
  <p>When you go to the Google trend site, e.g. <a href="http://www.google.com/trends/explore?hl=en-US#q=danbo+robot,danbo+amazon,danbo+yotsuba" rel="nofollow noreferrer">http://www.google.com/trends/explore?hl=en-US#q=danbo+robot,danbo+amazon,danbo+yotsuba</a> , there are embedded scripts that one can copy and paste into the html but when i put it in my own html it didn't work too.</p>
  
  <p><strong>How do I embed an interactive Google trend chart like at the end of this webpage</strong>  <a href="http://knowyourmeme.com/memes/danbo" rel="nofollow noreferrer">http://knowyourmeme.com/memes/danbo</a> ?</p>