-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
NotebookLM's Audio Overviews is coming to Google Search
By Aditya Tiwari,
- google search
- (and 2 more)
- 1 reply
- 0 views
-
ChromeOS M137 goes stable, bringing new Face Control policy and more
By David Uzondu,
- 0 replies
- 0 views
-
Google Workspace brings 10 free AI features for nonprofit organizations
By Aditya Tiwari,
- 1 reply
- 0 views
-
- 2 replies
- 0 views
-
The Google Home app gets video forwarding support and many more features
By Aman Kumar,
- google home
- (and 3 more)
- 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