Does your website platform have a built-in analytics plugin? Or do you need to manually edit code? Do you paste a tracking code or connect through an integration? Different platforms make installation different. CMS platforms have plugins. Online store platforms have native integrations. Custom sites need manual code. Understanding your platform's specific process prevents mistakes and saves hours of troubleshooting.
This article walks through installation for different website platforms. It covers CMS platforms, online stores, website builders, and custom sites so you can install correctly no matter which platform you use.
Installing on a plugin-based CMS
A plugin-based CMS doesn't require code editing. Use a plugin. Search your plugins menu for an analytics plugin. Most analytics platforms offer CMS plugins. Install the plugin. Activate it. Connect it to your analytics account. Done.
Popular analytics plugins integrate with most major analytics platforms. These plugins put the tracking code in the right place automatically. You don't manually edit headers.
If your analytics platform doesn't have a plugin, you can use a code snippet plugin. Install a general code snippet plugin. Paste the tracking code there. The plugin adds it to your header automatically.
Installing on a hosted online store platform
Hosted store platforms have native integrations with major analytics platforms. You don't paste code. You connect through the app store. Search the platform's app store for your analytics platform. Install the app. Authenticate with your analytics account. The app configures everything automatically.
The store platform handles placement and all the technical details. You just connect the accounts. This is simpler and more reliable than manual code installation.
If your analytics platform isn't available as an app, you can use custom code. Most store platforms let you add code to your theme. In theme settings, find the header section. Paste the tracking code. Save. The platform handles the rest.
Installing on a drag-and-drop website builder
Many drag-and-drop builders have an analytics panel built in. Go to your site settings. Find the analytics section. Your analytics platform might be listed as a built-in option. If yes, click connect and authenticate. The builder handles installation.
If your analytics platform isn't built in, most builders let you add custom code. Go to site settings. Find custom code. Paste the tracking code there. The builder automatically adds it to every page on your site.
This custom code approach is simple. You paste once. It applies everywhere. No need to edit multiple pages.
Installing on a template-based site builder
Template-based builders often have integrated analytics for some platforms. Check your website settings. Look for integrations or connected services. If your platform is available, connect there.
If not available, these builders let you add code to your site-wide header. In site settings, find injection code or custom headers. Paste the tracking code there. It applies to all pages.
Most also have a custom code block you can add to pages. Use this for page-specific tracking or testing before adding site-wide.
Installing on a visual design platform
Visual design platforms have a dashboard settings area for integrations. Some analytics platforms connect directly. If your platform is available, connect through the integration panel.
If not, they let you add custom code. In project settings, find custom code. In the head section, paste the tracking code. This adds it to all pages in your project.
You can also add code to individual pages. Each page has a settings panel where you can add page-specific code. Use this for testing or for tracking specific pages differently.
Installing on custom-built sites
If you have a custom website built on a framework like React or Vue, installation depends on your framework. Most frameworks have packages or libraries for analytics. Install the package. Configure it with your tracking ID. The framework handles the rest.
For static HTML sites, paste the tracking code in the HTML head. If all pages share a header template, paste once in the template. If pages are standalone, you need to paste on every page.
Talk to your developer. They know your site architecture. They can install tracking in the right place. They can verify it works before going live.
Verifying installation across different platforms
Regardless of your platform, verification is the same. Check your analytics real-time dashboard. Visit your website. Refresh a page. Does your visit appear in real-time? If yes, tracking works. If no, something is broken.
Check different pages. Check different devices. Check different browsers. Tracking should work everywhere. If it works on desktop but not mobile, something specific to mobile is broken.
Frequently asked questions
We use a plugin-based CMS. Should we use a plugin or manually add the tracking code?
Use a plugin. Plugins are simpler and more reliable. They put code in the right place automatically. Manual code installation requires editing your theme, which can break if your theme updates. Plugins handle updates automatically. Use a plugin unless your analytics platform specifically requires manual code. With WEMASY's website builder, you can set this up directly on your website.
Our store platform has our analytics as a built-in app. Is that better than a third-party app?
Native integration is simpler and more reliable. The platform maintains it directly. It's kept up to date automatically. Third-party apps might lag behind. Use the native integration if available. Third-party apps are fine if native isn't available.
We have a custom website. Who should install the tracking code?
Your developer should install it. They understand your site architecture. They know where the header is. They can verify installation correctly. They can troubleshoot if something breaks. Share the tracking code with them. Have them verify installation before going live.
We're switching website platforms. Will we lose our analytics data?
Your historical data stays in your analytics platform. It doesn't move with your site. When you switch platforms, install the same tracking code on the new site. New data flows in. Old data is still in your account. You don't lose it.
Our CMS plugin says it needs permissions to access our site header. Is this safe?
Yes. The plugin needs permission to modify your header to add the tracking code. This is normal. Only install plugins from reputable sources. Check reviews and ratings. Popular plugins from known developers are safe. Read the permissions it's requesting. If it asks for unreasonable access, don't install.
We have multiple blogs on the same CMS. Do we need separate tracking codes for each?
No. One tracking code works across all your sites. The code identifies which site the traffic came from. You can see separate reports by site even though they use the same code. If you want completely separate analytics accounts for separate blogs, then yes, separate codes. But one code per account handles multiple sites fine.