Integrating Google Analytics

The Google Analytics module gives you detailed funnel analytics for each of your order forms.

Once you’ve enabled the module, SPP will start sending pageview and conversion data to GA. To get a view funnel data like in the image above you will need to set up a conversion goal in GA.

Here’s how.

  1. In Google Analytics go to Admin > Views > Goals
  2. Click + New Goal
  3. Choose Custom and click Continue
  4. Enter the following values and click Continue:
    1. Name: Complete purchase
    2. Type: Destination
  5. Enter the following values and click Save:
    1. Destination: (Regular Expression) /thanks/(.*)
    2. Funnel: On
      1. Step 1:
        1. Name: View orderform
        2. Screen/Page: /order/(.*)
        3. Required: Yes
      2. Step 2:
        1. Name: Submit orderform
        2. Screen/Page: /submit/(.*)

Here’s a screenshot of the settings applied:

Analytics Goal Setup

It’s recommended to enable the User-ID feature which helps Analytics track client’s purchases from different devices. You can do so in Admin > Property > Tracking Info > User-ID.

To track sales in Analytics you’ll need to enable e-commerce tracking in Admin > View > Ecommerce set-up.

Tracking Individual Forms

You can create conversion goals for each of your forms by repeating the steps above and using your form ID instead of the wildcard selector (.*) in funnel steps.

For example, if your order form’s URL is https://clients.agency.com/order/912BB206 then your form ID is 912BB206 and you would create the conversion goal like the screenshot below.

Note the goal destination is /thanks/(.*)?orderform=912BB206 because in this case (.*) is responsible for Order ID.

Was this helpful? Give us a thumbs up…

 

Related Articles