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 page view and conversion events to GA.

Basic setup

Turn on ecommerce tracking to show SPP sales in your Analytics account. Go to Admin > View > Ecommerce Settings and click Enable Ecommerce.

Set up cross-domain tracking

When a customer navigates from your website ( to your order form on SPP ( or, we want to attribute actions and purchases to the same visitor.

To do that you will need to modify the tracking code on your website by replacing this:

ga('create', 'UA-XXXXXXX-Y');

With this:

ga('create', 'UA-XXXXXXX-Y', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['', '']);

Don’t forget to use your actual Analytics ID and SPP domain.

If you’re using Google Tag Manager please refer to the documentation here.

Create a conversion goal

To visualize the conversion funnel in Google Analytics you’ll need to set up a conversion goal.

  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) /receipt/(.*)
    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/(.*)

Form-conversion goals

You can create form-specific conversion goals 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 then your conversion goal’s destination is /receipt/(.*)?orderform=912BB206.

Updated over a month ago

Thanks for your feedback 🙏

Was this helpful?