WooCommerce

Growify’s WooCommerce integration allows you to track customer events and gain deeper insights into your store’s performance.


  1. Log in to your WordPress dashboard

  2. Navigate to Plugins → Add New Plugin on the left sidebar (1)

  3. In the search bar, enter 'HFCM' (Header Footer Code Manager) (2)

  4. Locate Header Footer Code Manager by DraftPress, then click Install Now (3)

  5. Once installed, click Activate to enable the plugin (4)


2. Pixel Installation. Start tracking View Events

The Growify PowerPixel is a code snippet that enables us to gather behavioral data about your website visitors. The data feeds into our backend graph, allowing us to track customer journeys from site visit to purchase, along with marketing touchpoints in between.

  1. In the WordPress dashboard, go to HFCM in the left menu (5)

  2. Click HFCM → Add New Snippet to create a new code snippet (6)

  1. Complete the form (Snippet Name, Snippet Type, Site Display ... ) as required for your snippet (screen below)

  2. Copy and insert the script into the Snippet/Code section (7)

  3. Click Update to save the snippet. (8)

<script
            src="https://cdn.growify.ai/pixel.min.js"
            data-website-id="ENTER_WORKSPACE_ID_HERE"
            data-endpoint="api_v2"
            data-platform="web"
        ></script>

3. Verify PowerPixel Connection and Status

  1. Ensure the code snippet is active (9)

  1. Navigate to your store's homepage

  2. Open a DevTools

  • Windows: Ctrl + Shift + I or F12

  • macOS: ⌘ + ⌥ + I

  1. Refresh the page, then go to the Network Tab. Filter by the keyword 'grpV2' and locate the event

  1. If the event has been located, the status will be updated as soon as the data is indexed (which takes around 10-15 minutes) on the Growify dashboard. (10)


4. Conversion Events

  1. In the WordPress dashboard, navigate to HFCM in the left menu (5)

  2. Click HFCM → Add New Snippet to create a new code snippet (6)

  1. Complete the form (Snippet Name, Snippet Type, Site Display ... ) as required for your snippet (screen below)

  2. Copy and insert the script into the Snippet/Code section (11)

  3. Click Update to save the snippet. (12)

<script type="application/javascript">
	window.grpQueue = window.grpQueue || [];
	  if (!window.grp) {
	    window.grp = function () {
	      window.grpQueue.push(arguments);
	    };
	  }
	window.grp('conversion', {
                userEmail: '[email protected]',
                userFirstName: 'John',
                userLastName: 'Doe',
                userId: 'test-user',
                orderId: 'ORD122',
                tax: 2,
                shipping: 5,
                products: [
                    {
                    productId: 'SKU123',
                    productName: 'Pixel Shirt',
                    productPrice: 20,
                    productBrand: 'Growify',
                    productQuantity: 1,
                    purchaseValue: 20
                    }
                ]
        })
</script>

Align the code snippet with your Order Details page structure

  1. Update the condition for when to fire a conversion event

  • In the WordPress dashboard, navigate to Woocommerce → Settings in the left menu (13)

  • Switch to Advanced tab (14)

  • Find out Order Received endpoint and copy the value (15)

  • Navigate to your snippet and replace 'order-received' with your value (16)

  1. Replace the CSS selectors with the appropriate ones according to your page structure. (17)

  • productQuantity: Required; Integer; Should be greater than 0;

  • productPrice: Required; Number; Should be greater than 0;

  1. Click Update to save the snippet. (18)

Last updated