Adds Google Analytics tracking script to your site. NOTE: You’re gonna wanna add your own unique Google Analytics ID in the code, then let this snip take care of the rest.
How it does it…
Adds the tracking JavaScript code to the head of your site using `wp_head`, but only on Production (if using Env555), and only for logged-in users. (But you could edit those parts, if desired.)
Use the JSON file for easily importing into your CodeSnippetsPro plugin.
Use the PHP file or just copy/paste the code sample into your functions.php if you’re not using CodeSnippetsPro.
Leave a Reply