You are here

dfp-js-head-top.html.twig in Doubleclick for Publishers (DFP) 8

Default theme implementation to display a DFP short tag.

Available variables:

  • google_tag_services_url:

See also

dfp_page_attachments()

File

templates/dfp-js-head-top.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a DFP short tag.
  5. *
  6. * Available variables:
  7. * - google_tag_services_url:
  8. *
  9. * @see dfp_page_attachments()
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. <script type="text/javascript">
  15. // Initialize the google variables.
  16. var googletag = googletag || {};
  17. googletag.cmd = googletag.cmd || [];
  18. // Add a place to store the slot name variable.
  19. googletag.slots = googletag.slots || {};
  20. (function() {
  21. var useSSL = "https:" == document.location.protocol;
  22. var src = (useSSL ? 'https:' : 'http:') + '//{{ google_tag_services_url }}';
  23. document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
  24. })();
  25. </script>