How to set up Goal Tracking in Shopify

Lisa Fockens Updated by Lisa Fockens

Activating the goal tracking option will allow you to associate your Wisepops’ campaigns with revenue and transactions.

Let’s see how you can set it up on a Shopify store.

Step 1: 

Log in to your Shopify account.

Step 2: 

Click Settings, and select Checkout.

Step 3: 

Scroll down until you see the Order status page input field.

Step 4: 

Copy and paste the following code in the Additional scripts section, and click Save.

<script type="text/javascript">
  document.addEventListener("wisepops.after-initialization", function(event) {
    event.detail.wisepops("goal", "purchase", {{ total_price }} / 100);

Step 5: 

Adjust your goal attribution settings on the goal tracking configuration page.

You’re done!

Feel free to contact us if you have any questions.