All Collections
Shopify Store Installation Guide
Shopify Store Installation Guide
Updated over a week ago

In this video, we'll walk you through where to find your snippet script and how to add it to your Shopify store.

Where to find your collection snippet script

1. From your Retention Dashboard, click Code Script. Then, click View Your Script.

2. Check the box next to Collection, and then click Copy Code </>. You’ll see a green box in the top right-hand corner telling you the code was copied to your clipboard.

Copy Collection

Remember: You can’t check multiple boxes for scripts or you will get an error message. You can only copy one at a time.

3. Once you’ve added the script to your domain, go back to Code Script and click the edit icon next to Authorized Domains.

4. Paste the domain/URL in the text box where you added the script, and click Save Changes.

It will be highlighted in green if the script is properly installed—and in orange if the script is not properly added.

How to add collection snippet script

1. Visit your Shopify Dashboard and click Online Store on the left-hand side nav panel.

2. Click Themes under Online Store, and then click on Actions and then Edit code.

3. Click theme.liquid file under Layout.

4. Add the script within the <head> in the code, as high as possible Click the Save button in the top right.

Note: If you only want to add the collection script to your Cart, you can choose cart.liquid instead of the theme.liquid file.

5. From your dashboard, click On next to Script Status to turn your script on. You will have access to this once you complete onboarding.

How to add revenue tracking script

You can use your's revenue tracking script to capture order information for your contacts that land on your Shopify page and suppress those contacts. Once data is collected, your dashboard will display your week-over-week ROI from your contacts.

1. You'll need to copy your revenue tracking script from From your Retention Dashboard, click Code Script. Then, click View Your Script.

2. Check the box next to Revenue Tracking, and click Copy Code.

3. From your Shopify admin page, click Settings > Checkout.

4. Under Order processing, go to the Additional scripts > Order status page text box. Paste your revenue tracking script into the box.

5. You will need to replace ORDER_NUMBER, DOLLAR VALUE, and ORDER EMAIL in the script with Shopify's variables.

Replace ORDER_NUMBER with order_number. Replace DOLLAR VALUE with total_price | money_without_currency. And replace ORDER EMAIL with email. When you're finished, click Save in the top right.

So this section should look like this:

<script> geq.trackOrder({ order_number: "{{ order_number }}", order_amount: "{{ total_price | money_without_currency }}", order_email: "{{ email }}" }); </script>

6. You can then track your order information, revenue, contacts, and ROI from your dashboard.

Revenue Tracker

How to setup collection rules

You can setup rules that are used to automatically trigger a collection event based on the number of page views and/or seconds on a page. This allows you to collect higher-level contacts.

1. To setup the rules, click Code Script in the left-hand navigation and then click the edit icon next to Collection Rules.

2. Toggle to Yes to Auto collect the contact after X page views, and type the number of Page Views in the box. For example, if you want a visitor to have 2 page views before the collection script is triggered, type ‘2’ in the box.

Toggle to Yes to Auto collect the contact after X seconds on a single page, and type the number of Seconds in the box. For example, if you want the collection script to wait 10 seconds before it fires, type ’10’ in the box.

3. When you’re finished, click Save Changes.

How to test your script to confirm it's working

Did this answer your question?