If the HTML files are outside of your wordpress installation, you need to insert the Google Analytics tracking code into each of the HTML pages manually.
For the WordPress pages, you can insert the code into your Theme’s header file (usually header.php) or similar or use one of the many plugins to do this.
Related Posts:
- Approve post directly from preview mode?
- How are WordPress draft previews generated?
- and previews
- Preview Button Custom
- Which ID does WordPress actually use to display published/drafted posts in preview mode?
- Allow Previewer Role to Preview Posts
- How to allow potential clients to preview a theme
- Theme Live Preview on Front End?
- Preview post when using custom post page
- Google Analytics appending index.cfm to end of my URLs
- Sharebutton.to showing up as one of my pages
- Google Analytics – Language (not set) & Sharebutton.to
- No matching client found for package name (Google Analytics) – multiple productFlavors & buildTypes
- Uncaught ReferenceError: ga is not defined
- WordPress Login Tracking Google Analytics
- WordPress Theme Preview Image
- Disable plugin / plugin action via theme
- Add Google Analytics manually, or use a plug-in?
- Post preview mechanism architecture
- Passing current cookies in wp_remote_get to get Draft Post Preview
- ‘Preview Changes’ for custom meta boxes?
- Front end form to create a custom post with preview
- View homepage in a preview mode
- Post/Page Preview Template
- How can I enable Google Analytics on a file download link?
- How can I change preview URL?
- How to pass on Google Adwords gclid variable to other pages
- Disable device preview options in the block editor
- How to detect if a Shortcode is being called on a page?
- How to preview your website without the top WordPress admin bar, but remain signed in?
- Track advertisement earnings per blog post and page in wordpress?
- Analytics plugins that allow for inclusion of _trackPageLoadTime()?
- Can’t preview drafts after upgrade to 4.0!
- Unable to get Preview of Uploaded image within a Custom Meta box
- I can’t preview post’s change once they are published
- Does wordpress insert automatic google analytic?
- Can I install Analytics before deciding on a theme?
- Can I integrate Google Analytics with my blog, hosted at wordpress.com?
- Need a WordPress Plugin for Google Analytics, Favicon, Meta Keywords & Description?
- Google Analytics post views in WordPress? [closed]
- How to make the Preview button automatically open new tab?
- Multiple meta values for same meta_key adding on “Preview Changes” hit but not on saving or updating post
- View category in the preview of Theme Customizer
- “Preview Changes” button doesn’t show changes for previously published posts/pages
- How to make scheduled post preview visible to anyone?
- Disable single pages and archives and keep preview
- Enable commenting on front-end preview page for pending posts
- Page with page template not using template in Preview
- What type of Google tracking should I use?
- Tracking RSS subscribers in Google Analytics
- How to show updated edit on preview URL without clicking preview button
- Installing google analytics code on wordpress blog
- How can I make the “Preview Post” button save and preview in the same window?
- wp_nav_menu google analytics event tracking
- Suspicious google tag manager
- Tracking Disqus comments on Google Analytics
- Post preview and oembed provider issue using polylang plugin with subdomains
- Tracking Published Date as Custom Variable for Google Analytics
- adding google event tracking to links in posts
- What program can I use to preview my wordpress site?
- Can a plugin deactivate itself?
- Show only preview of posts on the homepage?
- Disable “preview changes” button
- Are there any plugins yet that support Facebook Like, Google +1 and allow Social Interaction tracking on Google Analytics
- wp_add_inline_script not adding when script_loader_tag filtered
- How to remove author name and link from a shared link preview?
- Add a hook to wp_mail() to track Google Analytics Event
- WordPress version 3.8 – Preview button not working for editor
- Preview Changes button missing on custom post type page since updating to 3.4
- Free Google Analytics plugin that works with WordPress in network mode (WPMU)? [closed]
- google conversion code
- Adding parent pages to posts
- Detect When User Reads Full Article? [closed]
- Custom Post Type Draft Preview Goes to 404
- customize_preview_init: listening for any changes from Customizer preview area
- How Can I Add OnClick Event To A Specific WordPress Menu Link
- Custom post type “preview” not working
- add most viewed post by google analytic in loop [closed]
- Custom post preview without saving
- Show preview posts and pages to clients
- Plugin: Google Analytics for Dashboard error – Timestamp is too far from current time
- How to add custom preview urls for some pages?
- Google Tag Manger – no-script Code Not Found
- Preview post on frontend before submitting it?
- How do you manage the Gutenberg block previews in the admin area?
- Sending click events to Google Analytics in WordPress: the easy way
- Authorizing a plugin to call Google Analytics v4 API on wp_cron
- Losing preview ability: W3 Total Cache + Post name permalinks
- Show preview of post changes on page
- Change target of view link in admin
- get_post_meta($post->ID) returns empty string when in preview mode of custom post type
- Google Analytics tracking code on just one page?
- How to get an event to fire using Google Tag Manager for the wordpress audio player?
- After changing wp from subdirectory to root I can’t preview any changes to a page or post
- Google verification challenge with file location
- preview_post_link for Custom Post Types
- Track tags in Google Analytics? [closed]
- Tracking post type in Google Analytics
- How do I add GoogleAnalytics header snippet in WordPress?
- Invalid plugin installation directory, Google Analytics [closed]