Installing Analytics on Different Website Platforms

Home / Everything About / Everything About Analytics / Installing Analytics on Different Website Platforms

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. WordPress has plugins. Shopify has 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 WordPress, Shopify, Wix, and custom sites so you can install correctly no matter which platform you use.

Installing on WordPress

WordPress doesn't require code editing. Use a plugin. Search your plugins menu for an analytics plugin. Most analytics platforms have WordPress plugins. Install the plugin. Activate it. Connect it to your analytics account. Done.

Popular WordPress analytics plugins include MonsterInsights, which integrates with most major analytics platforms. These plugins put the tracking code in the right place automatically. You don't manually edit headers.

If your platform doesn't have a WordPress plugin, you can use a code snippet plugin. Install a plugin like Code Snippets. Paste the tracking code there. The plugin adds it to your header automatically.

Installing on Shopify

Shopify has native integrations with major analytics platforms. You don't paste code. You connect through the app store. Search Shopify's app store for your analytics platform. Install the app. Authenticate with your analytics account. The app configures everything automatically.

Shopify handles placement and all the technical details. You just connect the accounts. This is simpler and more reliable than manual code installation.

If your platform isn't available as a Shopify app, you can use custom code. Shopify lets you add code to your theme. In theme settings, find the header section. Paste the tracking code. Save. Shopify handles the rest.

Installing on Wix

Wix has 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. Wix handles installation.

If your platform isn't built in, Wix lets you add custom code. Go to site settings. Find custom code. Paste the tracking code there. Wix automatically adds it to every page on your site.

Wix's custom code approach is simple. You paste once. It applies everywhere. No need to edit multiple pages.

Installing on Squarespace

Squarespace has 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, Squarespace lets 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.

Squarespace also has a custom code block you can add to pages. Use this for page-specific tracking or testing before adding site-wide.

Installing on Webflow

Webflow has a dashboard settings area for integrations. Some analytics platforms connect directly. If your platform is available, connect through the integration panel.

If not, Webflow lets 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 WordPress. Should we use a plugin or manually add the tracking code?

Shopify has our analytics as a built-in app. Is that better than a third-party app?

We have a custom website. Who should install the tracking code?

We're switching website platforms. Will we lose our analytics data?

Our WordPress plugin says it needs permissions to access our site header. Is this safe?

We have multiple WordPress blogs. Do we need separate tracking codes for each?