AI Verified
Insert Google Analytics in Header
Insert Google Analytics in Header
PHP
Voted: 0 by 0 user(s)
Add this to functions.php
Scroll down to see more snippets from this codevault.
The author has indicated that this snippet is compatable up to wordpress version: 6.1
Our AI bot has checked this snippet is compatable up to wordpress version: 6.1
Free & Pro
Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.
Pro Only (Coming Soon)
You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.
Last modified:
26/11/2022
This snippet has the following status:
AI Verified
This snippet has been tested by our AI bot, see any comments below.
AI Bot Comments:
--------------------------------------------------------------------------------------------------------------------------------------------------
Name | Potential vulnerability found : High Entropy String
Line | 8
Code | ( <scriptasyncsrc="https://www.googletagmanager.com/gtag/js?id=UA-1234567")
Code | Line | 8 : <scriptasyncsrc="https://www.googletagmanager.com/gtag/js?id=UA-1234567"
Found 1 vulnerabilities
0
9 months ago
Surely this needs changing as UA has been discomtinued?
Please see some snippets below related to this snippet..
Tracking - Analytics
AI Verified
Added: 1 year ago
Last Updated: 1 year ago
Google tag code added to the head of the web site
These are some popular snippets from this users codevault..
WordPress Admin
AI Verified
Added: 1 year ago
Last Updated: 1 year ago
Posts is a rather general terms. Some clients like to rename this to something more specific like "News".
General
AI Verified
Added: 1 year ago
Last Updated: 1 year ago
Prevent wordpress from automatically adding p tags around everything
Tracking - Analytics
AI Verified
Added: 1 year ago
Last Updated: 1 year ago
Insert Google Analytics in Header
Category
Snippet Status