-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Everything we know about the Google Pixel 10 series so far
By Hamid Ganji,
- google pixel 10
- (and 3 more)
- 3 replies
- 0 views
-
Google launches Gemini Drops and a web page to highlight new stuff
By Aditya Tiwari,
- google gemini
- (and 4 more)
- 5 replies
- 0 views
-
Google Search can now make AI-powered phone calls for you
By Aditya Tiwari,
- google search
- (and 2 more)
- 5 replies
- 0 views
-
- 14 replies
- 0 views
-
- 0 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