To install Hitprobe on your WooCommerce store, you'll need to add the JavaScript tag to each page of your store. You have 2 recommended options, here's a quick run through:
- Use a plugin to add the JavaScript tag to your Wordpress site.
- Use Google Tag Manager.
First, you'll need the Hitprobe tag
After signing up for your Hitprobe account, you'll be guided through an onboarding step where you can copy the tracking tag directly from the screen. You'll need to keep it handy for the next step, including your sites unique secret key. Alternatively, check out our guide on configuring your tag.
Adding the tag using the Header Footer plugin
The Header Footer Code Manager plugin makes it easy to add tracking scripts, conversion pixels, or other third-party service codes, making it perfect for integrating Hitprobe into your site. Once you've installed and activated the plugin, follow these steps:
- In the WordPress menu, find HFCM and select Add New (Alternatively you can learn more about the plugin here).
- Give your snippet a name to help you remember what the snippet does. I.e, "Hitprobe tracking tag".
- Leave the other options set as default. Snippet Type should be JavaScript, Site Display should be Site Wide, and Location should be Header.
- Paste the Hitprobe tag (from the previous step) in the Snippet / Code field.
- Finally, click the Save button to publish your changes and make the tag live.
Adding the Hitprobe Tag Using Google Tag Manager
When you're adding the tag via GTM, you'll want to make sure that you add it to every page that potential visitors may visit. For eCommerce sites/stores, we recommend adding the tag to all pages.
- Sign in to your Google Tag Manager account and open the container for your site.
- Click Tags on the left, then select New.
- In the Tag Configuration section, choose Custom HTML.
- Paste the Hitprobe tag code into the HTML box, ensuring that you've added your site key, removing the brackets.
- Click Triggering and select All Pages as the trigger.
- Name your tag and click Save.
- Finally, click Submit to publish your changes.