-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Google Chrome is killing all uBlock Origin bypasses, Microsoft Edge, Opera to follow 1 2 3
By hellowalkman,
- 54 replies
- 0 views
-
UK nudity blockers are a looming privacy disaster, we must be able to see the source code
By zikalify,
- uk
- uk government
- (and 15 more)
- 10 replies
- 0 views
-
- 0 replies
- 0 views
-
Google's NotebookLM gets some useful features you may have been waiting for
By Aditya Tiwari,
- notebooklm
- (and 2 more)
- 0 replies
- 0 views
-
Browser vendors pen open letter to Microsoft saying "enough is enough" 1 2
By Usama Jawad96,
- microsoft
- microsoft edge
- (and 15 more)
- 41 replies
- 0 views
-
Question
PALMERx64
Hey guys, I'm not very familiar with Analytics (or JavaScript, for that matter). I'm much more familiar with HTML/CSS and PHP.
Normally I just copy/paste the tracking code in <script> before the closing </head> tag like the Analytics page says, instead can I just do it this way:
In an index.html or index.php could I just use <?php include 'analytics.js'; ?> before the head tag
And the .js file will have the following code:
Or will Analytics somehow not work with this sort of setup?
Link to comment
https://www.neowin.net/forum/topic/1090681-using-php-to-include-analyticsjs-file/Share on other sites
10 answers to this question
Recommended Posts