By eejtje on
Hello all,
Usually i make html websites. But now i had to make one with a cms, so i picked drupal. There is a script i want to implement in my website, but i don't know how to do that. Can someone help me with that? Thanks in advance.
M.
Comments
What kind of script?
What kind of script?
a google AdWords script
a google AdWords script
check out the drupal_add_js
check out the drupal_add_js function.
Sorry, i wasn't very clear
Sorry, i wasn't very clear in my post. We paid google so that our site would appear in de AdWords block: http://www.google.nl/intl/eng/ads/
For that to work, we have to insert a script to our site:
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "... type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker ...pageTracker._trackPageview(); </script>we have to put this before the tag. But where do we have to insert this script?? In page.tpl.php? Or in some other file? I really don't understand : (
i would assume this script
i would assume this script should appear on every page of your site, just above the
</body>tag. if that's true, then yes, you should just be able to copy/paste into your theme's page.tpl.php .I think it should appear on
I think it should appear on every site. I don't know how Google AdWords works. I just put it in the page.tpl.php. Thanks for your help.