V1.1 Analytics
-
Topic
-
Hi Jason,
Now that the Config Tab and Analytic’s has been removed. Would the best practice to include the Analytics information be:
if( ! function_exists( 'themeblvd_analytics' ) ) { function themeblvd_analytics() { echo "<script type=\"text/javascript\"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXXXX-X']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>\n"; } } add_action( 'wp_head', 'themeblvd_analytics', 2 );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.