How to Add Website Analytics Script
Tracking website traffic and user behavior is essential for understanding your audience and making data-driven business decisions. WuWei makes it easy to integrate analytics tools like Google Analytics.
Steps to Add Analytics Script
(1) Log in to the Admin Panel.
(2) Navigate to: Settings → Site Settings → Site Configration
(3) Set "Enable Site Analytics" to Yes.
(4) Paste your analytics tracking code into the Analytics Script textarea.
For example, using Google Analytics:
<script async src="https://www.googletagmanager.com/gtag/js?id=xxx"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'xxx');
</script>
Only trusted scripts should be added to avoid security risks.
(5) Click Submit to save your changes.
Once saved, the analytics script will be injected into all frontend pages of your WuWei site.