Code implementation guide

Adding the first JavaScript code snippet

You add the Google Surveys JavaScript snippets to Blogger in different sections of the Layout tab.

1. Navigate to the Layout tab in your Blogger account:

2. Click the topmost Add a Gadget box, and from the menu choose HTML/JavaScript:

3. Rename gadget, place this JavaScript snippet in the Content box, then click Save:

<script type="text/javascript">
(function() {
  var ARTICLE_URL = window.location.href;
  var CONTENT_ID = 'everything';
    '<scr'+'ipt '+
    (CONTENT_ID ? '&amp;cid='+encodeURIComponent(CONTENT_ID) : '')+
    '&amp;random='+(new Date).getTime()+
    '" type="text/javascript">'+'\x3C/scr'+'ipt>');


Was this helpful?
How can we improve it?
Google apps
Main menu
Search Help Center