I just pasted a google analytics snipped into my template. When I preview the view source for the page, the script snipped is displaying all in one line.
How do I get it to display as it does in the page.tpl.php file?
I am using netbeans.
I just pasted a google analytics snipped into my template. When I preview the view source for the page, the script snipped is displaying all in one line. How do I get it to display as it does in the page.tpl.php file? I am using netbeans. |
|||
|
My guess is that you are running into EOL marker differences. That boils down to editor settings, and NetBeans copnfiguration help would be best at a sister side, If the code works, then don't worry about it. As a side note, I don't recall running into any situations that prevented me from using the normal Google Analytics module. Recent versions let you adjust the code, so you should be able to match up with any tracking code you have. In addition, you can configure it to ignore admins, track downloads, and do a lot more. |
|||||||
|