Shopify and WordPress installation
Use the generated Shopify or WordPress installation to place the same project-specific analytics script on every public page.
Install on Shopify
- Open the domain in Gumanalytics and choose Settings.
- In Setup, select Shopify and copy the generated script.
- In Shopify admin, open Online Store, then Themes.
- Open the active theme menu and choose Edit code.
- Open layout/theme.liquid and paste the script immediately before the closing </head> tag.
- Save the file and visit the storefront to confirm the first page view.
Install on WordPress
- Open the domain in Gumanalytics and choose Settings.
- In Setup, select WordPress and copy the generated script.
- Install and activate the WPCode plugin in WordPress.
- Open Code Snippets, then Header & Footer.
- Paste the script into the Header field and save changes.
- Clear any WordPress page cache and visit the live website.
Using a header-code plugin keeps the analytics installation separate from theme files, so a normal theme update does not remove it.
Keep capture options synchronized
If you later enable session replay, heatmaps, or change their sample rates, return to Settings and replace the installed script with the newly generated platform snippet.