How It Works

Find out how our solution helps you turn browsers into buyers.

Integrations

From Shopify to Klaviyo, explore over 80 integrations.

Support

Access guides, troubleshooting, and expert assistance.

About Us

Hear our origin story and meet our team.

Partnership

Become an official Retention.com Partner.

Affiliate Program

Learn more about our Affiliate Program.

Careers

Explore career opportunities with Retention.com.

Events

See upcoming events we’re hosting or attending.

Referrals

Got a referral? Let us know here.

Product Support

privacy-red-circle
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
product-support

Add revenue tracking script to Shopify site

You can use your Retention.com's revenue tracking script to capture order information for your Retention.com contacts that land on your Shopify page. Tracking codes typically are used on the order status page. Once data is collected, your dashboard will display your week-over-week ROI from your Retention.com contacts.

Here's how to add your Retention.com revenue tracking script to your Shopify site.

What you'll need

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

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

How to add tracking to Shopify

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

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

3. 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>

4. You can then track your order information, revenue, contacts, and ROI from your Retention.com dashboard.

Revenue Tracker
chevron-down