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';
  document.write(
    '<scr'+'ipt '+
    'src="//survey.g.doubleclick.net/survey?site=_GSACCOUNTID'+
    '&amp;url='+encodeURIComponent(ARTICLE_URL)+
    (CONTENT_ID ? '&amp;cid='+encodeURIComponent(CONTENT_ID) : '')+
    '&amp;random='+(new Date).getTime()+
    '" type="text/javascript">'+'\x3C/scr'+'ipt>');
})();
</script>

 

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
4309319141148413391
true
Search Help Center
true
true
true
true
true
74002
false
false